on 04-17-2009 9:41 AM
Hi,
I have a table with a table popin. When the table popin is open, I can close it using the button on the right but I'd like to be able to close it using my own button. Is there a way to do that ?
Thanks for your answer.
Emmanuel
Hi,
Please try this way...
cl_wd_table->get_popin.....returns a cl_wd_table_popin.
If you were able to keep a button in the popin then try to use the method set_on_close method of cl_wd_table_popin.
Regards,
Lekha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In the modifyview method, get the reference of the table and using this table reference try to use
the method get_popin and do the rest. try to use the global vairables to store the reference.
One more query...were you able to Keep the button on the popin....
DATA:
lr_table type ref to cl_wd_table.
lr_view_ele type ref to IF_WD_VIEW_ELEMENT. " View UI element
CALL METHOD VIEW->GET_ELEMENT
EXPORTING
ID = 'TABLE' "Table Id
RECEIVING
ELEMENT = lr_view_ele.
***Gettig the button object reference for REVIEW button
lr_table ?= lr_view_ele.
Regards,
Lekha.
Hi,
Are you using the single table or 3tables....
If you have 3popins then you can get the references of the each popin and use the set_on_close by passing the Popin Id.
How are you using the popin...........I mean row/cell popin in a single table or are showing 3tables as 3popins...
Regards,
Lekha.
Hi,
Please check this example how to get that reference of that popin.
WDR_TEST_TABLE---check the view ROW_POPIN.
In the node to which you have bound the table, create a context attribute SELECTED_POPIN of type string and try to work on open and closing the popin based on this attribute.
Refer to the above example for the same...
Regards,
Lekha.
Hi,
Create a Attribute context_element Ref To IF_WD_CONTEXT_ELEMENT in the onaction of BUTTON which You have added in POP-IN
And Write the following code in onactionclose.
method ONACTIONCLOSE .
context_element->set_attribute( name = 'SELECTED_POPIN' value = '' ).
endmethod.
I hope it helps.
Regards,
Rohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
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.