cancel
Showing results for 
Search instead for 
Did you mean: 

Clear the values

Former Member
0 Kudos

Hi,

In my application,i have a dropdown key called group .For this am getting the value, country key.When i select the country key, i am getting the values in the inputfield named as state, based on the selected country. When i select another country the values of first country also added with the second country key in the state field

How can i clear the first country when i select the second time?

Regards,

Kiruba

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi..

chk this thread:[;

or try this on select action of dropdown

wdContext.currentNodeElement().set<attribute>("");

Regards

Khushboo

Former Member
0 Kudos

Hi,

wdContext.currentContextElement().set<inutfield value attribute>("");

OR

refresh the node by using wdcontext.node<yournode>.invalidate();

hope it will help u.

Regards

vineela

Former Member
0 Kudos

Hi Martin,

I have tried this,but the is not clearing.

reg

Kiruba

Former Member
0 Kudos

Hi,

do I understand correct... you have a DropDownBox and a InputField. Everytime you select something in the DDB you want to show the text in the input field. In the onSelect Action you read the text as follows:

wdContext.currentContextElement().set<yourInputFieldAttribute>(wdContext.<yourDropDownNode>().getXXX();

Reg.,

Martin

Former Member
0 Kudos

hi Martin,

Yes u r correct. I set the F4 help values.

Kiruba

Former Member
0 Kudos

Hi,

try to invalidate the context node where you save the countries and display them (in the onSelect Action of the DropDownBox).

wdContext.node<yourNodeName>().invalidate();

Regards,

Martin