cancel
Showing results for 
Search instead for 
Did you mean: 

Preventing action from rendering all page

former_member182374
Active Contributor
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Answers (3)

Answers (3)

Former Member
0 Kudos

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.

former_member182374
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.

former_member182374
Active Contributor
0 Kudos

Hi,

Currently I'm not using dynamic programming.

I cannot use dynamic programming for all the UI in my project (there are too many design issues when working with RTL languages...)

Regards,

Omri

former_member182374
Active Contributor
0 Kudos

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