on 03-24-2006 1:39 PM
Hi all,
I want to access view element attributes in coding beyond the static wdDoModifyView method. This method has a paremeter "view" (type com.sap.tc.webdynpro.progmodel.api.IWDView) which gives me access to element attributes via view.getElement(<name>).
Is it possible to access this IWDView object in view coding outside of method wdDoModifyView?
Michael
Hi Michael,
You can store view variable in context BUT it is hardly recommended to avoid doing this - try to redisign your logic.
Best regards, Maksim Rashchynksi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Why?
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Armin, isn`t it your opinion on this: :
<i>
No, this is bad advice. UI element instances should only be referenced in wdDoModifyView(). To change properties from event handlers, use data binding.
Armin
...........
Do not store the IWDView reference in the context for accessing UI elements from event handlers.
Armin
</i>
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.