How to bind dynamic data to JNet

Develop tools: NWDS 7.1
Server: Windows2000
Does anyone have experiences with using JNET within Webdynpro Project ?
In our case, we use JNet to generate a hierachical network diagram in the Webdypro's GUI. The data source is from the tables in a DB. However, till now, we only know how to let JNet generate the network diagram from a static XML file.
Since the data in the DB changes all the time, how to let the network diagram reflect the newest data status automatically? That is, how to bind JNet to a dynamic data source then?

Hi,
Network UI element is related with Jnet. What you need to start up working with this is you need to create a context structure mentioned below.
Node:Source
Element--- xml -> this should be of type binary.
Place the following code in the init.
ISimpleTypeModifiable mod = wdContext.nodeSource().getNodeInfo().getAttribute("xml").getModifiableSimpleType();
IWDModifiableBinaryType bin = (IWDModifiableBinaryType)mod;
bin.setMimeType(new WDWebResourceType("xml", "application/octet-stream", false));
ISourceElement element =wdContext.nodeSource().createSourceElement();
wdContext.nodeSource().addElement(element);
try
fileName = WDURLGenerator.getResourcePath(wdComponentAPI.getDeployableObjectPart(), "jnettest.xml");
element.setXml(readFile(fileName));
catch (WDAliasResolvingException e)
You have to place the Jnet test.xml under the mimes folder of your application.
Place the network element in the view and in the data source specify the context attribute source.xml
if your xml file complies with the jnet schema your application will render it.
Pl go through this
Using the "Network" UI Element
Regards
Ayyapparaj

