Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

TextEdit Component

Hello Guys,

I've create a Web Dynpro Application and inside the view I add a TextEdit component with "EMPTY VALUE". How can I set the value "TEST" on the wdDoInit() method on this value in Runtime ? I don't Context parameters.

Like:

TextEdit.setValue("TEST);

I should use a wdControllerAPI or wdComponentAPI ?

Thanks,

Evandro.

replied

Hi Evandro

As Armin mentioned you must bind value property to a context attribute.

Let xxx is the context value of type string.Inside wdDoInit() write:

wdContext.currentContextElement().setxxx("TEST");

You can also use inside wdDoModifyView() this code

IWDTextEdit t= (IWDTextEdit)view.getElement("TextEdit1");
t.setValue("TEST");

but still context binding is needed.

Regards

Ananda

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question