cancel
Showing results for 
Search instead for 
Did you mean: 

How to Refresh the Container in Webdynpro ABAP

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

     ya, it is a table i get the data into binded table also but its not reflect into screen.

Former Member
0 Kudos

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

Former Member
0 Kudos

HI,

     I get the data into node_itab also but it's not reflecting in the screen.

Former Member
0 Kudos

Hi,

Ok, you got your data into itab. But you dont bind it to node. Bind your itab to node which is connected to your table.

Former Member
0 Kudos

Hi,

      LR_TNODE->BIND_TABLE( <FS> ).

      In this LR_TNODE i get the data but its not reflecting.

Former Member
0 Kudos

Hi,

You are using <FS>. Do you get an error on debug? And dou you have chance to move your data an itab?

Former Member
0 Kudos

Hi,

      Yes i move the data from <fs> to lr_tnode but its not reflecting.

Former Member
0 Kudos

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.