Posted: 9 Oct 2015 7:01 EDT Last activity: 9 Oct 2015 10:51 EDT
How to refresh one section from another?
I have a Tabs, which include different "section include" in each tab. And when the length of page list in one section is changed, i need to refresh other section.
I tried to use declare onchange and call activity with the step "Call ReloadSection" (with name of section and stremclass), but it didn't refresh.
And tried to set "Refresh Condition" for properties changes - it worked when i changed properties values, but when delete or add item - not refreshed (condition AddDelete didn't work too, because it triggered only when grid at the same section). So, can anyone help me with this issue?
Depends on how you have your sections set up and when you want it to change. If your page list is being updated simply by add/delete you can just add a refresh-othersection action on your add and delete buttons on your grid. If your page list is changing behind the scenes outside of your grid, i think your refresh condition idea is the right approach but you may need to set up some type of flag/counter property and just update that property when ever the page list size has changed and then the refresh condition should see that and refresh.
I just tried a quick test myself and it seem to work just fine for me. You should not have to post/submit the change.
If i have a text input of prop1 and a layout that will refresh based on prop1 changing (i have a read only text input of the same prop to see if the value changed). On blur of my text input, meaning i enter text in that field and select off it, my layout refreshed to reflect the change showing its new value.
There could be some odd limitations or situation issues to refresh conditions that i'm not aware of, but i would assume if the refresh does not take place without posting the value, that could possible be a bug we need to look into.
As a note, i don't think you need to target the parent section that refreshes all tabs (unless you need everything to refresh). You should be able to just directly target 1 section on another tab to only refresh that section. That might help with some performance issues.