Interactive Gantt chart - how to receive updated XML after user changes

Hello,
I failed to receive changed XML after user updates.
I've constructed following example:
Created context attribute of type XSTRING, binded it to the "dataSource" property of the Gantt chart control.
I pass following XML to the control:
<?xml version="1.0" encoding="iso-8859-5" ?>
<SAPJNetData version="1.0">
<Application type="GANTT" version="1.0" />
<TypeRepository version="1.0" href="/SAP/BC/WebDynpro/SAP/ZT_INV_WDR_TEST_GANTT/gantPR02P00086_3_tr.xml" />
<UserInterface version="1.0" href="/SAP/BC/WebDynpro/SAP/ZT_INV_WDR_TEST_GANTT/gantPR02P00086_3_ui.xml" />
<Graph type="Gantt.Graph" version="1.0">
<rows>
  <row id="001" />
  <row id="002" />
  <row id="003" />
  </rows>
<dates timeZone="GEurope/Berlin" locale="de_DE" format="dd.MM.yyyy" dateEnd="20.01.2010">
  <section date="01.01.2010" unit="DAY" unitSize="20" />
<calendarItem id="Cal.1stDayInMonth">
  <repetition unit="MONTH" />
  </calendarItem>
<calendarItem id="Cal.1stDayInWeek">
  <repetition unit="WEEK" />
  </calendarItem>
  </dates>
<view>
  <viewpos date="01.01.2010" />
  </view>
<chart id="Dummy">
<timeScale>
<section index="0">
  <ribbon type="Gantt.CProjects.Ribbon.Month" />
  <ribbon type="Gantt.CProjects.Ribbon.3Days" />
  </section>
  </timeScale>
  <grid type="Grid.CProjects.Gantt.TimeLine" calendarIDs="Cal.1stDayInWeek" />
<table type="Gantt.Table" id="CProj-Table">
  <defaults typeCell="L.Table" typeHeader="L.Table" />
  <tree showRootIcons="TRUE" />
<cols showInitially="4">
  <ids>TREE,ID2,ID3</ids>
  </cols>
<header>
  <header width="30" />
  <label colid="TREE" width="250">Этап</label>
  <label colid="ID2">Дата с</label>
  <label colid="ID3">Дата по</label>
  </header>
<rows>
  <ids>001,002,003</ids>
  </rows>
<row>
  <header>1</header>
  <tree>Top Item</tree>
  <label>01.01.2010</label>
  <label>20.01.2010</label>
  </row>
<row>
  <header>2</header>
  <tree parentRow="001">Subitem 1</tree>
  <label>01.01.2010</label>
  <label>10.01.2010</label>
  </row>
<row>
  <header>3</header>
  <tree parentRow="001">Subitem 2</tree>
  <label>11.01.2010</label>
  <label>20.01.2010</label>
  </row>
  </table>
<graph>
<view>
  <backColor type="White" />
  </view>
<node id="001" type="Gantt.CProjects.SummaryNode" rowID="001">
<dates>
  <date>01.01.2010</date>
  <date>20.01.2010</date>
  </dates>
  </node>
<node id="002" type="Gantt.CProjects.Node" rowID="002">
<dates>
  <date>01.01.2010</date>
  <date>10.01.2010</date>
  </dates>
  </node>
<node id="003" type="Gantt.CProjects.Node" rowID="003">
<dates>
  <date>11.01.2010</date>
  <date>20.01.2010</date>
  </dates>
  </node>
  </graph>
  </chart>
  </Graph>
  </SAPJNetData>
Then I run my example application, press standard "Save" button in Gantt chart control.
After that my XML in context changes, but it's incorrect. There is no <graph> tag at all - this tag should contain all significant parameters of the chart.
The resulting XML below:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<SAPJNetData build="9295" date="04-Aug-2010 10:19:13" host="localhost" version="1.1247">
<Application type="GANTT" version="1.0"/>
<TypeRepository href="/SAP/BC/WebDynpro/SAP/ZT_INV_WDR_TEST_GANTT/gantPR02P00086_3_tr.xml" version="1.0"/>
<UserInterface href="/SAP/BC/WebDynpro/SAP/ZT_INV_WDR_TEST_GANTT/gantPR02P00086_3_ui.xml" version="1.0"/>
<GraphGantt version="1.1247"/>
</SAPJNetData>
All the chart in fact has completely disappeared. There is nothing left but file header.
The question: How to get XML with all user changes back from the Gantt chart control?

