on 06-19-2008 10:56 AM
Hi again,
I've created a dynamic form with webdynpro, but I would like that some static UIElements (a group with action buttons) remain in the bottom of my form. Right now when I create a new elements dynamically they are added to the root. E.g:
Before executing my app:
Root
X
XX HeaderGroup
XXXx Label
X
XX ButtonsGroup
XXXX Button 1
XXXX Button 2
==================
After executing:
Root
X
X
XX HeaderGroup
XXXX Label
X
X
XX ButtonsGroup
XXXX Button 1
XXXX Button 2
X
X
XX DynamicGroup
XXXX Dynamic Element1
XXXX Dynamic Element2
===================
Desired display:
Root
X
X
XX HeaderGroup
XXXX Label
X
X
XX DynamicGroup
XXXX Dynamic Element1
XXXX Dynamic Element2
X
X
XX ButtonsGroup
XXXX Button 1
XXXX Button 2
===================
What do you suggest me?
Hi Joan,
Do not add the dynamic group to the root container.
Instead try to insert a container which will contain group container.
Do the similar thing with buttons.
Desired display:
Root
X
X
XX HeaderGroup
XXXX Label
X
X
XXTempGrp
XXX DynamicGroup
XXXX Dynamic Element1
XXXX Dynamic Element2
X
XXTempGrp1
XXX ButtonsGroup
XXXX Button 1
XXXX Button 2
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
create the button group dynamically or
create the group in the design time ie statically(XXX DynamicGroup) and add the ui elements to the group dynamically at runtime .
thanks and regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use the following method to add childrens to the container
public void addChild(IWDUIElement child, int index);
Ex:
IWDTransparentContainer container = (IWDTransparentContainer)view.getElement("RootElement");
IWDTextEdit textEdit = (IWDTextEdit)view.createElement(IWDTextEdit.class);
container.addChild(textEdit, 1);
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
75 | |
9 | |
8 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.