Good afternoon. I have a question: why doesn't it work from BaseGridSectionTemplate and ListFreedomTemplate.

request.$context.executeRequest({
    request: "crt.LoadDataRequest",
    params: {
        config: {
                  loadType: "reload",
                  useLastLoadParameters: true
         },
         dataSourceName: dataSourceName
    }
 });        


And request.$context.getPrimaryModelName() doesn't work either.

And how else can I trigger the list update event?
Thank you.

Like 0

Like

1 comments

Be sure to also include the context in the request. See https://customerfx.com/article/refreshing-reloading-page-or-list-data-on-a-creatio-freedom-ui-page/

Also, last I tried this all worked for me (but I've not re-tested in recent versions). Only reason I can think of why request.$context.getPrimaryModelName() wouldn't work is if possibly was called in crt.HandleViewModelInitRequest?

Show all comments