Tools
Sign in
Login
Forum
How to Use Ajax Update Area with Links
Forum
>
Ask Anything
>
How to Use Ajax Update Area with Links
n/A
posted
on September 24, 2013
at 4:00 PM
n/A
posted
on September 24, 2013
at 4:00 PM
Please see the image above which displays my question for this thread. Thanks for your help!
n/A
replied
on September 25, 2013
at 10:05 AM
n/A
replied
on September 25, 2013
at 10:05 AM
Hi Antonio,
you can define a String $selectedCompany variable in your screen and whenever you click on a company in the list execute a "Script Action" which stores the corresponding company name in that vairable. The action can be attached to the link, the image or you can put a div component around the flow layout to have an action on both. The in the second half of the screen you can load the content based on the $selectedCompany variable value.
If you want to have this update working without reloading the whole page, you can append your Ajax Update Action after the Script Action on the aforementioned components: if you do so the Script Action will still be executed, but only a portion of the page (the one included in the Ajax Update Area) will be returned back to the browser (even if the whole page will be processes and rendered at the server side).
Keep in mind that the $selectedCompany variable you define can be a Local variable in the screen only if the screen is not used as a screen include into another screen (so if it is used directly as an Activity in the process), or if the Remember Variables options of the screen BO is flagged. If that is not the case you will need to define the variable as Inherited and define it locally in the parent screen.
Please let me know if this solves your issue.
n/A
replied
on September 30, 2013
at 9:49 PM
n/A
replied
on September 30, 2013
at 9:49 PM
Thanks Mauro, that did the trick. I had a similar thought process but when followed yours it worked so I guess not.
Quick follow-up question for you: what's the difference between the values within the "Validation Scope" located in the Ajax Update Area propteries? (see snapshot below)
n/A
replied
on October 3, 2013
at 3:42 PM
n/A
replied
on October 3, 2013
at 3:42 PM
Whenever an Ajax Update Action is executed the whole page is submitted to the server and goes through the phases: update, validate, process and render. After the render phase is executed only the subset of the content in the Ajax Update Area is returned back to the browser.
The Validation Scope option allows you to define the behavior of the Validation Phase when executing the Ajax Update Area:
- Screen mean the whole screen will be validated
- Ajax Update Area means that only the portion of the screen contained into the Ajax Update Area will be validated
- None means that the validation will not be triggered (Validation Phase will still be executed but all the screen component will skip it)
Please
sign in
to add a reply
About this site
|
Terms of use
|
Privacy statement
|
Contact us
© 2025 Appway AG. All Rights Reserved.
Please see the image above which displays my question for this thread. Thanks for your help!