on 02-23-2008 6:53 PM
Hi all
I created a webdynpro application that has UI components which are created completely dynamically.
I have one dynamic context node and I add attributes dynamically to it on wdDoInit method. The UI components are added in wdDoModifyView while the firstTime is true.
I would like to change the UI components which are appear right now on the screen with others on some Click event. I can not manipulate the visibility of the components because on every event I have the different amount of components. I can reset my dynamic node with wdContext.getContext().reset(false) , but on Click event the firstTime is false.
I can not also create the UI component when the firstTime is false because I have other events such as check boxes and I dont want to reset the screen. How should I implement this issue?
Thanks in advance.
Create a boolean context attribute "rebuildUI", set it to true when the dynamic UI area should be rebuild.
wdDoModifyView(...)
{
if ( wdContext.currentContextElement().getRebuildUI() )
{
IWDTransparentContainer c = (IWDTransparentContainer) view.getElement("ID_of_dynamic_area");
c.destroyAllChildren();
/* rebuild area here... */
wdContext.currentContextElement().setRebuildUI(false);
}
}
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 |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.