on 01-22-2014 1:57 PM
Hello All,
I have implemented the "table popin" functionality in my Table (UI element ). Its working fine with the "toggle Button" But i want to call the popin-view on the lead selection of the table. Is this possible, if yes please share how to do this.. ?
Regards,
Chandra
ps: I have searched everything in already posted query but didn't find anything useful related to my issue ,if i missed something which can help me to resolve this issue, so sorry for that.
Hi,
Yes. you can achieve the same in onLeadSelect as well. Use Cell Popin instead of Row Popin ( to avoid expand/toggle button ).
then create an event for onLeadSelect of Table and write the below code:
DATA lr_table_cell_editor TYPE REF TO cl_wd_view_element.
DATA lr_table_column TYPE REF TO cl_wd_table_column.
DATA lr_popin TYPE REF TO cl_wd_table_popin.
DATA lr_view TYPE REF TO if_wd_view.
DATA lo_nd_sflight TYPE REF TO if_wd_context_node.
DATA lo_el_sflight TYPE REF TO if_wd_context_element.
lr_view ?= wd_this->wd_get_api( ).
lr_table_cell_editor ?= lr_view->get_element( 'LNK_CARRID' ). " here LNK_CARRID is " "the ID of column in table to which the cell popin is assigned
lr_table_column ?= lr_table_cell_editor->get__parent( ).
lr_popin = lr_table_column->get_popin( ).
lo_nd_sflight = wd_context->get_child_node( name = wd_this->wdctx_sflight ).
lo_el_sflight = lo_nd_sflight->get_element( ).
lo_el_sflight->set_attribute( name = 'POPIN_CURR' value = lr_popin->id ). " POPIN_CURR is the attribute to which the current selected popin is bound.
Hope this helps u,
Regards,
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Could you please check what is the reference you are getting in 'lr_table_cell_editor' . Have you changed the Column to Link to Action ( not necessary though) ?
Edited:
Here is the Layout:
To explain the code: First getting the cell editor ('lr_table_cell_editor) LNK_CARRID, then getting the parent of the cell editor which is TABLE_CARRID_1 ( of type table column reference) then getting the Popin assigned to that Table Column.
Hope you are doing the same.
Regards,
Kiran
Message was edited by: Kiran Kumar Valluru
Hi Chandra,
yes we can achieve using Cell POPIN.
Follow the below steps :
1. In your desired table don't insert a new table column instead , create a ui element called TABLEPOPIN in your existing column itself.( say u have three columns , in the first column you create ui element tablepopopin and its id is COLUMN1_POPIN).
2. create a context attribute say selected_popin ( type string ) in your Context .
3.Bind this attibute to table property selectedpopin.
4. create an method for Lead select of table.
Code in the LEAD SELECT method :
data : lo_element type ref to if_wd_context_element.
lr_element type ref to cl_Wd_view_element.
data lr_column type ref to cl_wd_table_column.
data lr_popin type ref to cl_wd_table_popin.
lo_elemet is the reference you get from the GET SELECTED ELEMENT of the node. (lead selected element )
lr_element ?= wd_this->m_view->get_element( 'COLUMN1_ID' ). ( COLUMN1_ID you get from lo_element)
lr_column ?= lr_element->get__parent( ). " This gives the Table column in which popin is present
lr_popin = lr_column->get_popin( ). " Gives the Popin reference, from popin reference acess its id to get the COLUMN1_POPIN)
* Bind this id to your node
NODE->set_attribute( name = 'SELECTED_POPIN' value = wd_popin->id )
Regards,
Ravikiran.K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
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.