Business Graphics and model nodes

Hello,
is it possible to bind a business graphics UI element in Java WebDynpro to a model node or does it have to be a value node?
Thanks,
Michael

exactly!
many ways to do this
1.U can use WDCopyService(Source ,Target)  here Source : return node of model data
                                                                           Target : Your temporary value node which bound to BG.
Note : Each time when ever model data get updated(CRUD) u have to call this node.
2. Use Mapping type node and bind it to BG ui element  exe : when we create any node It has 4 options one of them is Mapping select this and provide the model node
  (mapping of node with model node is replica of the content there in model node, here u don't have to worry about updated content since its replica and get changed eveytime when model operations is performed)
Best Regards
Satish Kumar

Similar Messages

  • Invalidate concept for value node and model node

    Hello everybody,
    We have invalidate method for value node and model node.
    I want to know basic concept behind this method.
    What this method acually does?
    Regards,
    Bhavik

    Hi Pran and all,
    I figured out the problem. Input parameters are going multple times. So, depending upon that it gives multiple values.
    My scenario is:
    Root Node
    |_ Input_node1
         |_Attr1
    |_ Input_Node2
         |_Attr2
    |_Output_node
         |_Result
    I am passing values in Attr1 and Attr2 attributes.
    For this, first of all, i wrote following code.
    In controller, i have initialized Root node:
    Root_Node model = new Root_Node();
    wdcontext.nodeRoot_Node().bind(model);
    In view, I set values for attr1 and attr2 using following code:
    Ipublic<View>.IInput_node1Element ele = wdcontext.createInput_node1Element();
    ele.setAttr1("<value>");
    wdcontext.nodeInput_node1().addElement(ele);
    Ipublic<View>.IInput_node2Element ele1 = wdcontext.createInput_node2Element();
    ele1.setAttr2("<value>");
    wdcontext.nodeInput_node2().addElement(ele);
    But this code didnt work. Model was executed without data in this case.
    So, i thought that these elements were created at view level only. And corresponding model objects were not created.
    So, I have changed code like following way:
    I have removed initialization code for Input_Node1 and Input_Node2 from view. Now, I am getting input values in two different value nodes. And before calling custom controller's method to execute model, I am making two ArrayLists and filling data in it. Now, i am passing these ArrayList objects as parameters to controller's method.
    In this method, i am setting both values as follows:
    wdcontext.currentRoot_NodeElement().modelObject().setInput_Node1(List1); 
    wdcontext.currentRoot_NodeElement().modelObject().setInput_Node2(List2); 
    Then i am executing my model.
    But, When i am setting values for Input_Node1 and Input_Node2 as shown above, values are appended instead of overwritting the value. Because of this appended values, it gives mupltiple results.
    Means, Both ways are not proper. What should be the proper and best way to pass values in this case?
    Thanks,
    Bhavik

  • Business Graphics and WebEnterprise

    I have a two part question.
    First, what is the best way to create business graphics such as line, bar,
    and point graphs? OLE to Excel, OCX, some third party commercial graphics
    library such as Brahma Software's Beacon?
    Second, once I have a business graphic what is the best way to display these
    graphics on a web page? A number of Forte field widgets such as ellipse,
    polyline, and point do not have a corresponding HTML element and therefore
    the Forte WebEnterprise WindowConverter class cannot convert these windows.
    Is there a way to save Forte images as BMP/JPG images?
    Thanks,
    Douglas Wheeler (mailto:[email protected])
    BORN Information Services, Inc. (http://www.born.com)
    Tel: 612.404.4379 Fax: 621.404.4441
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    exactly!
    many ways to do this
    1.U can use WDCopyService(Source ,Target)  here Source : return node of model data
                                                                               Target : Your temporary value node which bound to BG.
    Note : Each time when ever model data get updated(CRUD) u have to call this node.
    2. Use Mapping type node and bind it to BG ui element  exe : when we create any node It has 4 options one of them is Mapping select this and provide the model node
      (mapping of node with model node is replica of the content there in model node, here u don't have to worry about updated content since its replica and get changed eveytime when model operations is performed)
    Best Regards
    Satish Kumar

  • Business Graphics and Data Tables

    Hi All,
    I have a SAPGUI application which uses the SAP Chart to display a pretty simple column chart with a data table underneath.
    With the SAPGUI Chart Options this is set as so: [Chart Options |http://www.assetcentric.com.au/images/chart-options.png]
    The result is a chart looking like so:
    [Chart Example|http://www.assetcentric.com.au/images/chart-example.png]
    Does anybody know whether this is possible to achieve with the IGS from WebDynpro?
    Regards
    Andrew

    Hi,
    If you are using webdynpro for ABAP then we cna use the Business Graphics UI element where we have differenet chart optins( bar, pie, lines etc) to have the graphs.
    BG in Webdynpro -
    http://help.sap.com/saphelp_nw70/helpdata/EN/ed/258841a79f1609e10000000a155106/content.htm
    For WD4Java we need the separate IGS  server to render the graphs, but in WD4A we dont need it. we can design webdynpro applicaitons in SE80 and can run the applciations in browser direclty.
    we can use the data from BAPI by making a service call to that BAPI, and bind the tables to this BG UI element to display.
    Regards
    Lekha

  • Business Graphics and Adobe Interactive Form

    Hi Friends,
    I generated charts in webdynpro using business graphics.
    Now, I need put this charts into a Adobe Form using Interactive Form Component. Is that possible? How can I do this?
    Thanks,
    Cristian

    Hi Cristian Teles,
    YOu can use the Business graphics even in Adobe forms. In the Adobe Designer you can find the various graphical UI elements. Please go through them.
    Structure of the Chart Designer
    The Chart Designer is divided into three areas:
    ·        The graphics preview
    The area on the left-hand side in which the business graphic is displayed. This area is used to display a preview of the Customizing settings. Changes to these settings are displayed immediately in the graphics preview, which lets you implement necessary changes in the business graphic display instantly.
    ·        Overview of graphical elements
    The area in the upper-right side that contains the list of graphical elements. For a detailed description and list of all graphical elements, see SAP NetWeaver ® Application Platform (SAP Web Application Server) ® ABAP Technology ® UI Technology ® Frontend Services.
    Each graphical element, in turn, has one or more properties. To change a property, select a chart element either from the chart window or by name in the chart element window. The properties of the chart element are then displayed, and you can edit and change the values of the properties.  
    ·        The property list
    The properties are listed in the area below the graphical elements. To change a property, select a graphical element either with the mouse in the graphics preview or from the overview of graphical elements. The properties of the graphical element are then displayed. You can change the values of these properties.
    http://help.sap.com/saphelp_nw70/helpdata/EN/0a/2f77b0cbb8914eb071b411991f6019/frameset.htm
    Thanks
    Suresh

  • Undefined constructor and model nodes

    Hi all !!
    I have one custom controller SolicitudesViaje for which its internal counterpart InternalSolicitudesViaje.java says: "The constructor SolicitudesViaje(IPrivateSolicitudesViaje) is undefined"
    The code inside the internal class where the problem is shown are the following lines:
    Creates a new instance of this controller.
      public InternalSolicitudesViaje(com.sap.tc.webdynpro.progmodel.gci.IGCICustomController alterEgo) {
        this.wdAlterEgo = alterEgo;
        wdInitContextNode();
        this.delegate =  new SolicitudesViaje((IPrivateSolicitudesViaje) this); //***** This is the line with the problem
    Another related problem is that my custom controller (SolicitudesViaje again) doesn't recognize the model nodes I have in it. But the other nodes are ok.
    I've tried to rebuild the project with no success. Can anyone help??
    Thanks!

    Alejandro,
    Try this.
    1)Close the project in studio
    2)delete gen_wdp folder for this project
    3)open the project
    4)do a "reload+rebuild" of the project.
    That should help.
    Rajit

  • Model and Value node data in one form...?

    Hello,
    I have a requirement where the adobe form is expected to have model data available and then in the same form teh user provides data, which is maintained in value node.
    Now the problem we are facing is, we are unable to maintain both value node and model node(i.e,attributes) under one type of node.(Invalid node type error appears when tried to place both attributes under one node).
    How do we provide them to data source, as it takes only one node.
    Thanks & Regards,
    Sharath

    Hi,
    you could try to add a some calculated attributes in the node which is bound to the interactive form. In the getter and setter methods of these calculated attributes you can read and set the value of your model attributes.
    Regards
    Sebastian

  • Difference between value node,model node and recursion node?.

    Hi all,
    this is to ask you the difference between modal node, value node and recurrsion node?
    please explain
    Anhitya Kashyap

    hi Anhit,
    node can be classified as a value node or model node. The difference between value nodes and model nodes is that a value node can store the data itself, whereas the model node only references an external model object that stores the data.
    more on nodes check this
    http://help.sap.com/saphelp_webas630/helpdata/en/b8/cd96edb9c8794aa362e6e8b4236a1f/frameset.htm
    thanks,
    Saloni

  • New to Business Graphics in WD ABAP

    Hi all,
    I am new to Business Graphics in WD ABAP. I have already go through the WDR_TEST_EVETS. But I don't get it clearly. Is there any other document or any earlier thread to understand BG.
    Please suggst.
    Thanks
    Sanket sethi

    Hi,
    First try to create a table with some values in it and bind it to the node.
    When you create the BG there are thow things- Series and Category.
    Category is the X Axis and Series is the Y-Axis.
    Bind the respective properties to the node defined above.
    Select the type of graph as Chart/Line type using the Chart editor.
    When right cliecked on the BG you can see the Chart settings there you set the Chart type, X and Y axis.
    Create a  Business Graphic, under that create Category for X axis and  Series fror Y-axis that dispaly values from a table.
    Bind the Category to the context node->attribute and also the bindthe values to the respective Series and to the BG UI element.
    Please check out these links
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ca932ebc-0901-0010-68a0-b4dd81a4bf81
    Business Graphics and Data Tables
    Regards,
    Lekha

  • Business Graphics API in WEBAS J2EE

    Hi,
    i have a business graphic integrated into my webdynpro application. I checked the api documentation for business graphics and found out, how to change the type of the business graphic and the number of dimensions programmatically.
    On the API, i cannot find out any further possibilities of modifing the chart programmatically. I wonder about this, because the business graphic UI - element in NetWeaver Developer studio provides much more configuration possibilities on charts.
    For example, i would like to use the averagre functions or adapt the number of labels on the chart axis. But all dynamically.
    Has anyone experience, with such advanced business graphics features and nows if it is somehow possible to get to theses features by using the NetWeaver API?
    Thank you very much in advance.
    Regards
    Christoph

    As I understand, your user management is through database, so when a user is created in your application, the parameters pass through the Action Handler -> service class-> DAO. So a better way would be write an additional class with the user management implementation of BO with a constructor or a method which would take the required user creation parameters and call it in the service class just under the user creation method of your DAO.
    As the user in your system passes some information from the front end, the same can be used to create user in BO.

  • How can i do different colors for the category in business graphics

    Hi everybody,
    i have a business graphics and i need different colors for the category. my business graphics is a gantt.
    for example
    category1
    category2
    category2
    and so on.
    Is there a solution for this? How can i do it?
    Best regards,
    Markus

    Sorry.
    In my opinion, this requirement can not be resolved.
    Generally, we use Business Graphic with Category, we just follow:
    DATA:lr_graph TYPE REF TO cl_wd_business_graphics.
    lr_graph = cl_wd_business_graphics=>new_business_graphics(
        bind_series_source = 'NODE_DYN'
        chart_type = cl_wd_business_graphics=>e_chart_type-BARS
        height = 340
        width = 750
    *     BIND_TOOLTIP = 'GRAPH.TT'
        id = 'GRAPH' ).
    DATA: lr_bgr_cs TYPE REF TO cl_wd_category.
    lr_bgr_cs = cl_wd_category=>new_category(
    view = wd_this->mr_view
    bind_description = 'NODE_DYN.CATEGORY').
    lr_graph->set_category( lr_bgr_cs ).
    If we go to SE24, to check  the class "CL_WD_CATEGORY", we cannot find any method  or attribute about how to manipulate  the "Category Font Color"...
    Maybe,any other expert can give you fantastic solution, hope. Best wishes.

  • Setting max length of the field when using Context Model Node

    I have created a model using Import Adaptive Web Service model option (a web service was a wrapper around SAP BAPI function module).
    There were no dictionary types created in the Local dictionary as a result of import.
    I have mapped the context of the controller to the model node.
    One of the fields in the model is name     CUSTOMER_NUMBER type string;
    Corresponding element in the wsdl of the web service is
    <xsd:element name="CUSTOMER_NUMBER" type="tns:char10" />
    I have created a view with the input filed mapped to the CUSTOMER_NUMBER field of the model node.
    When I type more than 10 chars into the field and hit the search button, I get a com.sap.dictionary.runtime.Ddcheck exception that the length of the field should be less than 10 chars.
    How can I set the max length of the field in design time to prevent runtime exception?
    Thanks,
    Julia

    Thank you for your reply.
    Java trim function will trim the white spaces only, not the characters.
    I can code check length functionality before calling execute function (the function that call the web service).
    I can also create a dictionary structure based on the model structure; create a context value node based on the dictionary structure and use WDCopyService API to move the data between value node and model node.
    I was looking for the best practice...
    When importing model based on Adaptive RFC, the dictionary structures are imported together with the model. This does not happen for Adaptive web service - hence there is a need to add coding for simple checks.
    Julia

  • 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

  • Webdynpro : How to SKIP the values of the Model Node.

    Hi
    i imported a WSDL into my WDJ application.
    where on context mapping, i mapped the MODEL with my CONTROLLER.
    I would like to SKIP couple of Attributes and Model node
    In WEBSERVICE navigator, i have the check box as SKIP, so using that i can skip in Navigator ,
    But how to do the same in WEBDYNPRO Coding.
    Say for Example
    Context
    ----------ModelNode1
    ----------ModelNode2
    ----------ModelNode3
    ----------======ModelAttribute1      NULL
    ----------======ModelAttribute2      SKIP
    ----------======ModelAttribute3      SKIP
    i know how to set the value if it need to set it to null
    wdcontext.nodelModelNode3.currentModelNode3element.setModelAttribute1("null")
    similaraly  can anyone tell me how to set the SKIP for other 2 attributes......
    Thanks

    Hi Chintan
    Thanks for your response....
    fine ... i understood your solution....
    but , my problem goes and makes me dizzzy
    i have 10 mandatory filed in my Webservice..
    i passed all the 10 mandatoy fileds and get perfect Response In WEBSERVICE Navigator....
    i tried passing the same value via WDJ application as show below
    since i have a node element with cardinalith 0..n
    I set the value those i passed in Webservice Navigator.....
    wdContext.nodeRequest_getSubmitRequest().
                     nodeRequestDetails().nodeRoles().invalidate();
           IPrivateOne_AppView.IRolesElement RoleE = wdContext.createRolesElement(new ComplexType_RoleData());
         RoleE.setRoleId("BASIC");
         RoleE.setSysId("R3");
         wdContext.nodeRequest_getSubmitRequest().
                   nodeRequestDetails().nodeRoles().addElement(RoleE);
    But Here ,I get a Error Message Saying  :Error in Submiting Request :  No role seleced for the request.
    so , i even checked whether the node is populated with rite value by printing them after executing the WSDL.
         wdContext.currentRequest_getSubmitRequestElement().modelObject().execute();
              MsgManger.reportSuccess( "After Push_execute_WSDL");
    MsgManger.reportSuccess( " COntroller getRoleId -- "+wdContext.nodeRequest_getSubmitRequest()
                        .nodeRequestDetails().nodeRoles().currentRolesElement().getRoleId().toString());
              MsgManger.reportSuccess( " COntroller getSysId -- "+wdContext.nodeRequest_getSubmitRequest()
                        .nodeRequestDetails().nodeRoles().currentRolesElement().getSysId().toString());
    Output
    After Push_execute_WSDL
    COntroller getRoleId -- BASIC
    COntroller getSysId -- R3
    Kindly let me know wat could be wrong........
    The MOST wired thing is
    if i didnt set and Role , SysId in webservice navigator , then Error thrown at Webservice Navigator is
    Error in Submiting Request : RoleId is mandatory,SysId is mandatory null
    on following same thing , if i didnt set Role and SysID in WebDynpro then, i get error as
    Error in Submiting Request :  No role seleced for the request.
    How is this possible....
    any help on this would be appreciated...
    Thanks

  • Value Nodes vs. Model Nodes

    Hi,
    why model nodes have to be initialized via Service Controller and needs to be bound to a model class instance and value nodes don't need that?
    Thank you,
    Pietro

    Hi Pietro,
    A model node is similar to value node in respect to it's API.
    The main diff are:-
    Value node
    1.It maintains it's own elemnet collection,each element holding the actual runtime data.
    2.While creating new element for a value node ,the node can create element object using metadata stored within it.
    3.the children of a value node only be value nodes or value atrributes.It can't be a mix value and model nodes or attribute if the 
       parent is a value node.
    Model Node
    1.The element collection maintains by a model node is simply a collection of reference to model object instances.
    2.Actual runtime data is stored in model object, not in model node's element collection.
    Hope this will help you. if you want more check this.
    http://help.sap.com/saphelp_webas630/helpdata/en/b8/cd96edb9c8794aa362e6e8b4236a1f/frameset.htm
    Thanks & Regards,
    Bhargava.

Maybe you are looking for

  • Is there limit to file creation of file on application ?

    Hello Gurus, I have a huge internal  table nearly of size 3-4 GB which is being downloaded on application server. using ws_download. Now when this process is going on the program is giving a dump saying the maximum limit is reached. And in the code a

  • Unable to write to external drive after drive sleeps

    This topic seems to be all over the place. I want to know if there is a fix. I have a number of external disk drives. They are connected via USB and firewire. About 30% of the time, if a drive has been put in sleep mode and then later awakened, I am

  • ITunes crashs when i turn on AAC-convert and try to sync a song on iPod

    hello, can anybody help me with this problem? If i turn of "Convert Songs with higher data rate into 128 k/bit AAC" and synchronize a song it crashs and says "iTunes doesn't work anymore". If i unselect the Conversion thing it works, but converting m

  • Sender SOAP Authentication

    Hi All, We are having a scenario with SOAP adapter on the sender side and RFC adapter on the receiver side . The BAPI in the external SAP system is exposed as webservice through this interface . When we are trying to invoke this webservice through an

  • How can I start Private Browsing when I do not have a "Firefox button" to click?

    "Open a new, blank Private Window At the top of the Firefox window, click the Firefox button and select New Private Window. A new Private Window will open. That is what it says! But where is this Firefox button at the top of my Firefox (v 20.0.1) win