Manipulate xml data

From a XML file, I can retrieve the content and display in
one single column. This part works perfectly!
But when it comes to seperate my xml data in 2 columns... no
luck.
Can anyone guide me and split my items in a new row when 10
items are achieved?

Hi Detonate
Here it is:
GET IT
HERE
I have modified some part of each functions at the bottom. So
change tehm all. Just those at the bottom. I also change the
"makeSubMenu" function at the top of your code. In this function
the parameters is now "node" and no more "node.childNodes". To long
to explain, but it works perfectly now. When I change the code
before I didn't thought that you wiil need the menu type. That is
the reson why I need to keep the all the node not just the
node.childNodes. Well at the bottom, here is what I did:
1- In the "attachSubMenuItem" the is a button id for each
clip. Use to now wich subment have been clicked
2- I still use the "setSubmenuEvents" function even if the is
only one event in. It's a good way to work in case of you'd like to
add other events.
3- I had change a bit of your code in the
"levelTwoEmpty["item"+i].onRelease" now named as "clickEventSub".
Not just an event, but a function. Code inside has been modify to
works with the new code. Also I use the switch case instead of the
if else if else etc. In this case It<s a good way to works. Also
actually the code for the id web or img is the same, so instead of
having 2 different if, I put tehm in the same, actually the default
value in the switch case.
Hope that can help.

