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

Hi,

I tried to reload the data in the page using LoadDataRequest after button Click, But after reload it won't open the same record, but first record in the List Page.

Like 0

Like

2 comments

Are you on 8.0.6? Can’t remember for sure, but I believe that might have been an issue in 8.0.6. 

Ryan Farley,

I tried it  in the Creatio 8.0.8 version online cloud instance.  Are there any alternatives approach for this issue?

 

Show all comments