cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic chage in text view as per selection from drop down

Former Member
0 Kudos

Hi Experts,

I am doing one application with one drop down and one text view .In drop down i have 50 values and if i select any of that 50 values i have to change values of text view. Please let me know how it is possible.

Regards,

Gurprit Bhatia

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Ans.

Former Member
0 Kudos

Hi,

u just map d same context value attribute to text property of textview which u have erlier mapped to drop down .

hpe it hlps

Regards

Khushboo

Former Member
0 Kudos

Hi,

create one method and bind it with dropdown "onselect" event and write code as follow.



public void onActionShowdetails(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
  {
   wdContext.current<valuenode>Element().set<ypur textview valueattribute(wdContext.currentcurrentElement().get<valuatribute of dropdown>());
}

Thanks

Abhilasha

former_member335005
Participant
0 Kudos

Hi Gurprit,

Use the onSelect action of the dropdown to give new value to the textview.

Regards,

Sangeeta

Former Member
0 Kudos

Hi,

Please provide code for same if possible ?

Regards,

Gurprit Bhatia

Former Member
0 Kudos

hi,

if the dropdown populated with simple type do the following in the onSlect of the Dropdown,

wdContext.currentContextElement().setTextview(wdContext.currentContextElement().getDropdown());

it will set the value selected to the textview.

Regards,

ramesh

Former Member
0 Kudos

Hi,

Let me clear my view i have 5 to 10 values for every drop down value.So i have to display that values on text view.

Regards,

Gurprit Bhatia