on 05-17-2011 12:54 PM
Hello All,
I have requirment where in
When user select the column and click on a custom button "FILL COLUMN"
then the first field value in the column needs to get copied
in all the row of the same column.
Ex:-
Suppose a table contain a A, B ,C columns with 3 line items
A B C
1 a x
2 c y
3 b z
When user selects B column then click on Fill column then
all the values in the column should become a
A B C
1 a x
2 a y
3 a z
How can we select a column?
How can we caputure the value in onactionFILLCOLUMN??
Please let me know how we can handle this requirement.
Regards,
Neelima
Edited by: S Neelima on May 17, 2011 1:54 PM
Edited by: S Neelima on May 17, 2011 1:55 PM
Edited by: S Neelima on May 17, 2011 1:57 PM
Hi Neelima,
You can't select Columns in table, you can select rows only. Are you talking about rows or columns?
Cheers,
Kris.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Expand the table UI element. Select the Column. it has event onAction. i think u can write the code for this event.
When u create the methid for it, check the 'Transfer ui element parameter'.
In the parameter list u will get a parameter 'ID' type string. U will get the column name .
hope this will helps u.
Regards
Shaira.
Edited by: Shaira Madhu on May 17, 2011 2:24 PM
Edited by: Shaira Madhu on May 17, 2011 2:27 PM
Hi Neelima
For every column we have ON_ACTION event, we can write coding in this based on requirement.
Or I Think ... i am trying this example.. just try
Select row and get the value of b and fil table with new valeus again.
1. Below code gives you selected record.
DATA lo_nd_pack_mat TYPE REF TO if_wd_context_node.
DATA ls_pack_mat TYPE wd_this->Element_pack_mat.
DATA lt_pack_mat TYPE wd_this->Elements_pack_mat.
navigate from <CONTEXT> to <PACK_MAT> via lead selection
lo_nd_pack_mat = wd_context->get_child_node( name = wd_this->wdctx_pack_mat ).
lo_nd_pack_mat->get_static_attributes_table( importing table = lt_pack_mat ). // t_pack_mat containes selected record.
suppose you want to change B column values.
loop at lt_pack_mat into ls_pack_mat.
ls_pack_mat-b = 'A'.
append ls_pack_mat to lt_pack_mat.
endloop.
lo_nd_pack_mat->bind_table( LT_PACK_MAT ).
Hope it helps..
Cheers,
Kris.
Hello Kris,
This logic is working but it is not visible in the screen after saving it.
I have checked it in debugging
lo_nd_pack_mat->bind_table( LT_PACK_MAT ).
LT_PACK_MAT also the changed values but it is not visible in the screen.
Please let me know how i can resolve this issue.
Regards
Neelima
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.