on 08-17-2005 8:40 AM
Hi,
How do we access UI elements to retriev values or to change it properties.
For example if i have a text box and i need to rerivew it value upon a button click or make it invisible....How do we achieve it??
hi
create a context attribute say 'visible'.
Now go to its property.
Browse for property then under package 'com.sap.ide.webdynpro.uielementdefinitions' select the element named 'visibility'.
this will set the property of your attribute.
you can change it as wdcontext.currentcontextelement.set<your attribute>(wdvisibility.none);
Regards,
rahul.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sujesh,
Right click on attribute you have created. Select property. In the proprties select Type. Click on the three dot button at the end of row. In the dictionaries select local dictionary then select com.sap.ide.webdynpro.uielementdefinitions in that select Visibility. And now assign this attribute to the visibility property of your input field.
Regards,
Jaydeep
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 read the value of the InputField from the contextAttribute associated with the Texts property of the InputField.
Ex:wdContext.currentContextElement().get<Attrib>()
You can make inputfield visible/blank through Context.
Create a attrib of type WDVISIBILITY and bind it to inputfield visible property and change the value in the button click.
Regards, 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.