on 11-08-2008 12:46 AM
Hi frnds,
I have two tables.. one below the other..
the below table has drop down values. lets say table2
the above has the item list. lets say table1
WHen a new record is selected in the table 1, the below table2 has to update few values. for that i created a action, and assinged to onLeadselect for table1. it is working fine.
But on table1, i have a button Delete, which deletes the row selected. to get the index of row i am using get_lead_selection_index( ).
but it is giving wrong values.. like 2- if last row if i delete, 1 value if second row delted...
and giving dump if i delete the only record..
pls help ... i even tried to read the context using the wizard,, that is also giving wrong values, which is not slected...
kindly help
thanks in advance,
niraja
In the First table on Select Event add
NEW_LEAD_SELECTION type IF_WD_CONTEXT_ELEMENT in the action parameters.
And use this NEW_LEAD_SELECTION to get the index, value what ever u want.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can add attributes in the View to store the selected values .
For eg Add gv_index type i.
Now in the On select first table add a parameter NEW_LEAD_SELECTION type IF_WD_CONTEXT_ELEMENT in the action.
Now
use the get index method.
CALL METHOD new_lead_selection->get_index
RECEIVING
my_index = lv_index.
wd_this->gv_index = lv_index.
Now when u press the Delete Button the wd_this->gv_index gives the current index which u have selected before
And in the properties of the table SelectionMode use singleNoLead proerty so that the user has to select some value to delet the records.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
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.