on 11-24-2005 9:06 AM
Hello,
I would like to build UI Elements dynamiclly at runtime using code and not at design time. Can someone please show me for example how Do I build a checkboc or an inputfield element at runtime?
I am trying to use the view.createElement at the wdModifyView method but I don't see that this element has been created....
Hello Roy,
Check appropriate tutorial: "How to use dynamic programming in Web Dynpro applications?"
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/web dynpro tutorial and sample applications.faq#q-17
Best regards, Maksim Rashchynski.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Roy,
You will have to write the code in doModify
IWDAttributeInfo attinfo =
wdContext.getNodeInfo().getAttribute("<attribute name>");
IWDInputField ip = (IWDInputField)view.createElement(IWDInputField.class,null);
ip.bindValue(attinfo);
Like wise if it is a checkbox
IWDCheckBox cb = (IWDCheckBox)view.createElement(IWDCheckBox.class,null);
cb.bindChecked(<attribute info>)
Regards
Rohit
Message was edited by: Rohit Radhakrishnan
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.