10-16-2009 7:45 AM
hello guys,
In ABAP webdynpro I am trying to create one application having two views.
One view contains input field and another view contains table control.
In module pool if one screen contains input field then second screen display the details in table as per the selection criteria in first screen,same way here in first view what ever I will enter as per the selection details should get display in the table.
Now I have created the application and now I am executing the application.
Here in first view in input field I am entering the selection criteria and when I am nevigating to second view it desplaying the details what I want in the table but now I am having one more pushbutton to nevigate to first view again and I am trying to enter the value but this time in the second view in the table it showing me the same details what there was in previouse details.
Can anybody please help me out?
10-16-2009 10:42 AM
Hi,
FIrst You need to get the Attribute of the Input Field usig method GET_ATTRIBUTE then based on this value fetch data and pass it to table control using BIND_TABLE method.
when you go back to first view make sure you are getting the correct value entered and repeat the above step.
try using SET_ATTRIBUTE in case you required.
Cheers
Ram
10-16-2009 12:03 PM
Thanks for reply but can you please tell me where can I use set_attribute?
As I tried to do it also but was of no use.
thanks and regards,
Umang
10-16-2009 12:09 PM
Hi
YOu can use it in WDDOINIT Method associated with the VIEW just go to attribute tab and
IF_FLIGHT_VIEW double click on this Interface you will get all the methods.
Don't worry about all these methods.
Use Web Dynpro Code Wizard to get the required Declarations ( Hope you did it already) .
your element instance combined with the method Name.
For reference take the help of WDR_TEST_UI_ELEMENTS.
Cheer and Happy Diwali
Ram
10-16-2009 12:14 PM