on 02-16-2011 9:46 PM
Hi all,
I have a group in which i have created a dropdown
As per my requirement on click of a button i need to generate the same dropdown, i/p field again
I have achieved this but the dynamically created ui elements doesnt comes at the right position
ie just under the first group
Can some one please suggest me with this
Hi Bhanu,
It is depends on the layout you have chosen and on which UI container you add the new element.
For example Flowlayout would add the elements in sequence from left to right.
In your case you might have added the new element to the rootcontainer and that might be the reason that it is coming under the group.
As already suggested in this forum, choose right Layout and right container.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use the matrix layout or row layout in the container where you are adding the elements
and when adding a new row
set the layout data to the matrix head data for the first element and then add it.
for rest of them keep it matrix data only.
then they will come in a symmetric view.
thanks
sarbjeet singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
You can use the following code in the wddomodifyview() method to add elements inside the Group:
data grp type REF TO cl_wd_group.
data LR_FLOW_DATA type ref to CL_WD_FLOW_DATA.
data button type ref to CL_WD_BUTTON.
button = CL_WD_BUTTON=>NEW_BUTTON( ).
LR_FLOW_DATA = CL_WD_FLOW_DATA=>NEW_FLOW_DATA( element = button ).
button->set_text( value = 'Check').
grp ?= view->GET_ELEMENT( 'GRP' ).* where GRP is the id of the Group created at designtime.
grp->add_child( button ).
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
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.