on 03-21-2007 7:52 AM
set textbox/label value during runtime
Hi,
Please follow these steps to set Text/Label Value:
1)Create a context attribute say "textVal".
2)Let the type of this attribute is string. (Default type is string).
3)Create a Label/TextView UI element.
4)Label has the property called "text".
5)Bind ur context attribute (TextVal) with this text property in the label.
6)Write the code to set value fot these text.
Regards,
Ramganesan K.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
I guess you seek information about creating text/label UI element randomly.
follow this code,
IWDTransparentContainer tCont = (IWDTransparentContainer)view.getRootElement();
IWDLabel lab = (IWDLabel)view.createElement(IWDLabel.class,<name>);
lab.setText(<nameto be displayed>);
tCont.addChild(lab);
for textbox i.e inputfield replace Label with InputField.
hope it helps.
regards,
Abhijeet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
you can set the label/textbox dynamically: write following code in wdDoModify method of ur webdynpro application.
IWDTextView tx = (IWDTextView) view.getElement("textviewid");
tx.setText("My Text View");
IWDLabel lab = (IWDLabel) view.getElement("labelid");
lab.setText("My Label");
Plz rewards point.
Abhinav Sharma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You want to change the label dynamically ??
Bind the Text property of the label to a valueAttribute .
Regards,Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Your question is not clear..pl explain in detail
-Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.