Long time, hah..
Anyways thanks to behave like a responsible person on SCN and taking care of your threads..
Liked.

Similar Messages

  • Interactive Gantt chart & save functionality

    I've been trying to develop an interactive Gantt chart within Web Dynpro ABAP. Things have been going fine and altough there doesn't seem to be much documentation available, I've managed to get a simple Gantt chart WD application up and running.
    The following is said in the documentation:
    "It is possible to store changes made within the displayed Gantt chart as data structures again in the back end."
    I understand this that if I do changes to the Gantt chart, I should be able to "track" these changes in my code (and for example save the changes to database or whatever). Anyhow, I am not able to get this done. I've put break points to the event handler methods, and read the XML from the context node, but the XML has not changed.
    I also enabled the SAVE functionality for the Gantt (in the XML), which made the Save-button visible. If I click the save-button, I would assume that at this point the XML is updated with the refreshed chart data. Anyhow, this does not seem to happen. The XML seem to have lost the relevant part of it (=basically everything under the <graph> tag, which would include the changes (this same problems was addressed also before: Interactive Gantt chart - how to receive updated XML after user changes)).
    Any hints are welcome. I guess that this should not be impossible. I assume that for example in cProjects (which uses Gantt chart a lot) is using this functionality - unfortunately I don't have an access to a cProjects system.
    Kind regards,
    Karri

    Long time, hah..
    Anyways thanks to behave like a responsible person on SCN and taking care of your threads..
    Liked.

  • How to receive a xml CDATA in string element when OSB calling a webservice?

    How to receive a xml CDATA in string element when OSB calling a webservice?
    I have a business service (biz) that route to operation of a webservice.
    A example of response to this webservice legacy:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:eg="example">
    <soapenv:Header/>
    <soapenv:Body>
    <ex:executeResponse>
    <ex:arg><![CDATA[<searchCustomerByDocumentNumberResponse>
    <name>John John</name>
    </searchCustomerByDocumentNumberResponse>]]></ex:arg>
    </ex:executeResponse>
    </soapenv:Body>
    </soapenv:Envelope>
    the type of ex:arg is a string.
    How to receive this CDATA structure to webservice in OSB?

    Similiar to the answer How to pass a xml CDATA in string element when OSB calling a webservice?
    Use the xquery function fn-bea:inlinedXML rather than fn-ben:serialize
    Steps to solve this problem:
    1. Create a XML Schema. E.g.:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
    elementFormDefault="unqualified">
    <xs:complexType name="searchCustomerByDocumentNumberResponse">
    <xs:sequence>
    <xs:element name="name" minOccurs="0">
    <xs:annotation>
    <xs:documentation>
    </xs:documentation>
    </xs:annotation>
    <xs:simpleType>
    <xs:restriction base="xs:string" />
    </xs:simpleType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    <xs:element name="searchCustomerByDocumentNumberResponse" type="searchCustomerByDocumentNumberResponse"></xs:element>
    </xs:schema>
    2. Create a XQuery to create a searchCustomerByDocumentNumber ComplexType. E.g.:
    3. Create a XQuery Transformation (XQ) to get the CDATA response to the webservice legacy. E.g.:
    declare namespace ns0 = "novosiaws";
    declare function xf:getReponse($searchCustomerByDocumentNumberResponse as element(ns0:searchCustomerByDocumentNumberResponse))
    as element(searchCustomerByDocumentNumberResponse) {
    fn-bea:inlinedXML($searchCustomerByDocumentNumberResponse/ns0:arg)
    For more information about xquery function:
    fn-bea:inlinedXML
    The fn-bea:inlinedXML() function parses textual XML and returns an instance of the XQuery 1.0 Data Model.
    The function has the following signature:
    fn-bea:inlinedXML($text as xs:string) as node()*
    where $text is the textual XML to parse.
    Examples:
    fn-bea:inlinedXML(“<e>text</e>”) returns element “e”.
    fn-bea:inlinedXML(“<?xml version=”1.0”><e>text</e>”) returns a document with root element “e”.
    Source: http://docs.oracle.com/cd/E13162_01/odsi/docs10gr3/xquery/extensions.html

  • How pricing condition be auto updated if the user changes price in PO ?

    Hi
    Is there any configuration setting on how pricing condition can be automatically updated if the user changes price in the purchase order ?
    Thanks
    Maruthi

    Hi Maruthi,
    As far as I know, POs (like many other documents in SAP) are "snapshots" of data as it was at the time of the document creation.  This snapshot has no direct link to master data, so it will not change unless you go to the document and manually change/refresh whatever data you need updated. 
    Even if there were a way to link your PO to master data to auto-update I don't see how any change on a PO could go backwards and change master data.  Pricing works the other way around - the PO takes the price from the condition records, not the records from the PO.
    Hope this helps,
    J

  • Why do I continue to receive notifications, even after I change my preferences?

    why do I continue to receive notifications, even after I change my preferences? I had about 100 or so today. I switched all of my notification anwers to NO, as in , I don't want to receive any email from apple communities whatsoever. ??? Thanks.

    You need to double check that you aren't subscribed to the community, not just to the question you asked.  Go to the community that you are receiving the emails from and the same box called "Actions" will appear there just like it does next to the individual question.  Make sure that you are not reciveing email notifications for that community.  Probably the community  where you asked your question.  Typically that is what causes people to get 100's of email notifications. I think that this is not included in the tutorial so a lot of people miss it. 
    Hope that works for you.
    laverne's mom

  • Adf gantt chart: how to drag the task bar to another date

    hi all,
    how can I drag the task bar to another date in ADF Gantt Chart.
    do I need coding(like handler DataChangeEvent in dataChangeListener),
    or just set some properties.
    thank you for your help !
    zqh

    We are unable to drag the gantt bars in our application. Initially this used to work fine and we used to get a call back for the action type TIME_CHANGED in the data change event. But now neither we are getting handle around the bars for expanding/collapsing them nor we are getting any callback for this event.
    Looks like if the Edit feature is added in the featuresoff attribute of gantt then the gantt becomes un-interactive. Is there a way by which we can remove the Edit menu but still be able to drag/expand/collapse the task bars?
    Edited by: 907043 on Jun 25, 2012 2:45 AM

  • Gantt chart- How to change the color of time bars of different versions

    Hi All,
    My Client wants to see all changes in planning schedule. I made different versions of these changes but he also want to see all these changes in gantt chart and in different colors. I tried to change the color in planning board assistant but in this screen (CJ27/ CJ2B). we cannot view all versions together. And if I use CN41, there I cannot change the colors of time bars.
    Secondly, we can change colors of times bars of basic dates, forecast dates and actual dates but there is no provision to change the colors of schedule bars of different project versions. Kindly reply-
    1. How to see all project versions in CJ27 or How to customise bar chart in cn41 or if we change in SPRO, then how to change graphic profile in project info profile
    2. How to change colors of different time bars of different versions.
    3. How to mention these legends (meaning of each color in chart) at footer of gantt chart (in print outs)
    Please Help.
    Thanks & Regards
    Dinesh Chauhan

    Thanks,
    actually I've created new project planning board profile where planning board assistant is customized but unable to use this profile in CN41. we can change PS info profile in CN41 and that;s why I thought that planning board profile may be assigned somewhere in PS info profile so that changes in planning board assistant will be applied in CN41 through PS info profile. Graphic profile is too complex to understand and not sure if it will help to get colored time bars of projct versions in gantt chart. Still not clear.
    Secondly not able to see all versions (snap shots) in gantt chart with different colors of time bars.
    I mean planning board screen can be customized but we cannt see different versions here which are possible in CN41, but we cannt customize the gantt chart (time bars) in CN41. Pls help.
    Thx & Regards
    Dinesh Chauhan

  • IGS GANTT CHART HOW TO ?

    In Sap IGS demo there only data set for  Categories and Series , how to build a gantt chart use TimeValue or  NumericValue for a Point element ?  I try to use cl_gui_chart_engine class to show a gantt chart in GUI, the X-axis of chart like 'YYMMDD'. Can someone help me?

    What IGS version are you using?
    Are you using the Chart Designer to create the Gantt chart?
    [SAP NetWeaver 7.0 EHP 1 --> Chart Designer |http://help.sap.com/saphelp_nw70ehp1/helpdata/en/86/243f403f0a9354e10000000a155106/frameset.htm]
    Correct the insertion of the Link
    Edited by: Oisin ONidh on Feb 14, 2011 10:13 PM

  • Interactive Gantt Charts in Webdynpro

    Hi at all,
    Where can i find information about the interactive gantt element in webdynpro for java or rather code examples how to use this element?
    thx

    Hi Thomas,
    there are two ways to implement a Gantt in Web Dynpro: Either one chartType of the BusinessGraphics element or you take the Gantt UI element (is an applet). Both are a kind of interactive, the Business Graphics has a better integration into WD (data binding is easier), the Gantt element has more possibilities for interaction.
    For the Gantt you can have a look at this thread, it describes the Network element, but it is the same procedure as for Gantt.
    Re: Using the "Network" UI Element
    in addition:
    Docu for Gantt UI element:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/42/c8e974d9cc6bb6e10000000a1553f6/frameset.htm
    Docu for BusinessGraphics:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/3e/c450c4cf2f6d418204afeea17655d3/frameset.htm
    BTW: For the Gantt you need NW2004s, Business Graphics are available since NW2004
    Kind Regards
    Stefanie

  • How to receive a XML data thru' HTTP

    We are trying to build an real-time interface between two system thru' XML. So the idea is that source app would post XML to a target URL using HTTP and the target app would validate the message, call pl/sql to transform and finally return back a SUCCESS or ERROR message (in XML). The source app is a SQL Server database and the target database is Oracle.
    Steve Muench described an approach of writing a custom Servlet that would receive the XML message, trasformed with XSLT, inserting it to Oracle using XML SQL Utility and respond back, but that was for Oracle 8i. I wonder if 9i and XDB has a better tool (or a built in Servlet or Listener) that basically does the same.
    Thanks for your help.

    If you can make the source app to an HTTP Post to the Oracle XML DB repository, and POST contains a schema based XML document you can use a trigger on the default table to validate the XML that is posted. The return message would need to be managed using a database trigger. You could raise an HTTP error which the source App would trap....

  • How do I update GarageBand after upgrading to Yosemite 10.10.1

    I have GarageBand on my MacBook Pro but have recently upgraded to Yosemite OS X 10.10.2. I wanted to use GarageBand but rec'd a message that there is a newer version. I didn't think I should have to pay for an upgrade in the App Store. How do I update my version of GarageBand?

    Which version of GarageBand do you currently have?
    Updates are free (when the first number of the version number stays the same), but upgrades to a major new release require a purchase (when the first part of the version number changes).  So the upgrade from GarageBand '11, version 6.0.5 to GarageBand 10.0.3 is a major upgrade, that requires a purchase.
    If you decide to upgrade, do not replace your current GarageBand version, if you are currently running GarageBand 6.0.5. Keep both versions. The new GarageBand is very different from version 6.0.5 - it is more like Logic than GarageBand. It comes with nice new features like smart drummers, but but older audio units are no longer support. If you decide to upgrade your system, keep your current GarageBand as well. Both can be used in parallel and you will need the sounds and loops from the previous version to play your older projects. This forum is full of desperate questions about how to get the previous version back, because instruments are missing or podcasts no longer supported.

  • How can I update a Resource User in a task

    Hi,
    I have a requirement that , I have to update some users in the LDAP resource in a task.
    Now I can get the list of users I want to update from the Resource in the task.
    But I dont know how do I update them.
    Can anyone help me to implement this?
    Thanks

    Log into shared services, expand User Directories > Native Directory > Right click users and select "New"
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to actually update Firefox after download.

    I have Ubuntu (not sure which version), and just downloaded Firefox 6 update. After the download, I extracted all the files from the zip folder. Now, I am not sure what to do. I cannot find anything that says "update here" or anything like that. How do I actually complete the update from here?

    This is for Firefox 5/Ubuntu 11.04/10.10 but should work:
    *http://www.linux-radar.net/upgrading-firefox-firefox-5-ubuntu-11041010.html
    Did you try the manual update:
    *https://support.mozilla.com/en-US/kb/Updating%20Firefox?bl=n&s=update%20automatically
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • HT203433 I cannot get any downloads credit info changed - how do i update? also email changed   does this effect log into ap?

    How do i update info to purchase on iphone ap? Cant find anything to update card info

    To view information such as that on the device,
    Settings - Scroll down till you see iTunes & App Store
    Select that,
    View Apple ID

  • How do keep updates on the users online?

    right now i am developing a chat program that uses applets, users login in and out. i am putting the list of users on a database and my problem is that i am using a list to know the online users, and i am asking for suggestions how, since i have to update the list of the users in each applet that runs on chat...

    You could have the client list use a "stay-alive update" system. This system is pretty basic in design. The client will contact the server every few minutes to determine weather or not a user is still online, if they are then the user stays in the list, if not, then the user is removed. Between the time a user logs off and the list is updated, if a user tries to connect to another client the communication at least on the server side (better if it is on the client side) is to force a check on the status of the user prior to contacting.
    Think of the TCP/IP protocol and that should help you.

Maybe you are looking for