cancel
Showing results for 
Search instead for 
Did you mean: 

Business Graphics UI SimpleSeries Changing Label Dynamically

AlexGiguere
Contributor
0 Kudos

Hi guys, I am using the business graphic UI element in one of my WD4A component. My BG has 2 simple series and one category. As I can see, using simple series, the label property cannot be bound against a context node attribute. I have to find a way to set this property dynamically.

According to this link: click after on the simple series

[http://help.sap.com/saphelp_nw70/helpdata/EN/ed/258841a79f1609e10000000a155106/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/EN/ed/258841a79f1609e10000000a155106/frameset.htm]

It seems we can change the label property dynamically, maybe using the API but how?

I found the interface IF_WD_BUSIN_GRAPHICS_MTD_HNDL, but I don't know how to use it!

thanks

Alex

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Alexandre,

have a look at the Web Dynpro component WDR_TEST_EVENTS, view BG_SIMPLE_IN_MPANE, method WDDOMODIFYVIEW.

Here is a snippet for setting additional customizing or data for a business graphics view-element. Call this from method WDDOMODIFYVIEW.


DATA lr_bg TYPE REF TO cl_wd_business_graphics.
DATA lr_bg_method_handler TYPE REF TO if_wd_busin_graphics_mtd_hndl.

DATA lr_add_cust_xml TYPE REF TO if_ixml_document.

lr_bg ?= ir_view->get_element(  <your viewid of business graphic>  ).
lr_bg_method_handler ?= lr_bg->_method_handler.

lr_add_cust_xml =  get_<your additional customizing/data>. 
lr_bg_method_handler->add_direct_customizing(
i_customizing = lr_add_cust_xml
).

Kind regards,

Silke