on 05-09-2008 5:09 AM
hi
i have a table with mutliple rows and columns
which i got it from backend , not on ONLEADSELECT
there will be a popup window opened , and i want the
particular row data selected to be populates in the
pop-up window input fields and with the selection
of the row changes , same pop-up window get opened
and values inthe input field changes , how i achieve this
can any one help ? ptoblem is large amount of data in
tables .
hi,
for this
1. make a view and use the appropriate filelds(which comes from component controller to your view controller) here u want to show in this view.
2.embed this view in the desired window .
3.in lead selection of table row write a code for open this window .
by this way the data u want to show in this window will automaticaly populated.
Regards
Trilochan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
On select of the row Fire a Action.
In the action method , write the code for the popup window .
For eg :
Create a Window name TestWindow and embed the view Within the window which will show the data from the tavle to the input Fields .
In the On Action:
IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI
.getComponentInfo()
.findInWindows("TestWindow");
//create the TestWindow
IWDWindow window = wdComponentAPI.getWindowManager()
.createWindow( windowInfo, true);
//set the WindowPosition on the screen
window.setWindowPosition(300, 150);
//and show the window
window.open();
// Save WindowInstance in Context
wdContext.currentPopupElement().setWindowInstance(window);
Here Window Instance is the Context Attribute for holding the window instance.
and finally map the table node to the Component Controller .
again bind the Component Controller to the Input field view , so that the data from the table can be displayed .
For further Information please refer this link :
[http://help.sap.com/saphelp_nw04/helpdata/en/75/064640c0e56913e10000000a1550b0/frameset.htm]
Thanks and regards
Fazal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
1. Create value attributes for the columns which u r going to show in input field in component controller
2. Map those attrs to both the views.
3. ONLEAD SELECT action u can get lead selected element and set the mapped attributes with the selected element values and then u can pop up the window
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You need to do this onAction of leadSelect of the table. on selection of a row this action will be called and within this method you can write code to open the window.
Hope the following links will help you in doing so:
/docs/DOC-8061#23 [original link is broken]
You need to map the datasource node to both the views in order to bind the inputfields in the popup with the same data as selected in the table in the main view.
thanks & regards,
Manoj
Edited by: Manoj Kumar on May 9, 2008 9:56 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.