Similar Messages

  • Flash Charts - How to manipulate the #data# replacement string in XML

    I have a problem with the XML file for a flash chart. I am trying to display a 2dColumn chart of an SQL query with the general form:
    select null link, x as name, sum(y) as value from z group by (x);
    this generates multiple rows, which are displayed as a bar in the chart. So far so good. The problem is, that each row is defined as a block in the chart, but only one name entry is created "value", which is displayed in the legend of the chart.
    I can display the block names on the x-axis of the chart, however, I can't rotate them, so that they don't overlap in the display, which I would be able to do with names. I assume, that the blocks are defined in the #data# replacement string of the XML file. I would like to change the generated XML replacement string from the SQL to make each row selected a different name, and only have one block ("value").
    What would be the easiest way to achieve this?

    user587996,
    There's no way to manipulate the #data# replacement directly, but you could generate your own XML (see Re: Apex changing nulls to zeroes when creating Flash Charts for one way to do it).
    When you say "I can't rotate them, so that they don't overlap in the display" -- have you tried the Labels Rotation chart attribute, or is that not working?
    - Marco

  • XML data into an Array

    Hey,
    I have successfully loaded an external XML data file into my
    movie. Now I would like to save the node values into an array so i
    can manipulate and call as required...Is this possible or is there
    a better way to go about this?

    Well since you have the XML object loaded, all you would need
    to do is extract the nodes and data you needed then push them onto
    the array..
    If you are not too sure how to go about this, give us the XML
    schema (xml structure) of what was loaded and what you need and we
    can shoot you some basic code to get it done.

  • How to manipulate xml structure?

    Hi there,
    I have a xml data, which has this format when I read it first in flex via HTTPService:
    <items>
                <item title="firstItemTitle>
                    <Feature title="Speed">
                        <Machines>
                            <Machine name="machine1">
                                <Value>60m/s</Value>
                            </Machine >
                            <Machine name="machine2">
                                <Value>50m/s</Value>
                            </Machine >
                        </Machines>
                    </Feature>
                    <Feature title="Automatic">
                        <Machines>
                            <Machine name="machine1">
                                <Value>Yes</Value>
                            </Machine >
                            <Machine name="machine2">
                                <Value>No</Value>
                            </Machine >
                        </Machines>
                    </Feature>
                </item >
                 <item title="nextItemTitle">
                </item >
    </items>
    I want to manipulate this structure to be used in tree component, who's leaf would be replaced with a tabular structure(as shown in the attached image).
    Can you kindly let me know how can this be achieved? Appreciate your help...
    Thanks in advance,
    Cheers!
    Deepak

    any help pls?

  • How to manipulate XML?

    Hi guys
    I have this XML returned to my app:
    <menu>
    <categoria nome="cat1">
    <item>item 1</item>
    <item>item 2</item>
    <item>item 3</item>
    </categoria>
    <categoria nome="cat2">
    <item>item 1b</item>
    <item>item 2b</item>
    <item>item 3b</item>
    </categoria>
    <categoria nome="cat3">
    <item>item 1c</item>
    <item>item 2c</item>
    <item>item 3c</item>
    </categoria>
    </menu>
    this is retrieved by an HTTPService
    <mx:HTTPService id="xmlMenu" url="data/menu.xml"
    method="POST" useProxy="false" result="handler()"
    resultFormat="e4x" />
    How to manipulate the XML data in then result handler using
    action script?
    - show nodes length
    - get the atribute of node categoria
    - get to the values of node item
    i've tried
    xmlMenu.lastResult.menu.length.toString()
    xmlMenu.lastResult.menu.categoria[0].length.toString()
    xmlMenu.lastResult.menu.categoria[0].@nome
    xmlMenu.lastResult.menu.categoria[0].item[0]
    nothing happens

    A better way to get the result is:
    <mx:HTTPService ..result="handler(event)"
    and in the handler:
    private function handler(oEvent:ResultEvent):void //might
    need to import ResultEvent
    var xmlMenu:XML = oEvent.result;
    trace(xmlMenu.toXMLString())
    Now you can use the e4x expressions;
    trace(xmlMenu.categoria[0].item[0]); //ashould trace "item 1"
    Tracy

  • Change PaymentAmountText value in XML Data file of Format Payment Instructr

    How to change the value of PaymentAmountText in XML file generated during of IBY_FD_PAYMENT_FORMAT module: Format Payment Instructions?? This XML Data file is being used by the Check Print rtf template.
    The checks will be used for a Singapore$ (S$) Bank account and USD$ Bank account.
    For the S$ check in XML data file :
    <PaymentAmountText>Eighty-Five Dollars And Sixty***********************</PaymentAmountText> for S$85.60
    For the USD$ check in XML data file:
    <PaymentAmountText>Eighty-Five Dollars And Sixty Cents***********************</PaymentAmountText> for USD$85.60
    I have to add 'cents' for the value of the S$ check.
    It looks to me that since it shows for USD and not for SGD, that one can change this in some kind of set up issue. But where and how?? Or can I manipulate this value in the rtf template too??
    Edited by: user1596364 on 24-mei-2012 8:54

    I have solved my problem in following way.
    For example, I would like 'POUNDS' instead of 'DOLLARS'. Currently my check reads 1000 Dollars and 50 cents. It should read 1000 Pounds and 50 pennies
    You need to change the verbiage in the options field for the payment format. (This is the explanation for GUI users.)
    Copy your Format Payment and add some options to it to make the verbiage read Pounds and pennies. Then create a new Payment Format that uses this new Format Payment. Then put this new Payment Format on the Bank Payment Document for the bank account that needs to pay in Irish Pounds.
    1. Define a new Payment Program under System Administrator.
    Navigate to Concurrent -> Program -> Define
    Query up the Evergreen payment program you are using (ex. APXPBFEG).
    2. Click on the 'Copy to' button.
    Enter a value in the 'Program' field type, for example, "Irish Pounds Program".
    Enter a value in the 'Short name' field type, for example, "APXPBIPP".
    3. Edit the Options field in the Executable zone (Do not click the 'Parameters' button.) In the 'Options' field, enter the following 4 options on one line with one blank space between each option:
    P_UNIT_SINGULAR="Pound"
    P_UNIT_PLURAL="Pounds"
    P_SUB_UNIT_SINGULAR="penny"
    P_SUB_UNIT_PLURAL="pennies"
    (For other currencies, replace "Pound" with "Lira", "Peso",etc.)

  • FDTA - XML data display

    Hi Gurus,
    I have generated a file using F110 tcode..a XML file is created in FDTA tcode(DMEE tree file)...there are 2 ways of viewing that file in FDTA tcode..first one is directly select that file and click on display button(the file will be opened in the XML format)..second way is downloading the file to local desktop and viewing that file...the problem i am facing is...when i select the display button the file is opening in XML format but the file is not displaying completely- after certain line items the data is getting truncated..for suppose if i have around 60 transactions,it is disapying only 20 line items..but when i see the same file which is downloaded to local desktop,i can see the complete file..Are there any settings to be done for viewing the file completely in FDTA tcode..?
    Pls help

    Just to combine the response from steve into mine
    To prepare your design*
    1) create a xmlSchema that correspond to your document structure
    2) use jaxb, castor or top link to generate java class to manipulate this content into a java application
    3) import these classes into your jdev project
    In the jdev application_
    ui layer
    Create a data control from xml mapped java classes (use the main object)
    Use this data control structure to create ui component, including the method that check the content from the xmlSchema (castor)
    middle tier, mapping
    Take you xml content as CLOB from the database. Create a business component for this step. Get the xml content as a string (or stringBuffer if I remembering correct). Use this object to load the content into you xml java mapped interface (you will find the method in the object to achieve this step, marshal/unm,unmarshal).
    Your xml data will be shown in you ui interface depending on the xml structure (and not as simple xml text, that you don't want I suppose).
    To save the editing, you will have to transform you java object into plain xml (marshal/unmarshal), obtain a string again, load it into the business content and save it into the database.
    Hope it's help you

  • Xml data display in ADF

    In ADF, I need to display a column from a table which is of xml data type. I get this oracle.sql.OPAQUE error in the column. Is there any other way to display the xml data type? Your help is really appreciated. Thanks.

    Just to combine the response from steve into mine
    To prepare your design*
    1) create a xmlSchema that correspond to your document structure
    2) use jaxb, castor or top link to generate java class to manipulate this content into a java application
    3) import these classes into your jdev project
    In the jdev application_
    ui layer
    Create a data control from xml mapped java classes (use the main object)
    Use this data control structure to create ui component, including the method that check the content from the xmlSchema (castor)
    middle tier, mapping
    Take you xml content as CLOB from the database. Create a business component for this step. Get the xml content as a string (or stringBuffer if I remembering correct). Use this object to load the content into you xml java mapped interface (you will find the method in the object to achieve this step, marshal/unm,unmarshal).
    Your xml data will be shown in you ui interface depending on the xml structure (and not as simple xml text, that you don't want I suppose).
    To save the editing, you will have to transform you java object into plain xml (marshal/unmarshal), obtain a string again, load it into the business content and save it into the database.
    Hope it's help you

  • How i can manipulate xml  writeXML()

    I am using wirteXML() Method for creating xml from
    ADF BC Viewobject from generated xml i want to create txt file with the help of xslt but my consern is when i am creating concern file i want it align properly for that reason what i can do if is it possible to give RPAD for my view object query (i tried to give that it is working for Varchar of type but this method is not working for Number of type in this case how i can go forward )
    How to manipulate xml ,If I want add spaces in any node values of an xml file using oracle.xml.parser.v2.DOMParser
    Message was edited by:
    prabeethsoy

    Hi zxxxxwe,
    >>I need to know how to get the numbers from the phonebook
    What do you mean by "phonebook", does it mean contact list or contact history.
    Currently, there is no API to get contact history in Windows phone for privacy
    If you need to get contact information, for WP8/8.1 Silverlight, see:
    #Walkthrough: Accessing contact and calendar data for Windows Phone 8
    https://msdn.microsoft.com/en-us/library/windows/apps/hh286414(v=vs.105).aspx
    For WinRT, See:
    https://msdn.microsoft.com/en-us/library/windows/apps/windows.applicationmodel.contacts.aspx
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • DSC with XML data type

    Hi,
    Can someone explain to me what the difference is between the xml data type and the Document data type in workbench? I would like to use the xml datatype in my DSC thinking it is most likely the best representation of an xml string. But I've heard that Document is more widely used and that it can represent an xml entity as well. Is this right?
    My ultimate goal is to write a DSC and use a type that represent an xml string. I would like the component.xml to have the type for my input variables to automatically be typed as "xml" or "document" (whatever the one i should be using is).
    I tried creating variables of both types ("xml' and "document", lower case d) and have those passed into my DSC for inspection. The object passed in are as follows:
    xml: org.apache.xerces.dom.DocumentImpl
    document: com.adobe.idp.Document
    But if I use any of those in my component.xml, workbench is typing my variables as "DocumentImpl" or "Document".
    Any ideas?
    Thanks in advance!
    Nic

    The xml variable (org.w3c.doc.Document) is a native xml data type. That means you can use xml functions and/or xPath expressions on the content of the variable.
    The document variable (com.adobe.idp.Document) is a more generic data type that can store any binary data. If you happen to store xml in that data type, you won't be able to run xml functions or xPath expression directly on the variable content since it's treated as binary data.
    If  you don't need to manipulate or access the content of the xml, then either data types will work. Otherwise, I would use the xml data type.
    In your component xml, make sure your xml data type is set to org.w3c.doc.Document and you'll see xml in Workbench.
    Jasmin

  • Using a SQL data source and XML data source in the same template

    I am trying to develop a template for the Request for Quote report generated in Apps 11.5.10. I have loaded the data from the XML output into the template, but I am missing one field - I need the org_id from the po_headers table. Is it possible to use a sql data source (i.e., "select org_id from po_headers_all where po_header_id = [insert header_id from xml data]...") in addition to the xml data source to populate the template at runtime? When you use the Insert > SQL functionality is it static at the time the template is created, or does it call to the database at runtime? I've looked through all the docs I could find, but this isn't clear.
    Thanks for any help or suggestions you may have.
    Rhonda

    Hi Pablo
    Thats a tough one ... if you go custom with a data template you will at least get support on the data template functionality ie you have a problem when you try and build one. You will not get support on the query inside the data template as you might have gotten with the Oracle Report, well you could at least log a bug against development for a bad query.
    Eventually that Oracle Report will be converted by development anyway, theres an R12 project going on right now to switch the shipped OReports to data templates. AT this point you'll be fully supported again but:
    1. You have to have R12 and
    2. You'll need to wait for the patch
    On reflection, if you are confident enough in the query then Oracle will support you on its implementation within a data template. Going forward you may be able to swap out your DT and out in the Oracle one without too much effort.
    Regards, Tim

  • XML data 32K into CLOB

    Hi all,
    I am trying to use UTL_FILE.PUT_LINE to output an XML file. This xml file is the result of a select query. Hence converting the result of the select query into xml format using dbms_xmlgen.getxml and storing it in a variable. But the resultant xml data > 32k . What would be the best way to store it in variable? When using CLOB datatype, getting a numeric value error.
    Thanks in advance.

    As you didn't post the code, nor included a four digit database version, you are asking someone to look in a crystal ball.
    Sorry, they are out for repair.
    Also the XDB forum would be more appropriate.
    Sybrand Bakker
    Senior Oracle DBA

  • How i can transfer XML data from internet to SAP R/3?

    Hi all,
    I have an issue to catch data from internet (perticular website) in xml format and i want to update that xml data format into SAP R/3 database. so how i can do that?
    Can I do directly or i should use any third party tools?

    Hi Deepak,
        Refer these two weblogs,
    /people/bhavesh.kantilal/blog/2006/11/20/webservice-calls-from-a-user-defined-function
    /people/jin.shin/blog/2007/05/21/handling-web-service-soap-fault-responses-in-sap-netweaver-xi
    I hope, this will solve your problem
    Regards,
    Deviprasad

  • DataGrid does not display XML data

    Hello, and thanks for reading this...
    I am having a problem displaying XMLList data in a DataGrid.
    The data is coming from a Tree control, which is receiving it
    from a database using HTTPService.
    The data is a list of "Job Orders" from a MySQL database,
    being formatted as XML by a PHP page.
    If it would be helpful to see the actual XML, a sample is
    here:
    http://www.anaheimwib.com/_login/get_all_orders_test2.php
    All is going well until I get to the DataGrid, which doesn't
    display the data, although I know it is there as I can see it in
    debug mode. I've checked the dataField property of the appropriate
    DataGrid column, and it appears correct.
    Following is a summary of the relevant code.
    ...An HTTPService named "get_all_job_orders" retrieves
    records from a MySQL database via PHP...
    ...Results are formatted as E4X:
    HTTPService resultFormat="e4x"
    ...An XMLListCollection's source property is set to the
    returned E4X XML results:
    ...The "order" node is what is being used as the top-level of
    the XML data.
    <mx:XMLListCollection id="jobOrdersReviewXMLList"
    source="{get_all_job_orders.lastResult.order}"/>
    ...The "jobOrdersReviewXMLList" collection is assigned to be
    the dataProvider property of a Tree list, using the @name syntax to
    display the nodes correctly, and a change event function is defined
    to add the records to a DataGrid on a separate Component for
    viewing the XML records:
    <mx:Tree dataProvider="{jobOrdersReviewXMLList}"
    labelField="@name"
    change="jobPosForm.addTreePositionsToDG(event)"/>
    ...Here is the relevant "jobPosForm" code (the Job Positions
    Form, a separate Component based on a Form) :
    ...A variable is declared:
    [Bindable]
    public var positionsArray:XMLList;
    ...The variable is initialized on CreationComplete event of
    the Form:
    positionsArray = new XMLList;
    ...The Tree's change event function is defined within the
    "jobPosForm" Component.
    ...Clicking on a Tree node fires the Change event.
    ...This passes an event object to the function.
    ...This event object contains the XML from the selected Tree
    node.
    ...The Tree node's XML data is passed into the positionsArray
    XMLList.
    ...This array is the dataProvider for the DataGrid, as you
    will see in the following block.
    public function addTreePositionsToDG(event:Event):void{
    this.positionsArray = selectedNode.positions.position;
    ...A datagrid has its dataProvider is bound to
    positionsArray.
    ...(I will only show one column defined here for brevity.)
    ...This column has its dataField property set to "POS_TITLE",
    a field in the returned XML record:
    <mx:DataGrid width="100%" variableRowHeight="true"
    height="75%" id="dgPositions"
    dataProvider="{positionsArray}" editable="false">
    <mx:columns>
    <mx:DataGridColumn width="25" headerText="Position Title"
    dataField="POS_TITLE"/>
    </mx:columns>
    </mx:DataGrid>
    In debug mode, I can examine the datagrid's dataProvider
    property, and see that the correct XML data from the Tree control
    is present. However, The datagrid does not display the data in any
    of its 6 columns.
    Does anyone have any advice?
    Thanks for your time.

    Hello again,
    I came up with a method of populating the DataGrid from the
    selected Item of a Tree Control which displays complex XML data and
    XML attributes. After the user clicks on a Tree branch, I call this
    function:
    public function addTreePositionsToDG(event:Event):void{
    //Retrieve all "position" nodes from tree.
    //Loop thru each Position.
    //Add Position data to the positionsArray Array Collection.
    //The DataGrid dataprovider is bound to this array, and will
    be updated.
    positionsArray = new ArrayCollection();
    var selectedNode:Object=event.target.selectedItem;//Contains
    entire branch.
    for each (var position:XML in
    selectedNode.positions.position){
    var posArray:Array = new Array();
    posArray.PK_POSITIONID = position.@PK_POSITIONID;
    posArray.FK_ORDERID = position.@FK_ORDERID;
    posArray.POS_TITLE = position.@POS_TITLE;
    posArray.NUM_YOUTH = position.@NUM_YOUTH;
    posArray.AGE_1617 = position.@AGE_1617;
    posArray.AGE_1821 = position.@AGE_1821;
    posArray.HOURS_WK = position.@HOURS_WK;
    posArray.WAGE_RANGE_FROM = position.@WAGE_RANGE_FROM;
    posArray.WAGE_RANGE_TO = position.@WAGE_RANGE_TO;
    posArray.JOB_DESCR = position.@JOB_DESCR;
    posArray.DES_SKILLS = position.@DES_SKILLS;
    positionsArray.addItem(posArray);
    So, I just had to manually go through the selected Tree node,
    copy each XML attribute into a simple Array, then ADD this Array to
    an ArrayCollection being used as the DataProvider for the DataGrid.
    It's not elegant, but it works and I don't have to use a Label
    Function, which was getting way too complicated. I still think that
    Flex should have an easier way of doing this. There probably is an
    easier way, but the Flex documentation doesn't provide an easy path
    to it.
    I want to thank you, Tracy, for the all the help. I checked
    out the examples you have at www.cflex.net and they are very
    helpful. I bookmarked the site and will be using it as a resource
    from now on.

  • Edit/add XML data in BI Publisher

    Hi
    I have a java program that is generating an XML file that I am using as input for my BI publisher for PO report. However, I want to add some extra information(location addresses corresponding to location id) that is not there in the XML and I cannot edit the java program generating it. Is there any way I can do this in BI publisher? Can I edit/add XML data in BI publisher? This is really urgent and I appreciate any help.
    Thanks,
    Sharmila

    You have to edit the package which has the sql query,
    without fetching them in xml , you cannot display that.
    BIP will not help you to get that into report.
    The code which generates the XML data has to edited for sure..
    I guess, i helped one guy for similar requirement,
    i guess you are asking in the same report..
    the java program in turn calls the Pl/Sql package which generates the XML data and pass it to the Java Concurrent Program.
    The Pl/Sql package picks data from these views po_headers_xml, po_lines_xml, po_distribution_xml.
    you can also add the columns you want to be displayed in these views, and then change the template accordingly.

Maybe you are looking for

  • Is there an jdev ARCS (appl. revision control system) extension available ?

    Is there an ARCS ( application revision control system ) extension available for Jdeveloper ? Googling took me to OAF developer guide which said - "With the ARCS (Applications Revision Control System) Extension for JDeveloper, you can perform most so

  • Line Items are showing incorrect

    Hi Friends, i have problem... my requirement is : In Plant 123 order was entered into the system by Customer care sales order 1254223. This has (3)three item lines but in SA38 report i can only see (2)two lines.. what was the problem...how to slove t

  • 2.3 Update:  Problem with AppleTV learning third-party remote

    Hello, I'm trying to set up my third party remote (DirecTV HR21) after updating to 2.3. It all starts well; I go to Settings -> General -> Remotes -> Learn Remote, but I am having an issue when I am making my Apple TV learn the second key (down arrow

  • InfoSet Query - R/3 4.6 vs BW 3.5

    I am having an issue pulling data into BW using an info-set query from tables BSEG and T001.  There is data in R/3 but the infopackage pulls no information.  This may be an authorization issue. I ran a trace but only found S_TABU_DIS with a code of '

  • How do you deal Iphone 5 with LTE  and at&t

    how do you deal Iphone 5 with LTE  and at&t