on 12-08-2008 7:47 AM
Hi all,
I have a Web Dynpro application that contains several views - see image1.
http://img301.imageshack.us/img301/5412/image1ad0.jpg
The upper view contains 2 dropdowns and execute button (which is actually a linkToAction with
image) - see image2.
http://img242.imageshack.us/my.php?image=image2wr0.jpg
When the user selects an entry from one of the dropdowns, the image of the linkToAction
should change (so both dropdowns have an action assigned).
Below the dropdowns I have more views with "heavy" content - Table & Graph.
The problem is: when selecting an entry from the dropdowns the whole page is refreshed
(because Web Dynpro renders all the content).
I want to be able to select dropdown without refreshing the Table & Graph.
Since I'm using portal I can create two iviews in a portal page and use portal eventing but
I want to avoid that.
Is there a way to solve it without creating two iviews?
Thanks,
Omri
Hi Omri,
If you are or can apply dynamic programming for the UI elements you can make use of firstTime parameter to prevent the refreshing of the complete page when you select dropdown.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
wat a re u writing in the action of execute button?
may be not binding any action to the onselect and writing all the logic required in the action of execute button will avoid this.
Regards,
Satya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Satya,
Dropdown1 - two lines of code changing the execute button image
Dropdown2 - two lines of code changing the execute button image
The main code is under the execute button (I fire a plug which runs the RFC and populate table and other UI elements).
The main problem is the postback to the server...
Omri
Hi,
(Assuming that you are doing dynamic programming) Whenever a user selects anything from dropdown an action is generated. So, for every action the view is refreshed. The firstTime parameter lets you know if the screen is being rendered for the very first time, or re-rendered in response to an Action event. So, if you put rest of the code other then dropdown inside condition if (firstTime) you can prevent a refresh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks for the quick reply.
However, my problem is not related to the first time the dropdown UI is built.
The issue happens every time the user selects an entry from one of the dropdowns...
Regards,
Omri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.