cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing UI elements

Former Member
0 Kudos

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??

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

is there no way with out a context attribute??

I have created WDVisibility attribute of type WDVisibility . Now when i assign it to input field's visible property it says "Select an attribute of type Visibility"..

pls let me know whats the prob

Former Member
0 Kudos

Do not create java type WDVisibility, select DDIC type Visibility from

VS