Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Cl_chart_engine is not refreshing with new value.

Former Member
0 Likes
1,693

HI All ,

            I am passing the value of internal table for the first time it is updating the correct graph , but after pressing the back button i am passing new value to the internal table and but  graph is not refreshing .

             LOOP AT gt_chart INTO gwa_chart.

             lobj_element = xu_ixml_doc->create_simple_element(

             name = 'C' parent = lobj_categories ).

            lobj_element->if_ixml_node~set_value( gwa_chart-text ).

            lobj_element = xu_ixml_doc->create_simple_element(

           name = 'S' parent = lobj_series ).

           lobj_element->if_ixml_node~set_value( gwa_chart-value ).

           endloop.

Reagards

Kishore



1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,604

You must be calling methods set_data and render of class instance cl_gui_chart_engine in PBO module.

Put a breakpoint and check whether on repeat attempt, fresh data is being set or not.

12 REPLIES 12
Read only

Former Member
0 Likes
1,605

You must be calling methods set_data and render of class instance cl_gui_chart_engine in PBO module.

Put a breakpoint and check whether on repeat attempt, fresh data is being set or not.

Read only

0 Likes
1,604

Hi Manish,

I have also similar requirement and i use set method and render the class instance . The data is Passing Perfectly but second time data is passing correctly but it is not updating with new value.

  

     gobj_ce_viewer->set_data( xdata = lv_xstr ).

     lobj_ostream = gobj_ixml_sf->create_ostream_xstring( lv_xstr ).

     CALL METHOD lobj_ixml_custom_doc->render

       EXPORTING

         ostream = lobj_ostream.

     gobj_ce_viewer->set_customizing( xdata = lv_xstr ).

Thanks

Rajeev


Read only

0 Likes
1,604

It is possible that in PBO module, you have put code that runs only when custom container in INITIAL.

Because of such validation, internal table gets assigned to chart only on first PBO run.

On subsequent PBO runs, even if internal table changes, the changes won't get registered in chart because custom container is no longer initial.

Read only

0 Likes
1,604

Hi Manish ,

Thanks for the reply .

For that reason i free the custom custom container each time and value is passing correctly.but chart value is not populated on the screen.

Thanks

Rajeev

Read only

0 Likes
1,604

and ,

I was able to do it by calling method free of class cl_gui_custom_container.

Put below statement in PAI module and see what happens.

go_container->free( ).

Read only

0 Likes
1,604

Hi Manish,

Thanks for your reply.

I have already free the container in PAI module .

When 'BACK'

IF gobj_ce_container IS NOT INITIAL.

         gobj_ce_container->free( ).

       ENDIF.

LEAVE TO SCREEN 0.

One more question here if we are using module pool to generate selection screen and one more screen to display the chart then it will work or not because if we are checking standard program

they didn't use module pool program to generate  selection screen .

Thanks

Rajeev

Read only

0 Likes
1,604

It should work.

This theory can be confirmed by copying the standard program and modifying it.

Read only

0 Likes
1,604

But Not able to refreshing the chart value  but container is refreshing each time.

Read only

0 Likes
1,604

Thanks Manish ,

I am able to refresh the screen .

Read only

0 Likes
1,604

Thans manish , all your answers were helpful and i got the desired result .

Regards

kishore

Read only

0 Likes
1,604

Hi Manish,

Could  you please provide us the valuable suggestion on this thread.

http://scn.sap.com/thread/3384653

Thanks

Rajeev

Read only

Former Member
0 Likes
1,604

This message was moderated.