on 07-26-2006 10:15 AM
Hi,
I am new to Web Dynpro. I have one question.
How to add elements to a value node at runtime? Can you please provide me the answer.
Thanks,
Kumar. K
Hi Kumar,
There are several options:
(a)
inside of a supply function via
node->bind_table( my_itab ).
(b)
my_new_element = my_node->create_element( ).
my_node->bind_element( my_new_element ).
(c)
by using any other the other bind_* methods
Best regards,
Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kumar,
In the wdDoModifyView - method. You can create Elements dynamically.
if(firstTime){
IWDTextView textview1=(IWDTextView)view.createElement(IWDTextView.class,"textview");
textview1.setEnabled(true);
textview1.setText("Dynamic created Textview");
con.addChild(textview1);
IWDLabel label3=(IWDLabel)view.createElement(IWDLabel.class,"label11");
label3.setText("hi");
con.addChild(label3);
}
Regards,
Sridhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.