on 08-07-2007 7:40 AM
Hi All,
Can anyone tell me how to display fields dynamically with the help of webdynpro .
On selecting input value from drop down box i should able to display different
fields(drop down box,input field,label.......).It depends on the input selected from dropdown box, which retrieves values from RFC.The fields which are to be displayed dynamically should retieve the data from RFC.It may vary from selecting different value from drop down box.means depending on the value we should able to disply the fields(drop down box,input field,label,.....).
so if anyone having the documents/blogs they can mail me
rajeshn16@yahoo.com
Note:Reward points will be awarded
Regards,
Rajesh
Thanks to all...problem solved thread is closed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It depends on the degree of variation you need.
If there is only a fixed number of different variants, you could create a view for each one and navigate to that view when the corresponding selection is done.
For even more flexibility, you can create UI elements programmatically depending on the current results from the RFC. This has to be done by adding code into method wdDoModifyView() (or static methods called from there).
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Here is a sample coding to create dynamic UI Elements.
wdDoModifyView()
{
IWDTransparentContainer root=(IWDTransparentContainer)view.getRootElement();
IWDInputField inpFld =(IWDInputField)view.createElement(IWDInputField.class,"inp_Fld");
inpFld.bindValue(wdContext.nodeNameNode().getNodeInfo().getAttribute("Name"));
root.addChild(inpFld);
}
Similarly you can create other UI Elements at run time...
regards,
Prabhakar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rajesh,
you have context which fileds we need to show or not,just group the controls and put it in container may be transparent container,the drop down button we have onchange action create the method there you can control the visible property of the contrianer as well as fill the context according to condition.
Thanks,
Balaji
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rajesh
You have to play with dynamic programming here.
This Tutorial gives you an idea for dynamic generation of UI and context
Regards
Abhimanyu L
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.