on 06-27-2012 1:06 PM
Hi,
I created a container " data lr_container type ref to cl_wd_uielement_container. "
I want to refresh when i click on button. How to achieve that.
Thanks&Regards,
Ravi S.
Hello Ravi,
Please check the Data which you are binding to the table.
DATA: lrcl_node_table TYPE REF TO if_wd_context_node,
lt_table TYPE ig_componentcontroller=>elements_table.
* Get the context node ref
lrcl_node_table = wd_context->get_child_node('TABLE').
* Prepare the data for the TABLE
SELECT * FROM sflight INTO TABLE lt_table.
* Bind the Data back to the context
lrcl_node->bind_table( TABLE ).
Good Luck,
Kiron
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ravi,
What is in container? A table? A inputfield? If yes you can get and bind data again.
Message was edited by: Thomas Jung - remove request for points
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok,
You got your from db or function into itab. Then bind it to context. Your context should be binded to table in WDA.
Sample Code:
DATA: NODE_ITAB TYPE REF TO IF_WD_CONTEXT_NODE,
NODE_ITAB = WD_CONTEXT->GET_CHILD_NODE( NAME = 'ITAB' ).
NODE_ITAB->BIND_table( ITAB ).
Please reward points if helpful
Hi,
NODE_ITAB = WD_CONTEXT->GET_CHILD_NODE( NAME = 'CONTEXT_NODE' ).
NODE_ITAB->BIND_table( DATA_ITAB ).
You put your data to DATA_ITAB. Then you get context node named CONTEXT_NODE. Then second line you bind your red one to green one. That's all. I assume that you bind your table to CONTEXT_NODE. If all of them are true there is no problem not to work.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.