Business Graphics UI SimpleSeries Changing Label Dynamically

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

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

Similar Messages

  • Reports 6.0 changing label dynamically

    I am using reports 6.0. I want to change reports label dynamically. I want to build the routine which should work for all the reports. This concept I want to use multi-language facility in my application.
    I have tried set_field, set_attr. But it didn't solve my problem . Can any one help me ?

    Madhuri,
    Please try the Reports forum rather then the SCM forum.
    David

  • Business Graphics: Speedometer chart: Change Maximum value on runtime

    Hi Skilled,
    We faced a little problem in our project. We use Business Graphics component and Speedometer chart on the View and we should change maximum value of the graphics on runtime.
    I could easily change the maximum on design time in Chart Designer -> Axis -> Maximum Value, but I haven't found a way to change it on runtime.
    Are there any known ways to change the value on runtime?
    Best Regards, Dmitry

    Hi,
    by calling setDirectCustomizing you can provide customizing XML at runtime.
    Create your own customizing XML where you define the maximum value and call this method.
    You can also use the SAP Chart Designer from SDNs download area for creating the XML (just to get an idea how the XML has look like in your application).
    Regards, Kai

  • Business Graphics:Create multiple Pie charts dynamically

    Hi Experts,
    I have a requirement to create 10 different pie chart in a view in a Grid layout.
    The charts will be created dynamically because the data will be known at runtime.
    Any type of help will be appreciated
    Regards.

    Hi,
    Here is a simple example:
    you must write this code in wdDoModfy() method, in if (firstTime){}
    in the layout there is already created one transperent container with id BG_CONTAINER
    //add a node
    IWDNodeInfo loDynNode = wdContext.getNodeInfo().addChild("DynNode", null, true, false, true, false, false, true, null, null, null);
    //add some attributes to it
              loDynNode.addAttribute("DynAttr1Str", "ddic:com.sap.dictionary.string");
              loDynNode.addAttribute("DynAttr2Int", "ddic:com.sap.dictionary.integer");
    //get the node
              IWDNode node = wdContext.getChildNode("DynNode", 0);
    //fill the node with some values
              for (int i = 0; i < 10; i ++){
                   IWDNodeElement element = node.createElement();
                   element.setAttributeValue("DynAttr1Str", "Str value " + i);
                   element.setAttributeValue("DynAttr2Int", new Integer(i));
                   // Add to the content
                   node.addElement(element);
    //get the attributes, we will use the attrinfo to bind them to the series
              IWDAttributeInfo loDynAttr1StrInfo = loDynNode.getAttribute("DynAttr1Str");
              IWDAttributeInfo loDynAttr2IntInfo = loDynNode.getAttribute("DynAttr2Int");
    //create the graphics
              IWDBusinessGraphics loGraphics = (IWDBusinessGraphics)view.createElement(IWDBusinessGraphics.class,"bg1");
    //set the type to pie
              loGraphics.setChartType(WDBusinessGraphicsType.PIE);
    //create a simple series and bind the integer attribute to it
              IWDSimpleSeries loSSeries = (IWDSimpleSeries)view.createElement(IWDSimpleSeries.class, "Series1");
              loSSeries.bindValue(loDynAttr2IntInfo);
    //create the  category and bind the string attribute to it
              IWDCategory loCategory = (IWDCategory)view.createElement(IWDCategory.class,"Category1");
              loCategory.bindDescription(loDynAttr1StrInfo);
    //add series and category
              loGraphics.addSeries(loSSeries);
              loGraphics.setCategory(loCategory);
    //I assume that there is a transperent container already created design time to put the graphics there
    //container with id BG_CONTAINER
              IWDTransparentContainer loContainer =  (IWDTransparentContainer)view.getElement("BG_CONTAINER");
    //add the graphics
              loContainer.addChild(loGraphics);
    If this is the type of graphics you need then you must simply do a for cycle and supply the graphics with the right node elements and you are ready.
    Best regards,
    Anton

  • Business Graphics 3D display

    Hi,
    I have created a Webdynpro Application with Business Graphics. I am trying to create a 3D display of Bar charts which is working fine with developer user id. When the same application is executed by an End User it displays in 2D. Can some one suggest how to handle this?
    Thanks in Advance.
    Regards,
    Sridhar M R

    Hi Gayathri,
    Please cehck this..
    Different color in business graphics
    Unable to change graph color
    Cheers,
    Kris.

  • Reg : Customizing Business Graphics.

    Hi All,
    I am trying to customize Business Graphics, (i.e) changing the font, background and etc.., I modified the design by using "Edit Customizing" option of the Business Graphics UI. But whatever the modification i did in the design time was not replicated in the run time. Is anything more to do...?
    Thanks,
    Mugu

    Hi,
    Apart from making cutomizing settings in Chart Designer, you can also write the following code
    in domodifyview method to bind the settings at run time.
    ** Build the XML string to set the GRAPH title*
      *DATA: l_ixml            TYPE REF TO if_ixml,*
             *l_document        TYPE REF TO if_ixml_document.*
      *DATA: l_element_SAPChartCustomizing TYPE REF TO if_ixml_element,*
            *l_element_Elements TYPE REF TO if_ixml_element,*
            *l_element_ChartElements  TYPE REF TO if_ixml_element,*
            *l_element_Title    TYPE REF TO if_ixml_element,*
            *l_element_Caption      TYPE REF TO if_ixml_element,*
            *l_element_ChartAxes   TYPE REF TO if_ixml_element,*
            *l_element_CategoryAxis   TYPE REF TO if_ixml_element,*
            *l_element_ValueAxis   TYPE REF TO if_ixml_element,*
            *l_value           TYPE string.*
    **       Creating a ixml factory*
      *l_ixml = cl_ixml=>create( ).*
    **       Creating the dom object model*
      *l_document = l_ixml->create_document( ).*
    **       Fill root node with value SAPChartCustomizing*
      *l_element_SAPChartCustomizing  = l_document->create_simple_element(*
                  *name = 'SAPChartCustomizing'*
                  *parent = l_document ).*
    **       Create element 'Elements' as child of 'flights'*
      *l_element_Elements  = l_document->create_simple_element(*
                  *name = 'Elements'*
                  *parent = l_element_SAPChartCustomizing  ).*
    **       Create element 'ChartElements' as child of 'flights'*
      *l_element_ChartElements  = l_document->create_simple_element(*
                  *name = 'ChartElements'*
                  *parent = l_element_Elements  ).*
    **       Create element 'Title' as child of 'flights'*
      *l_element_Title  = l_document->create_simple_element(*
                  *name = 'Title'*
                  *parent = l_element_ChartElements  ).*
    **       Create element 'Caption' as child of 'flights'*
      *l_value = WD_ASSIST->IF_WD_COMPONENT_ASSISTANCE~GET_TEXT( '052' ).*
      *l_element_Caption  = l_document->create_simple_element(*
                  *name = 'Caption'*
                  *value = l_value*
                  *parent = l_element_Title  ).*
    **       Create element 'ChartAxes' as child of 'flights'*
      *l_element_ChartAxes  = l_document->create_simple_element(*
                  *name = 'ChartAxes'*
                  *parent = l_element_Elements  ).*
    **       Create element 'CategoryAxis' as child of 'flights'*
      *l_element_CategoryAxis  = l_document->create_simple_element(*
                  *name = 'CategoryAxis'*
                  *parent = l_element_ChartAxes  ).*
    **       Create element 'Title' as child of 'flights'*
      *l_element_Title  = l_document->create_simple_element(*
                  *name = 'Title'*
                  *parent = l_element_CategoryAxis  ).*
    **       Create element 'Caption' as child of 'flights'*
      *l_value = WD_ASSIST->IF_WD_COMPONENT_ASSISTANCE~GET_TEXT( '015' ).*
      *l_element_Caption  = l_document->create_simple_element(*
                  *name = 'Caption'*
                  *value = l_value*
                  *parent = l_element_Title  ).*
    **       Create element 'ValueAxis' as child of 'flights'*
      *l_element_ValueAxis  = l_document->create_simple_element(*
                  *name = 'ValueAxis'*
                  *parent = l_element_ChartAxes  ).*
    **       Create attribute 'id' for elsement 'ValueAxis'*
      *l_element_ValueAxis->set_attribute( name = 'id' value = 'ValueAxis1' ).*
    **       Create element 'Title' as child of 'flights'*
      *l_element_Title  = l_document->create_simple_element(*
                  *name = 'Title'*
                  *parent = l_element_ValueAxis  ).*
    **       Create element 'Caption' as child of 'flights'*
      *l_value = lv_con_curr.*
      *l_element_Caption  = l_document->create_simple_element(*
                  *name = 'Caption'*
                  *value = l_value*
                  *parent = l_element_Title  ).*
      *DATA : lr_container TYPE REF to cl_wd_uielement_container,*
             *lr_bg TYPE REF to cl_wd_Business_Graphics,*
             *lr_bg_method_handler type ref to IF_WD_BUSIN_GRAPHICS_MTD_HNDL .*
    **Get the Valuation type container*
      *lr_bg ?= view->get_element( id = 'BGR_REMINQ' ).*
      *lr_bg_method_handler ?= lr_bg->_method_handler.*
    *CALL METHOD LR_BG_METHOD_HANDLER->CLEAR_DIRECT_CUSTOMIZING.*
    *CALL METHOD LR_BG_METHOD_HANDLER->ADD_DIRECT_CUSTOMIZING*
        *EXPORTING*
          *I_CUSTOMIZING = l_document.*

  • Business Graphics - Series Label

    Hi,
    I have 1 Category and 4 series in a Business Graphics. I want to display the Series Labels dynamically, and i have to map to the Context Variables for the Labels. But, i am not seeing any option to map the Label property to the Context Variable.
    Any Ideas? Please let me know.
    Thanks

    Hi,
    I assume you are currently using the SimpleSeries in your application. Try to use Series with Points und Values. It is more complicated, but gives you more possibilities such as binding labels etc.
    Hope that helps
    Jens

  • Dynamic Values in Business Graphics Tool Tip

    hi,
    I am using business graphics ui element in my webdynpro application.I am able to get the graghical output correctly.I want to have tool tip in my graph so when I place the cursor on a point, the tool tip should give the corresponding value.I have used the following code
    try
         String[] catLabels = {
                        "Team 1", "\1Tomoko Akino", "\1Hans Bosch", "\1Marvin Smith",
                        "Team 2", "\1Jose Vega", "\1Bao Yin", "Out of office" };
            String[][] pointCustomizing = {
                        { "approved", "cancelled", "approvedPartTime" },
                        { "approved" },
                        { "approved" },
                        { "sent", "approvedPartTime", "notsentPartTime", "notsent"},
                        { "approved", "zSeveralEntries", "zSeveralEntries",
                          "zSeveralEntries", "zSeveralEntries", "zSeveralEntries",
                          "zSeveralEntries" },
                        { "outOfOffice", "outOfOffice", "outOfOffice", "outOfOffice",
                          "outOfOffice", "outOfOffice", "outOfOffice", "outOfOffice",
                          "outOfOffice", "outOfOffice", "outOfOffice", "outOfOffice",
                          "outOfOffice", "outOfOffice", "outOfOffice" }
            String[][] pointLabels = {
                        { "1", "2", "2", "2", "4", "3", "3", "3", "1", "1", "2", "1",
                          "2", "1", "1" }
            String[][][] timeValues = {
                        { { "20020528", "20020606" }, { "20020606", "20020608" },
                          { "20020610", "20020611" } },
                        { { "20020531", "20020606" } },
                        { { "20020607", "20020613" } },
                        { { "20020527", "20020601" }, { "20020606", "20020607" },
                          { "20020612", "20020613" }, { "20020617", "20020619"} },
                        { { "20020531", "20020606" }, { "20020531", "20020601" },
                          { "20020601", "20020602" }, { "20020602", "20020603" },
                          { "20020603", "20020604" }, { "20020604", "20020605" },
                          { "20020605", "20020606" } },
                        { { "20020527", "20020528" }, { "20020528", "20020529" },
                          { "20020529", "20020530" }, { "20020530", "20020531" },
                          { "20020531", "20020601" }, { "20020603", "20020604" },
                          { "20020604", "20020605" }, { "20020605", "20020606" },
                          { "20020606", "20020607" }, { "20020607", "20020608" },
                          { "20020610", "20020611" }, { "20020611", "20020612" },
                          { "20020612", "20020613" }, { "20020617", "20020618" },
                          { "20020618", "20020619" }}
            String s[]={"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","a1","a2","a3","a4","a5","a6","a7","a8","a9","a10","a11","a12","a13","a14",};
            IPrivateSBusinessGraphicsSampleView.ICategoryNode catNode = wdContext.nodeCategory();
            for (int catIndex = 0; catIndex < catLabels.length; ++catIndex)
               IPrivateSBusinessGraphicsSampleView.ICategoryElement  catElement = catNode.createCategoryElement();
               catNode.addElement(catElement);
               catElement.setDescription(catLabels[catIndex]);
            // loop over series
            IPrivateSBusinessGraphicsSampleView.ISeriesNode seriesNode = wdContext.nodeSeries();
            for (int seriesIndex = 0; seriesIndex < timeValues.length; ++seriesIndex)
               IPrivateSBusinessGraphicsSampleView.ISeriesElement seriesElement = seriesNode.createSeriesElement();
               seriesNode.addElement(seriesElement);
               // set series attributes (...)
               IPrivateSBusinessGraphicsSampleView.IPointNode pointNode = seriesElement.nodePoint();
               // loop over points
               for (int pointIndex = 0; pointIndex < timeValues[seriesIndex].length; ++pointIndex)
                 IPrivateSBusinessGraphicsSampleView.IPointElement
                           pointElement = pointNode.createPointElement();
                 pointNode.addElement(pointElement); 
                 String ename = s[pointIndex];
                 wdComponentAPI.getMessageManager().reportSuccess("name:"+ename);
                 pointElement.setStartValue(timeValues[seriesIndex][pointIndex][0]);
                 pointElement.setEndValue(timeValues[seriesIndex][pointIndex][1]);
                 pointElement.setCuId(pointCustomizing[seriesIndex][pointIndex]);
                 pointElement.setLabel(pointLabels[seriesIndex][pointIndex]);    
                 pointElement.setToolTip(ename );
         catch(Exception e)
                 wdComponentAPI.getMessageManager().reportSuccess("exc2:"+e);
    By the above code ,I am getting the tool tip with the value "a" in all locations.
    But I need to have different values in the tooltip corresponding to the location.
    Please Help....
    Thanks in advance,
    Shamila

    hi,
    Still  I did not get the dynamic tool tip..........
    In wdDoInit() I have written the following code
    try
         String[] catLabels = { "Team 1", "\1Tomoko Akino", "\1Hans Bosch", "\1Marvin Smith",
                   "Team 2", "\1Jose Vega", "\1Bao Yin", "Out of office" };
            String[][] pointCustomizing = {
                        { "approved", "cancelled", "approvedPartTime" },
                        { "approved" },
                        { "approved" },
                        { "sent", "approvedPartTime", "notsentPartTime", "notsent"},
                        { "approved", "zSeveralEntries", "zSeveralEntries",
                          "zSeveralEntries", "zSeveralEntries", "zSeveralEntries",
                          "zSeveralEntries" },
                        { "outOfOffice", "outOfOffice", "outOfOffice", "outOfOffice",
                          "outOfOffice", "outOfOffice", "outOfOffice", "outOfOffice",
                          "outOfOffice", "outOfOffice", "outOfOffice", "outOfOffice",
                          "outOfOffice", "outOfOffice", "outOfOffice" }  };
                    String[][] pointLabels = {{ " ", " ", " " },{ " " },{ " " },{ " ", " ", " ", " "},{ " ", " ", " ", " ", " ", " ", " " },
                                  { "1", "2", "2", "2", "4", "3", "3", "3", "1", "1", "2", "1", "2", "1", "1" } };
                  String[][][] timeValues = {{        { "20020528", "20020606" },
                          { "20020606", "20020608" },
                          { "20020610", "20020611" } },
                        {  { "20020531", "20020606" } },
                        {   { "20020607", "20020613" }  },
                        {   { "20020527", "20020601" },
                          { "20020606", "20020607" },
                          { "20020612", "20020613" },
                          { "20020617", "20020619"} },
                        { { "20020531", "20020606" }, { "20020531", "20020601" },
                          { "20020601", "20020602" }, { "20020602", "20020603" },
                          { "20020603", "20020604" }, { "20020604", "20020605" },
                          { "20020605", "20020606" } },
                        { { "20020527", "20020528" }, { "20020528", "20020529" },
                          { "20020529", "20020530" }, { "20020530", "20020531" },
                          { "20020531", "20020601" }, { "20020603", "20020604" },
                          { "20020604", "20020605" }, { "20020605", "20020606" },
                          { "20020606", "20020607" }, { "20020607", "20020608" },
                          { "20020610", "20020611" }, { "20020611", "20020612" },
                          { "20020612", "20020613" }, { "20020617", "20020618" },
                          { "20020618", "20020619" }}  };
            String s[]={"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","a1","a2","a3","a4","a5","a6","a7","a8","a9","a10","a11","a12","a13","a14",};
            IPrivateSBusinessGraphicsSampleView.ICategoryNode catNode = wdContext.nodeCategory();
            IPrivateSBusinessGraphicsSampleView.ICategoryElement  catElement;
            for (int catIndex = 0; catIndex < catLabels.length; ++catIndex)
                catElement = catNode.createCategoryElement();
               catNode.addElement(catElement);
               catElement.setDescription(catLabels[catIndex]);
             // loop over series
            IPrivateSBusinessGraphicsSampleView.ISeriesNode seriesNode = wdContext.nodeSeries();
            for (int seriesIndex = 0; seriesIndex < timeValues.length; ++seriesIndex)
               IPrivateSBusinessGraphicsSampleView.ISeriesElement seriesElement = seriesNode.createSeriesElement();
               seriesNode.addElement(seriesElement);
               // set series attributes (...)
               IPrivateSBusinessGraphicsSampleView.IPointNode pointNode = seriesElement.nodePoint();
               IPrivateSBusinessGraphicsSampleView.IPointElement  pointElement;
               // loop over points
               for (int pointIndex = 0; pointIndex < timeValues[seriesIndex].length; pointIndex++)
                 //IPrivateSBusinessGraphicsSampleView.IPointElement
                 pointElement = pointNode.createPointElement();
                 pointNode.addElement(pointElement); 
                 String ename = s[pointIndex];
                  wdComponentAPI.getMessageManager().reportSuccess("name:"+ename);
                 pointElement.setStartValue(timeValues[seriesIndex][pointIndex][0]);
                 pointElement.setEndValue(timeValues[seriesIndex][pointIndex][1]);
                 pointElement.setCuId(pointCustomizing[seriesIndex][pointIndex]);
                 pointElement.setLabel(pointLabels[seriesIndex][pointIndex]);    
                  pointElement.setToolTip(ename );
    catch(Exception e){        wdComponentAPI.getMessageManager().reportSuccess("exc2:"+e);    }
    In wdDoModifyView() I have written the following code
    try
         IWDBusinessGraphics graph = (IWDBusinessGraphics)view.getElement("BusinessGraphics");
         IWDAbstractSeries allSeries[] = graph.getSeriesList();
         IWDSimpleSeries series;
         wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("length : "+allSeries.length+" value:"+allSeries[0]);
         for(int j=0;j<allSeries.length;j++)
           series = (IWDSimpleSeries)allSeries[j];
          for(int i=0;j<wdContext.nodeSeries().size();i++)
              wdContext.nodeSeries().setLeadSelection(i);
              series.setTooltip(series.getValue());
      catch(Exception e)
         wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("exc modify :"+e);
    The node structure is
    Root Node
    >Category>Description
    >Series>Point-->CuId
    >Series>Point-->endvalue
    >Series>Point -->Startvalue
    >Series>Point -->label
    >Series>Point --->Tooltip
    In BusinessGraphis seriesSource-Series node ,tooltip-Series.Point.ToolTip is mapped
    In Category description-Category.Description is mapped
    In Series pointsource-Series.Point, tooltip-series.point.tooltip is mapped
    In Point CustomisingId-eries.point.cuId.label-Series.label, tooltip-series.point.Tooltip,valuesource -series.point is mapped
    In Numericvalue value-series.point.startvalue is mapped
    In Numericvalue value-series.point.endvalue is mapped
    When I deploy my application I am getting <b>java.lang.ClassCastException</b> Exception at the line  <b>series = (IWDSimpleSeries)allSeries[j];</b>
    What is reaseon?.....
    Please help..............
    I want to get dynamic value in the tool tip of the graph.
    Thanks in advance,
    Shamila,

  • Dynamic Tooltip Text over Business Graphics

    Hello,
    I would like to know if there is a possibility to display dynamically point coordinates (or other tooltip text) in a Business Graphics when the mouse is going over the gragh or when clicking ?
    Thanks a lot
    Marc

    Hello Marc,
    WebDynpro Point, Series and SimpleSeries elements have a tooltip property that you can define whether in design time or runtime.
    Please see the details here http://help.sap.com/saphelp_nw04/helpdata/en/dd/65d79bb3b2e34e8b68f59129e7d811/frameset.htm
    Best regards,
    Dmitry

  • I have two graphics workers on osx 8.  They are both complaining that their files are changing label colors on it own.  Any idea what could cause this?

    I have two graphics workers on osx 8.  They are both complaining that their files are changing label colors on it own.  Any idea what could cause this?

    and there were and have been problems with any two nvidia cards which was the main part of my question.
    To provie details try pasting all but serial number from system profile. Sorry but Mac Pro tells me nothing, not model, year, or what graphic card it came with or updated with.

  • How to change the text of label dynamically

    Hi all,
    I have done a dynpro program.It requires to implement the dynamically display the label text, for example: there is a label, sometimes, we want to display "Purchase Order" and sometimes we want to display "Sales Order". Can anyone tell me how to change the text of label according to my requirements? thanks in advance!

    Hi Wei,
    AS of now you will not be able to change the Text Field ( Label ) dynamically or at runtime. This is a limitation.Refer to this link:
    http://help.sap.com/saphelp_nw04/helpdata/en/e4/2adbef449911d1949c0000e8353423/frameset.htm
    But, there is a way around.
    You can make a text field Visible / Invisible based on your program logic. So, based on what you want, you can process a module which will take care of that.
    Have a look at these DEMO Code. You can have a good idea to implement the logic.
    DEMO_DYNPRO_MODIFY_SCREEN - Demonstration of Dynamic Screen Modifications
    Thanks,
    Samantak.

  • Dynamic title in Business Graphics

    Hi to all!
    I'm working with a Business Graphics and I'd like a title in the final rendered graphic. The problem is that the text I want to show is not static, it's the name of the person who is using the application.
    The question is: Can I bind the title of the graphic to a context attribute? or is it possible to pass parameters to the graphic?
    Thanks a lot.

    Hi,
    We have achieved this thru....
    1. If you navigate to src folder of your project... src\<package structure>...
    in that there will be a file <viewname>.wdview file. Where <viewname> referes to the name of the view in which business graphics UI element is used.
    2. Open that file with notepad, and you can see the structure of BusinessGrpahics UI element specified in xml format. In that copy what ever between <BusinessGraphics.CustomizingXML>...</BusinessGraphics.CustomizingXML> including these tags also.
    3. In the wdModifyView method of view name obtain the Business Graphics UI element and set the Direct Customizing to the above copied xml(as a string)
    String customXML = "<BusinessGraphics.CustomizingXML>....</BusinessGraphics.CustomizingXML>";
    IWDBusinessGraphics bg = (IWDBusinessGraphics)view.getElement("<business graphics UI element ID>");
    bg.setDirectCustomizing(customXML);
    4. In that xml string, the value under <Elements> .. <ChartElements> .. <Title> .. <caption> points to the title. you can replace that with your dynamic value.
    -Aarthi

  • Business Graphics : Set label for a Simple Series

    I need to set label to simple series of Business graphics object. Since the Label property is not bindable; i am looking for the alternative way to achieve this. (Any attempt to pass the context would give error msg: Method bindLabel( String) is undefined for the type IWDSimpleSeries)
    I want to have a string value in each points in graph (Line Graph), not i legend.
    tips will be highly appreciated.
    Thanks,
         Vinod V

    Hi Vinod,
    The label property for IWDPoint should solve your purpose.
    IWDPoint API 'label' property - This property is used to specify an optional text to be displayed for a point in a business graphic.
    Refer SAP NetWeaver Library http://help.sap.com/saphelp_nw04s/helpdata/en/1f/20ef3d5e10af5ee10000000a114084/frameset.htm
    Kind Regards,
    Nitin
    Edited by: Nitin Jain on Apr 8, 2009 4:40 PM

  • How to add series to Business Graphics control dynamically?

    Hi Experts,
    How to add series to Business Graphics control dynamically?
    I tried the method add_series( ) but could not use it properly.
    If you have any clues of using it, let me know.
    I need it urgently.
    Best Regards,
    Arti.

    I'm not sure what ADD_SERIES method you are refering to. The only programable API for the Business Graphics that I found was this one:
    http://help.sap.com/saphelp_nw70/helpdata/EN/42/e61cd068dc3ee4e10000000a1553f7/frameset.htm
    I've not ever tried it, but you not just add the series UI element like any other dynamic UI manipulation during the WDDOMODIFYVIEW?
    http://help.sap.com/saphelp_nw70/helpdata/EN/11/ba74412cba127de10000000a155106/frameset.htm

  • How to Axis labels for Line charts in Business Graphics

    Hi
    I am planning to do the Business Graphic example using Line chart.As part of this
    i didn't clearly understand what is the perpose of Series,Points,categorys?
    if i want to set the Labels at X-axis and y axis ,then how to do that?Baiscally i want to put time related data as X-axis label(20min,30min,60 min etc).Please help.
    is there any good example to understand the concept?
    Thanks
    Prasad

    Hi Bachier
    Thanks for your repsonce.I had seen the example you suggested.but there is no answer for my question.How to set the x-Axis,Y-axis Labels.I had done example for "line chart".But i have same problem:
    Hi
    I am trying to do example on "line chart" using Business graphics in my webdynpro application.
    In the Context i created Node "A" under which i created "B".then it has  value attributes xValue,yValue.Then in View i created BG UI element >Series>point-->NumericValue(for xValue) ,NumericaValue(yValue).Now in view init() method i had initialized values to x and y. some output is coming.but i want to know how to set the X-Axis Label,y-Axis Labels.in X-Aix Label i want to mention time in hrs i.e 8.00,8.30AM,9.00AM,9.30AM etc.as part of y-axis labels i want to mention numeric values( .2,.4,.8,2.0 etc). Please tell me how to set this X-Axis,y-Axis labels.at every 30min(8.00Am,8.30AM etc) user enter quality data(i.e .2 etc) then i want to generate chart.Please help in this regard.i will give very good points
    Thanks
    Prasad

Maybe you are looking for

  • My ipod wont let me in  some of my apps

    my 4th gen ipod touch keeps taking me out of my apps and reloading my ipod only helps for a little can someone help me

  • Problem while using java 1.6

    I have a strange problem. I was using Java 1.5 earlier to display an applet in IE. It was working perfectly fine. Once I migrated to Java version 1.6 , I am getting the following error in the java console : - Exception in thread "AWT-EventQueue-5" ja

  • When printing Firefox does not open the Print Dialog window

    When printing at our office we often need to print to multiple printers and not just the default printer. When printing in Firefox, however, the print automatically gets sent to the default printer and I do not get a print dialog window. I have reset

  • Help with Page Parameters with PDK and/or PL/SQL

    Hello, I'm having difficulties get the real path of pages with PL / SQL. Another parameter that can not put the portlet in PL / SQL is the HTTP_REFERER. I read the PDK API but I could not understand how to use the HTTP_REFERER And as I get the realpa

  • Any CallerID/Speakerphone apps for the iPad?

    It would be great if I could just leave my iPad open while I travel with me, and get a signal sent to it via Bluetooth of an incoming number and just tap the screen and it answers the phone. I have a Motorola Entice w766, and finding a device that do