on 02-17-2011 3:07 AM
Hello,
I have an static BGR with one static category (binded to the context node) and three simple series (binded to the context node).
To fill the contex attibutes I use information from two internal tables. One table with category info (weeks records) and one table with series info (z id's).
I need to know if it is possible to delete one static simple series at runtime. How can I do it? Could you give me an example of logic?
I tried to crate the BGR dinamically but I failed.
Regards,
You can fetch the BGR UI element in the wddomodify view or some other method ( by making view instance available through
attributes ). and then remove the series.;
here is the sample code for removeing a static sample series.
data BGR type ref to cl_wd_BUSINESS_GRAPHICS.
bgr ?= v->get_element( 'BGR' ). " BGR is the id of my BGR UI element
BGR->REMOVE_SERIES( ID = 'SR2' ). "SR2 is the id of the static series.
thanks
sarbjeet singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you cannot do so
not possible
only dynamic attributes can be deleted with remove method of node_info.
so i will suggest create the attribute dynamically then delete based on the condition
http://help.sap.com/saphelp_nw04s/helpdata/en/7e/a23742c4f5b16be10000000a155106/content.htm
here it is clearly mentioned that you cannot delete attributes that have been defined as static.
thanks
sarbjeet singh
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.