on 07-29-2013 2:37 PM
Hello All,
I have 3 tabs in my Web Dynpro Component. I am using onSelect event and coded in the event handler method of onSelect event for displaying different data in the ALV tables in 3 tabs. So depending on the tab selected, the data will be displayed. For displaying the data in the table on the default tab when we test the application, do I need to put the same code that I have in the event handler method above in wddoinit method? Please let me know if there is any other way to achieve this? Presently, if I do not have any code in WDDOINIT method, so when I test the application the alv in default tab is not displaying any data initially, and since I have code in onSelect event, the data gets displayed when I select some other tab and come back to this tab.
Thanks,
Suma
Hi Suma
it is a little unclear to me from the functionality point of view.
Lets say you have an input field or select options date to get the data based on flight date and a button on web dynpro screen.
In order to have data the very first time when application is run will be based on certain conditions, here i.e. date . By entering the dates , data will be fetched from the tables and displayed under first tab . Remember this is done when user inputs some values and press the button i.e the code is written in the onaction method of the button.
So if you try to write code on wddoinit method , it won't be able to fetch on the conditions necessary and hence showing a blank table.
Feel free to ask any doubts.
close the thread if this helps.
Regards
Vaibhav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Go through the below link it may resolve your problem,
Regards,
John.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Suma,
The onselect method is not a part of hook method.
If you want to display the data in the table initially when you run the application, you need to use hook methods. Try binding the value to the node in the WDDOINIT method. The data will display in the table when you run the application.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
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.