Question
SberTechnology
RU
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?
Thanks in advance,
Kaverin Vyacheslav
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Pegasystems Inc.
US
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.
Updated: 9 Oct 2015 9:08 EDT
Pegasystems Inc.
US
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.
Hope that helps.
-Thanks
Sean
Sberbank
RU
I've a somewhat related question regarding refresh conditions.
Based on what I experienced a refresh condition does not make a section automagically refresh once the tracked prop arbitrarily changes on the clipboard.
I.e. this value should be submitted/posted to trigger the refresh, not just changed there.
Is this how it's expected to work or am I doing it wrong?
Updated: 9 Oct 2015 10:34 EDT
Pegasystems Inc.
US
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.
SberTechnology
RU
I have already used Refresh action for the add\delete buttons, and refreshed the parent section with the all tabs (Refresh other section action).
But it has a bad performance, so i'll try with the set param properties to this add\delete buttons and trigger than refresh condition.
Thank you!
Accepted Solution
Pegasystems Inc.
US
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.
SberTechnology
RU
Yeah, it worked correctly!
Thank you!
Pegasystems Inc.
US
No problem!