Similar Messages

  • How to bind Dimension data to SDK Component

    Hi Guys,
    I am trying to create a Cascading box component with the help of SDK development using eclipse.
    I don't know how can I get the dimension data to my component.
    when I am using data binding property type as "resultCellList" then I am able to bind the Measures' data to the component.
    Can anybody suggest me how to bind dimension data to my SDK component?

    In the menu under Help Contents, there is an SDK section with examples that spell this out for you.
    There is also an easier to read and print PDF on the SAP Help site here:
    http://help.sap.com/businessobject/product_guides/AAD14/en/ds14SP02_dev_guide_en.pdf
    Also premade samples here:
    http://help.sap.com/businessobject/product_guides/AAD14/en/DS_14SP02_SDK_SAMPLES.zip
    Main DS Help Site:
    SAP BusinessObjects Design Studio 1.4 SP02 – SAP Help Portal Page
    SDK Community Site with other examples and Open Source links:
    SCN Design Studio SDK Development Community

  • How to build Dynamic Data Form in Planning

    Hi,
    I need for building Data Form in Planning 11.1.2.0 with table columns that would be consist of (example 1):
    - Nov 2011 - Actual
    - Dec 2011 - Actual
    - Jan 2012 - Actual
    - Feb 2012 - Forecast
    - Mar 2012 - Forecast
    - Dec 2012 - Forecast
    Note: current period is "Feb" and current year "2012" has been got from Essbase substitution variables.
    How to build Dynamic Data Form in Planning app using @relative function for period and year dimensions and Essbase substitution variables?
    Example 2 (for current period is "Mar" and current year "2012"):
    - Dec 2011 - Actual
    - Jan 2012 - Actual
    - Feb 2012 - Actual
    - Mar 2012 - Forecast
    - Apr 2012 - Forecast
    - Dec 2012 - Forecast

    As I know you can't use such range or functions in form member selection. Below are couple of options:
    Use bunch of variables for each scenario and the number depends on how many months you want to display (18 months etc..)
    pre-fill the data for related months and years and use data suppress options.

  • How to bind the data from user table into user report

    Hi All,
      Please assist me to bind the data from user table into user report. I did create an user table with data and create a user report template (using Query Print Layout). How can I display my data into report format which I created before? Any sample program or document I can refer?
    Platform: SAPB1 2005A
    Add On Language: VB.Net 2003
    Thanks.
    rgds
    ERIC

    Hi Ibai,
      Thanks for your feed back. I give you an example.
    Let say now i wanna print employee list, so i will go
    1. Main Menu -> Reports -> HR -> Employee List
    2. Choose the Selection Criteria -> OK
    3. Matrix will display (Employee List)
    4. I can print the report click on print button
    5. Printing report
    My target
    1. Main Menu -> Eric_SubMenu -> Employee List
    2. Matrix will display (Employee List)
    3. Print button
    4. Print report
    My problem
    Now I would like to use my own report format. My own report format means I wanna add on my logo or do some customization within the employee report. So how I am going to do? I only able to display the employee list in matrix. How do I create a new report format and display it.
    Thanks.
    rgds
    ERIC

  • How to use Dynamic date calculation in some transactions.

    Hello everyone.
    I have to create some dynamic variants using the dynamic date calculation. The problem is that in some transactions it´s not possible to use some variables that can round a value. For example: in transaction /SAPAPO/MC90, I need to fix 3 months in the horizon like this: From date: 01.01.2009  To date 31.03.2009. The current month is 01.01.2009. Next month the current month will be february, so the horizon would be 01.02.2009 to 30.04.2009.
    In 5.1 version, it´s impossible to fix the months, because the options that appear in the match code are:
    Current Date
    Current date +/- ??? days
    current date +/- ??? work days
    First day of current month
    nth working day of current month
    First day of next month
    First day of previous month
    Last day of previous month
    Last Day of the Current Month
    Does anybody knows how to do this? This is happening in other transactions to.
    Thanks a lot
    Regards
    Angela

    I am not sure where you are looking for..but here is what I can do it in MC90 Tcode:
    1. when you try to save the variant, in the variant screen check the two boxes under "Current date" field for Selection Variables attributes "L"
    2. Then click on Selection variables option and click on the "D" variable so that it turns to green
    3. Drop down in the first current date field, select "Current +/- ??? days. here if you want to start from today's date maintain 0 days
    4. In the second Current date field maintain 90 days in "Current +/- ??? days.
    5. save it
    please let me know if I misunderstod the issue

  • How to bind list data to XML Web service request

    How do I bind specific columns in a DataGrid to the Web
    service request? I'm having trouble finding any documentation that
    addresses that specific pattern, i.e. sending a complex list to the
    server via a Flex Web service send() command. I'm fairly new to
    Flex programming and don't know if what I want to do is possible.
    Here what I've been able to do so far.
    1. Using a Web service called a service on the server and
    retrieved a complex list.
    2. Poplulated a DataGrid with the result
    3. The user has selected multiple rows from the DataGrid
    using a checkbox column
    4. The user pressed a button that calls a Web service send().
    This Web service should only send data from only two columns and
    only for those rows the user has checked.
    5. I can loop over the DataGrid and find the selected rows
    and put them in another ArrayCollection called 'selectedRows'.
    The issue is that I don't know how to bind 'selectedRows' to
    the Web service. Right now I'm reading up on "Working with XML" in
    the Programming with ActionScript 3.0 chapter. But I'm just fishing
    here. No bites yet.

    Don't bind. Build the request object programatically, as you
    are doing with your selectedRows AC, and send(myObject) that.
    Tracy

  • How-to bind binary data into textbox

    can i bind binary data into the textbox....
    coz..i get human unreadable character
    [B@184b867#     binary data - byte array
    supposingly ..i just need to convert to bytes.toString() to see the content...
    yet i try but..it still return this weird character...any idea...
    OutMailBean outMailBean = new OutMailBean();
    outMailBean.setHost(request.getParameter("SMTP").trim());
    outMailBean.setPort(request.getParameter("port").trim());
    outMailBean.setMessages(request.getParameterValues("message"));    //string[]
    //convert to byte array
    outMailBean.setMessage(util.convertStringBufferToByteArr(bean.getMessages()));
    //insert into table
    Statement stmt = con.createStatement();
    try {
    ResultSet rs = stmt.executeQuery(squery);
    try {
    while (rs.next()) {
    OutMailBean outMailBean = new OutMailBean();
    outMailBean.setEmailId(rs.getString("EMAILID"));
    outMailBean.setDateIn(rs.getString("DATEIN"));
    outMailBean.setMessage(rs.getBytes("MESSAGE"));
    System.err.println(rs.getBytes("MESSAGE").toString());
           //this will return human unreadable form........
    OutMailAckBean outMailAckBean = new OutMailAckBean();
    outMailAckBean.setAckDelivery(rs.getString("ACKDELIVERY"));     
    outMailAckBean.setReceipient(rs.getString("RECEIPIENT"));
    beanList.add(outMailBean);
    beanList.add(outMailAckBean);
                        } finally {
                             rs.close();
                   } finally {
                        stmt.close();
    Message was edited by:
            yzme yzme
    Message was edited by:
            yzme yzme

    Hi yzme,
    You need to convert the binary data to characters, a String, before you can properly display it. You say that <i>System.err.println(rs.getBytes("MESSAGE").toString());</i> prints human unreadable stuff. Maybe you need to use another character encoding, like this
    byte[] message = rs.getBytes("MESSAGE");
    String s = new String(message, "UTF-8"); // or "ISO-8859-1"
    It all depends on how the original email message, presumably text, was stored in the database. There's no general way to convert a byte[] to a String and vice versa.
    BTW, if you populate your OutMailBean using <i>outMailBean.setMessages(request.getParameterValues("message"));</i> then you're actually saying an email can have several messages and OutMailBean contains a <i>String[] messages</i> attribute. Then, you call the <i>outMailBean.setMessage</i> method which implies an email has one message and according to you comment OutMailBean contains a <i>byte[] message</i> attribute. The question is of course how you convert the <i>String[] messages</i> attribute to the <i>byte[] message</i> attribute. In other words, what does <i>util.convertStringBufferToByteArr</i> exactly do? It doesn't even convert a <i>StringBuffer</i>, but a <i>String[]</i>. What you probably want to do is something like
    //OutMailBean bean
    String[] messages = bean.getMessages();
    StringBuffer sb = new StringBuffer();
    for (int j = 0; j < messages.length; j++) {
      sb.append("message ").append(j).append("rn");
      sb.append(messages[j]).append("rnrn");
    bean.setMessage(sb.toString().getBytes("UTF-8"));
    Kind regards,
    Sigiswald

  • How to configure Dynamic Data Connection for Business View

    Hi,
    How can we configure Dynamic Data connection that we can save the profile of the connection to somewhere that we do not need to enter it everytime when we refresh the report?
    thanks and regards
    nora

    Hi James,
    Thanks for the reply. Its solved now. For anybody if interested you can set the dynamic email address either i) having it as part of payload - In this case use the xpath to query the payload varaible ii) use identity service - follow the following steps
    1.Create a user in Application enterprise manager/also you can use a existing account, if u are creating a new one assign the correct role
    2. In either case edit the user-properties.xml(bpel/system/services/config) file for the corresponding user and add an attribute called email
    3. Bounce the server for this changes to take effect
    4. In the notification properties in the to address use ids:getUserProperty and pass the attribute name

  • How to bind table data to datatable component and show all the table data??

    I bind table to datatable component !
    The datatable has four rows,
    but the datatable alway show the first row data in its four rows,why??

    do you mean at design time or at runtime?
    at design time, the datatable uses generic fields to
    show if data type is numeric, text, date, etc...
    If this is at runtime,
    - what driver are you using?
    - how did you bind the data to the table?
    - what is the resulting code in the Java backing file?
    hth,
    -Alexis

  • How to add dynamic data type as one of the terminals of a Custom VI

    Hello,
    Can anybody tell me if it's possible and how to add a dynamic data type as one of the terminals of a sub-VI? I would like to have a terminal that I can connect signal from DAQmx to my sub-VI.  Thanks.

    Here is one of the coolest things about LV, and one of its major advantages over languages like VB - it has automatic memory management and it compiles whenever you make a change. This allows you to be very free in the way you handle data and change your code. In this case, you should note the small gray dot that appears when you wire the dynamic data into the Array of Waveforms input. This gray dot means that LV coerces the source data type (DDT, in this case) to the target data type (Array of waveforms). If it wouldn't match, you would get a broken wire, the VI couldn't run, and if you hover over the wire or press the broken run button you would get an exact description of the error. Cool, eh?
    This can also be seen in other things. For example, you can change an array's data type or number of dimensions by simply doing it. This will automatically be reflected anywhere the array is called in the program, and if anything won't match, the VI will be broken. If you change the # of dimensions of an array, any array function which that array is wired to will adapt. This allows you to be very safe in the way you write code, because you have LV watching all that annoying stuff for you. You don't have to worry about misspelling a variable here (for the most part).
    One important point about coercion - it does take processor power. This will usually only be evident in large arrays or loops, but it is an important point. Another thing is that coercing numeric types can cause you to lose data - coercing a DBL to a U16, for example, will cause you to lose all the fractional data.
    To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
    In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).
    Try to take over the world!

  • How to capture dynamic data in BPM and send to next step ?

    Hi Folks,
    How can i capture the dynamic data and later on send it to the next message type in send step in BPM ?
    Regards,

    Hi Santhosh,
        In your sceanrio your getting the response from RFC and preapring the XML file.Where you are poulating the Dynamic File name inside of the BPM or Outside of the BPM. Might be it is inside of the BPM, if yes Use another transformation step where you can catch the Dynamic file name to sending to Oracle database and Use send step to sending the message of out of the BPM.
    Cheers
    Veera

  • How to bind XMLType data in JDBC application

    Hi
    I have an XMLType column.I was updating that column data as
    update DOCUMENT set RECORD_DATA =sys.XMLType.createXML('" + recordData +"') where doc_id = 100
    It was working fine as long as the recordData length is less than 4000 chars.
    If it is beyond 4000 chars it is giving ORA-01704 "String literal too long"error.The documentation says we have to bind the data if it is more than 4000 chars.
    Can anybody give how we can bind XMLType data in Java.
    can we use prepareStatement.setClob( ) or setObject() ?
    I tried to pass the String in setClob and setObject,but it didn't worked.how do we create XMLType object in Java appplication and pass .
    please give the info.
    Thanks in advance.

    You really need to use the OCI driver if you are dealing with XMLType via JDBC.

  • How to display dynamic datas and double datas (chart)

    Hi all !
    I would like to display dynamic datas and double datas by using charts.
    However, it doesn't work and I don't understand why.
    Can you help me to fix that ?
    Best regards,
    - John
    Attachments:
    double_dynamics_data.vi ‏54 KB

    Hi John,
    the sine looks like it should look with your VI!
    You convert the DDT to a scalar DBL. That conversion will only use the first sample of the generated sine waveform - usually this is always the same (offset) value when you generate full periods… Or to put it in a mathematical expression: sin(0°)+4 = 4!
    When you want to display waveform you should work with waveforms!
    Actually, I have used Dynamic data type in order to simulate an signal.
    Well, I also simulated a signal in my example VI. I didn't use any ExpressVI to do so…
    In a few weeks, I will receive a sensor. I will use in LabView 'DAQ Assistant' whose the ouput is a Dynamic Data.
    Nobody forces you to use the DAQAssistent ExpressVI. There are nice DAQmx functions available and LabVIEW comes with a lot of ready-to-use example VIs…
    That's why, I used in first place, the 'Simulate signal'. So I think I should keep Dynamic Data Type
    I do think you don't need to use the DDT. I think it's better to understand what is going on in your VI. And I think the DDT will be no help for you…
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How to bind the data from my data source table to my jsp action form

    I am doing one small application in that i need to bind my data to the database table, that means if i enter any data in my action form fields then it should get appended at database. I have done the binding but it is not appending to the database table. May be i didnt bind the data properly, can anyone help me out in solving this problem. Its very urgent because i have to submit this application today itself. Please help me out from this problem. please tell me from the basics and give me some example.
    Thanking you in advance

    hi,
    try this:
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/inserts_updates_deletes.html
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/dataproviders.html
    regards,
    rpk

  • How to create dynamic data tables with ADF 10g

    Hi,
    Can anyone provide sample code for creating dynamic data table in adf where column & row will be added dynamically according to the data coming from the Array List of data.
    I appreciate your help here.

    I think you've posted to the wrong forum. This one is for WebLogic Portal questions.
    Try the ADF/DVT forum:
    http://myforums.oracle.com/jive3/forum.jspa?forumID=1565

Maybe you are looking for