cancel
Showing results for 
Search instead for 
Did you mean: 

refresh internal table records in web dynpro

Former Member
0 Kudos

Hi Guru's

I am facing an issue in web dynpro abap.

in my application there is a button called OPEN.

when i click on open button internal table records should be refreshed.

so i have written code like this

DATA lo_COMPONENTCONTROLLER TYPE REF TO IG_COMPONENTCONTROLLER .

lo_COMPONENTCONTROLLER = wd_this->get_componentcontroller_ctr( ).

lo_componentcontroller->clear_info_refresh_visible( ).

but iam getting an error message Method "CLEAR_INFO_REFRESH_VISIBLE" is unknown or PROTECTED or PRIVATE

Could you please help me to how do i activate and refresh the things.

Thanks

Rajue

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Guru's

>

> I am facing an issue in web dynpro abap.

> in my application there is a button called OPEN.

> when i click on open button internal table records should be refreshed.

> so i have written code like this

>

> DATA lo_COMPONENTCONTROLLER TYPE REF TO IG_COMPONENTCONTROLLER .

>

> lo_COMPONENTCONTROLLER = wd_this->get_componentcontroller_ctr( ).

>

> lo_componentcontroller->clear_info_refresh_visible( ).

>

>

>

> but iam getting an error message Method "CLEAR_INFO_REFRESH_VISIBLE" is unknown or PROTECTED or PRIVATE

>

>

> Could you please help me to how do i activate and refresh the things.

>

> Thanks

> Rajue

Raju,

Please clarify this.

Do you have a method clear_info_refresh_visible in your component controller. I think not.

I am not able to relate your request and coding.

You can simply clear the internal table like this

clear lt_intern_tab[].

If it is a context node then you can bind a empty table to the node to make it empty.

lo_nd_data->bind_table(

new_items = lt_intern_tab

set_initial_elements = abap_true ).

Former Member
0 Kudos

Hi Rajue

Just some troubleshooting actions for you to check:

- the component declaration is referenced on your View (properties TAB) ?

- not 100% sure from your post, but it seems you are calling the method without the space in the middle of your parenthesis. Is your syntax correct for that method call ?

Here's some code example similar to yours but with the "code" formating:


  lo_COMPONENTCONTROLLER =   wd_this->get_componentcontroller_ctr( ).
  l_string = lo_componentcontroller->get_string( ).

Please let me know if this helps.

KInd Regards

/Ricardo

RicardoRomero_1
Active Contributor
0 Kudos

HI,

Why not set an empty table to the context node?