cancel
Showing results for 
Search instead for 
Did you mean: 

Moviing UIElements dynamically

Former Member
0 Kudos

Hi All,

Can I move the UIElements in webdynpro dynamically.

I have to move buttons in a group from one position to another position. Here I have taken grid layout for my group.

Could anybody help me out.

Regards,

Accepted Solutions (1)

Accepted Solutions (1)

former_member182372
Active Contributor
0 Kudos

Hi Naga,

Use method

  /**
   * Swaps the Children at the given indices.
   * 
   * @param i index of the first Child to swap
   * @param j index of the second Child to swap
   * @throws IndexOutOfBoundsException If one of the indices is out of bounds
   */
  public void swapChildren(int i, int j); 

from com.sap.tc.webdynpro.progmodel.api.IWDUIElementContainer (which is super interface for IWDGroup).

Best regards, Maksim Rashchynski.

Answers (1)

Answers (1)

Former Member
0 Kudos
IWDUIElement child = container.removeChild(i);
container.addChild(child, j);

Armin

Message was edited by: Armin Reichert