on 01-12-2009 1:02 PM
Dear all.
I am able to create one dynamic UI element, and bind to a node.
Now the point is my node is of cardinaly 0..n.
Based on some logic, there can be various (or 0) text edit UI element dynamically.
How can I write this code? Any help is greatly appreciated.
Thanks in adv!
You will need to follow the same rules as if you were designed this multi-item in the view designer - use one of the iterator controls as a parent. Things like rowRepeater or MultiPane will take care of the proper binding to the x:n cardinality and generate the proper number of child UI elements. Otherwise you would not be able to generate the correct binding strings.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Check this code
data: LR_CONTAINER type ref to CL_WD_UIELEMENT_CONTAINER,
LR_BUTTON type ref to CL_WD_BUTTON,
LR_FLOW_DATA type ref to CL_WD_FLOW_DATA.
do 10 TIMES.
LR_BUTTON = CL_WD_BUTTON=>NEW_BUTTON( ).
LR_FLOW_DATA = CL_WD_FLOW_DATA=>NEW_FLOW_DATA( element = LR_BUTTON ).
LR_CONTAINER ?= view->GET_ELEMENT( 'ROOTUIELEMENTCONTAINER' ).
LR_CONTAINER->ADD_CHILD( LR_BUTTON ).
enddo.
it is for inserting 10 buttons on the same basis you can insert number of text views......
regards
Pranav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
try with row repeater ui element.
Regards
Yash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.