This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - update item on maingrid

Peter Borsje - Friday, February 7, 2014 3:53 AM:

Hi Guys
With an Action  I changed a Document state.
After the action the maingrid still shows the old state.
I need to update/refresh the grid manual to see the new state value.
How can I update the modified item in the maingrid with javascript?
Regards,
Peter


vasant - Friday, February 7, 2014 7:35 AM:

Hi Peter,

to refresh itemGrid you can run below line of code:

//refresh itemGrid
top.main.work.searchContainer.runSearch();

Thanks - Vasant



Peter Borsje - Friday, February 7, 2014 9:42 AM:

Hi Vasant,

Thank you very much! This works.

This code will do a complete search,  is it also possible to update only the selected item in order to get a better performance?

Regard,

Peter

 

 

 



zahar - Friday, February 7, 2014 2:31 PM:

You can use top.aras.itemsCache (client side code) object to update data in grids. 

check following functions:

top.aras.isInCache

top.aras.addToCache

top.aras.updateInCache

 

what those functions do you can review in 

Client/javascript/aras_object.js 

(and then in)

Client/javascript/client_cache.js