Skip to Content
author's profile photo Former Member
Former Member

Move UIElements dynamically

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?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Jun 19, 2008 at 10:03 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 19, 2008 at 10:05 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2008 at 10:05 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.