on 04-20-2006 12:37 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Armin,
I just add the TextEdit on the view. I'm not using Context parameters. I would like set the value on the wdDoInit().
Thanks,
Evandro
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must bind the "value" property to a context attribute and set the context attribute value.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.