Displaying Specific xml data.

Hi there,
I have a database exporting stock detail as xml data.  I've been using spry to format.
What I was wondering, is it possible to filter to display only certain data?
My xml data contains electrical products. Can I filter to only display certain products?
For example I only want to display when Product type is Fridge and Brand is BEKO.
Product type, Brand, Description, Price
Sorry, but I'm really stuck.  I can't work out how to do it!
Many thanks,
Martin

The xml contains full details for anywhere between 70 to 100 products.  I've pasted the fields in below.  Does the entire xml have to load before it can filter?  If so I might need to look at the xml output.  I only want the user to be able to see specifc products depending on the page they are on.  So if they navigate Television/Panasonic the spry only displays those products.
Thanks for your advice so far.
{@BulletPoints}
{@ClearanceItem}
{@Colour1}
{@Group1}
{@Group2}
{@Group3}
{@Image}
{@LongDesc}
{@Make}
{@ManufactureGuarantee}
{@ModelNo}
{@NewItem}
{@OldPrice}
{@PackQty}
{@SellingPrice}
{@ShortDesc}
{@SpecialOffer}

Similar Messages

  • Displaying Multiple XML Data on List Item List

    Hi there..
    Is it possible to display multiple XML Data on List Item List. I mean like the example below.
    and how to programatically load image that depends on the XML data value (0=down arrow, 1=up arrow) and also how to refresh data every 1 second.
    Thank you very much...

    Hi Ann,
    Write a Forms procedure and in that open a cursor fetching all data you want to show in the list element and populate the list within the loop using Add-List-Element built-in. Call this procedure in When-New-Form-Instance trigger. Whenver form will be opened the your list element will be populated automatically.
    Hope that helps you.

  • Re-display repeating XML data in dynamic form

    I have a dynamic form with repeating data in my XML that populates it. I need to display the repeating data in one of 2 different ways, depending on which business segment the user viewing it is associated with. I have tried 2 ways to accomplish this, neither has worked for me.
    Attempt 1: Create 2 separate subforms and hide the one that should not be shown. The first subform in the layout displays just fine and is populated with records, but the second subform never displays any records. This appears to be an issue with the XML node already having been parsed and displayed and does not get displayed again. Is there a way to move the cursor, or pointer, or whatever you call it in XML-speak back to the top of a repeating node to re-display data?
    Attempt 2: Create a single subform that contains 2 other subforms - one for each view, which lay atop each other. A script command hides the view the shouldn't be displayed. The problem I ran into here is that the records don't display properly. In my example, there are 3 records in the repeating section, the first displays fine, the second is missing some fields and is pulling some data from the first record. The third record displays no data at all. I deleted the one of the 2 subforms and previewed the form again, now all of the records displayed just as they should.
    Any ideas or suggestions would be appreciated.
    Thanks,
    Chad

    That code also produces text in the textfield.  What "specific parts" are you trying to display?
    textfield.text = (xml.bar[0].text());
    textfield.text = (xml.bar[1].text());

  • How to: Display Specific Xml Entry in AS3

    I have a very simple line of code that i'm trying to modify to display a specific entry in a xml file:
    AS3 Code:
    // The first step is to activate the XML object
    AmbientSettingsXML = new XML();
    With the XML Object now active you must now load an XML foramtted document.
    Any DTD or XLS formatting will be ignored.
    AmbientSettingsXML.onLoad = myLoad;
    AmbientSettingsXML.load("settings.xml");
    // Before proceeding to far into the program, make sure the XML document has loaded
    // Extract information from the XML file
    function myLoad(ok) {
    if (ok == true) {
    trace("ok");
    trace(AmbientSettingsXML);
    The Trace Displays:
    ok
    <?xml version="1.0"?>
    <settings>
    <appearance>
    <event_title>Streaming Demo 1</event_title>
    </appearance>
    </settings>
    So the question is, how do I display the "event_title" entry only? (String)
    Any help is appreciated,
    Thanks!

    var loader:URLLoader = new URLLoader();
    loader.addEventListener(Event.COMPLETE, completeHandler);
    var request:URLRequest = new URLRequest("yourxmlfile.xml");
    loader.load(request);
    function completeHandler(event:Event):void {
    var loader:URLLoader = URLLoader(event.target);
    var xml:XML = XML(loader.data);
    //xml.child("appearance")[0].child("event_title")[0];

  • 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.

  • Display XML data bottom up

    I have a php form that when processed, opens an existing xml
    file and writes to the end of it:
    <code>
    $file_handle = fopen('products.xml','a');
    $content=(
    <new product>
    <date>{$_POST['date']}</date>
    <name>{$_POST['name']}</name>
    <price>{$_POST['price']}</price>
    </new product>
    fwrite($file_handle,$content);
    fclose($file_handle);
    </code>
    Each week, a new date (formatted as mm/dd/yyyy), product and
    price is added to this master xml list. The list is large and
    contains a weekly input for date, product name and price going back
    to 2004. To display the master list on the web, I am using a Spry
    Data table with the sort function enabled:
    <code>
    var products = new Spry.Data.XMLDataSet("products.xml",
    "/products/newproduct");
    products.setColumnType("date", "name", "price");
    function DoSort()
    products.sort(["date", "name", "price"], "toggle");
    -->
    </script>
    </head>
    <body>
    <h3>Display and Sort All Products</h3>
    <div spry:region="products">
    <table>
    <tr>
    <th spry:sort="date">Date</th>
    <th spry:sort="name">Product Name</th>
    <th spry:sort="price">Price</th>
    </tr>
    <tr spry:repeat="products">
    <td>{date}</td>
    <td>{name}</td>
    <td>{price}</td>
    </tr>
    </table>
    </div>
    </code>
    Everything works perfectly, except that by default, the xml
    data is being displayed "top-down" so that the first item is in
    2004, with the last item being the current weekly input for 2008. I
    would like the table (by defuault or on load) to display the xml
    data "bottom-up" so that the most recent input is always at the
    top.
    Can someone please help me figure out how to do this? I have
    looked for the answer everywhere, but can't seem to find a
    solution.

    A other thing u could do is sort the region on postLoad the
    first time..
    First create a global variable something like:
    var productsLoaded = false;
    than add a observer to your dataset..
    products.addObserver({onPostLoad:function(){
    if(!productsLoaded){
    productsLoaded = true;
    DoSort();
    so.. total code:
    var products = new Spry.Data.XMLDataSet("products.xml",
    "/products/newproduct");
    var productsLoaded = false;
    products.setColumnType("date", "name", "price");
    function DoSort()
    products.sort(["date", "name", "price"], "toggle");
    products.addObserver({onPostLoad:function(){
    if(!productsLoaded){
    productsLoaded = true;
    DoSort();
    }});

  • 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 to Display XML data on a Window within my JDev App?

    I want to display some XML data stored on the database (in a CLOB field) in such a way that the XML tags and values are colored/highlighted as if they were read in a browser like Internet Explorer.
    Currently I am displaying the data using a JEditorPane field and the results are hard to read as the tags and values show on the same color and in plain text.
    I want to dispay this within my application (9i), not going to an external browser; i.e. I want the window (panel) to act as a browser when displaying the data.
    Any ideas would be appreciated.
    Thanks.

    You can use utl_http in the database to call the webservice and display the result in a form item.
    Example:
    http://www.oracle-base.com/articles/9i/ConsumingWebServices9i.php

  • Displaying XML data in dynamic text box

    I'm attempting to display external XML data in a dynamic text box. When I test preview my code, the information that I want to display shows up in the Output window, so I know that its linked and works. My trouble is creating the code that will link to my (txtBox) and displaying when previewed. Please take a look at the files below if you have any time to offer suggestions.
    Thank you!
    Andy

    That's not an error, it's just a warning and flash is suggesting that if you use appendText vs. +=, that your results may display faster
    if you don't want to see the warning, you can take the suggestion and use:
    txtBox.appendText(bldg.S11[i].SF.text());
    txtBox.appendText(bldg.S11[i].Tenant.text());
    txtBox.appendText(bldg.S11[i].Status.text());
    ~chipleh

  • AdvancedDataGrid-  Displaying XML Data

    How would i hide the root node when displaying an XML data in
    advanced data grid. a blank node is showning
    up at the top level of the adgrid. is there a method similar
    to showRoot="false" that i can use in Flex 3?

    XMLListCollection might be a workaround.
    Tracy

  • Xml data in af:inputText

    Hi All,
    Is their any way to display the xml data with indentation in af:inputText or any of the editing input componets in adf
    i am using jdev11.1.1.5
    Thanks in advance

    925410 wrote:
    Hi Sudipto Desmukh ,
    Will you please post it here because I am not able to access this site.
    THIS IS THE BLOG POST, WRITTEN BY  Lalit Kapoor :
    If you also have a requirement where you need to show XML content/payload stored in a CLOB column in the database on an ADF UI, like in a popup as shown below:
    Then here are the steps you need to follow to configure a popup to show XML content nicely on the UI:
    Create a VO that contains that CLOB attribute.
    Create a popup with Content Delivery property set to 'LazyUncached'.
    Inside popup, put a Dialog (or panelWindow if you like with Modal property set to true).
    Inside Dialog, put a PanelFormLayout component.
    Inside PanelFormLayout component, drag the CLOB attribute as inputText component. Configure the inputText component as follows:
    Set Read-Only as true, if you dont want the user to edit it, as in my case.
    Set the Rows property to any value between 5 to 40 depending on how much payload you want to show on screen at once.
    Set the Columns property to any value between 5 to 40 depending on how much characters in a row you want to show on screen at once.
    Set Wrap property to 'soft'.
    Set the Converter property to a customised converted, like ClobConverter (code shown below).
    Use ShowPopupBehavior operation as child of link/button to render the popup.
    Here is how that popup code looks like:
    <af:popup childCreation="deferred" autoCancel="disabled" id="p1" contentDelivery="lazyUncached">
    <af:dialog id="d1" type="cancel">
    <f:facet name="buttonBar"/>
    <af:panelBox text="B2b Payload*" id="pb1">
    <f:facet name="toolbar"/>
    <af:panelFormLayout id="pfl1">
    <f:facet name="footer"/>
    <af:inputText value="#{bindings.B2bPayload.inputValue}" label="#{bindings.B2bPayload.hints.label}"
    required="#{bindings.B2bPayload.hints.mandatory}"
    columns="100"
    maximumLength="#{bindings.B2bPayload.hints.precision}"
    shortDesc="#{bindings.B2bPayload.hints.tooltip}" id="it1" converter="ClobConverter"
    readOnly="true" rows="21" wrap="soft">
    <f:validator binding="#{bindings.B2bPayload.validator}"/>
    </af:inputText>
    </af:panelFormLayout>
    </af:panelBox>
    </af:dialog>
    </af:popup>
    The ClobConverter looks like as shown below:
    package com.emerson.eth.adf.view.converter;
    import javax.faces.component.UIComponent;
    import javax.faces.context.FacesContext;
    import javax.faces.convert.Converter;
    import javax.faces.convert.ConverterException;
    import oracle.jbo.domain.ClobDomain;
    public class ClobConverter implements Converter {
    public ClobConverter() {
    super();
    public Object getAsObject(FacesContext context,
    UIComponent component, String value) {
    if (context == null || component == null) {
    throw new NullPointerException("FacesContext and UIComponent can not be null");
    if (value == null) {
    return null;
    try {
    return new ClobDomain(value);
    } catch (Exception ex) {
    final String message =
    String.format("Unable to convert boolean value \"%s\" into a oracle.jbo.domain.Number",
    value);
    throw new ConverterException(message, ex);
    public String getAsString(FacesContext context,
    UIComponent component, Object value) {
    if (context == null || component == null) {
    throw new NullPointerException("FacesContext and UIComponent can not be null");
    return value.toString();
    You need to register this converter in the faces-config.xml to make it visible in the inputText component configuration wizard, as shown below:
    <?xml version="1.0" encoding="windows-1252"?>
    <faces-config version="2.0" xmlns="http://java.sun.com/xml/ns/javaee">
    <application>
    <default-render-kit-id>oracle.adf.rich</default-render-kit-id>
    </application>
    <converter>
    <converter-id>ClobConverter</converter-id>
    <converter-class>com.emerson.eth.adf.view.converter.ClobConverter</converter-class>
    </converter>
    </faces-config>
    NOTE:
    For XML to appear in the UI, you also need to disabled the wrapping of LOBs done by the Web Logic Server at the data source level. To do this, un-check the 'wrap data type' check box available at:
    WLS Home -> Data Sources -> DS used by the app -> Connection Pool -> Advanced.

  • Showing XML data

    Hi all,
    i have to create a table in the DDIC where i have to store some XML data and informations.
    ID -> char
    date -> date field
    desc -> char
    xml -> ????
    What datatype shall i use to store my XML Data ?
    Later in a Dynpro i need to show this XML Data. What type of control shall i use to show this XML Data ?
    Can i use the browser control ? If so ... how can i pass my xml data to this control ??
    Greetings
    Henning

    You can create a field of data type STRING if you are planning to store your XML in string or RAWSTRING if you are planning to store your data in XSTRING.
    You can use the Simple CL_GUI_HTML_VIEWER to display your XML data stored in STRING or XSTRING. Take a look at the FM DISPLAY_XML_STRING.
    Regards,
    Naimesh Patel
    Edited by: Naimesh Patel on Feb 12, 2009 10:19 AM

  • Reg: Display Specification: Header.. TCode: CG02

    Hello Guys,
    Is there any FM to fetch the "Display Specification: Header" data for any particular material or against the Real substance number.
    If you go to transaction CG02 and - for my case i have Real substance number - i put the Real substance number and then put the material number.
    In below Property tree you can choose any standard property for that material and double click on it you get Value Assignments if is there any Standard FM then i can fetch the data.
    Thanks in Advance..
    Sayak

    Dear All,
    We have created Custom Condition Type and have made the following settings in Tcode M/06 as:
    Cond. class: A
    Calcul. type: A
    Manual Entries: C
    Header condition: checked
    Delete: checked
    Amount/percent: checked
    delete from DB: Do not delete (set the deletion flag only)
    scale basis: C
    In the above configurations, there is no Pricing Procedure maintained for the above condition type. But still i am not able to edit Condition Amount at PO Header level.
    Kindly help me and let me know whether i need to do anything, which i missed out.
    Regards,
    Ramesh Manoharan

  • Problems handling xml data for tree control.

    Hi,
    I have tried using tree control for displaying my xml data
    but I had a problem that i did not have labels in my xml data. A
    sample xml data is attached. So it displays the whole data at each
    level in the tree. The root label will be the entire the xml data
    and then one level down the remaining xml data and so on...
    How do i solve this issue i,e get the tags names itself as
    labels..
    Thanks in advance....

    An update after some efforts..
    Could get the folders perfectly i.e until the level of
    CPUTime perfectly but could not get the leaf: 32 since i used the
    following to set the label.
    I would like to know if there is a way to find out if a node
    is a leaf or folder and according set the label

  • IXML - Checking if a specific node exists in XML data

    Hi,
    I´m reading XML data by using iXML classes. One XML file I´m reading contains header and
    item data.
    Right now I´m starting with reading the header attributes and then read all nested nodes and their attribute data. That works all fine, but now I had the error, that the XML file wrongly didn´t contain the items.
    My XML reading method then ended up in a dump because the node was null:
    l_node = l_iterator->get_next( ).
    Can anybody give me an advice, how to check at the beginning of reading my xml data, if a specific node (in my case the node for items) exists in the XML data? If not, I want to stop with an error message. I want to check that at the beginning, before reading all element data, to keep my method structured.
    Thank you very much!

    Hi,
    You can create a filter and set that filter to the iterator. If this is done the iterator returns you only the node with a specific node name or node ID.
    You can also check the parsing in the following WIKI code gallery
    https://wiki.sdn.sap.com/wiki/x/JoDmAQ
    Subroutines create_set_filter_attribute and parse_xml_file would be helpful.

Maybe you are looking for

  • I have pre-ordered an album and all of the songs are available for download apart from one which is listed as 99p to buy?

    Hello, I hope someone can help me. I pre-ordered Justin Timberlake's new album and have tried to download the album today, however for some reason "Suit & Tie" is listed as unpurchased and will charge me 99p to download? All the other tracks have dow

  • How do I clear an Ipod Touch?

    I recently bought an Ipod Touch from my friend and she had gotten it from some store( idk where though) and today this lady came up to me and said that she found me on her map thingy from find my Iphone, and um i was hoping there was a way that i cou

  • Error while creating enhancement section

    Hi, I am trying to create a enhancement section in my ABAP program, but i am getting a message 'Defines an enhancement sppot in another object'. Here is the process i followed. I have created a enhancement spot in my package zkk_pkg in se80 and activ

  • Problems with BPM

    Hi, I am working in the following scenery: File->BPM->File.  For this scenery I am using the document http://weblogs.sdn.sap.com/pub/wlg/1822. [original link is broken] [original link is broken] [original link is broken] [original link is broken] [or

  • WEBLOGIC 5.1SP9 : ListenThread Connection rejected: 'Login timed out after 5000 msec.

    I'm running WL Express 5.1SP9 on a NT 4 server, Oracle 8.1.7 and an j2EE application from an editor. With the previous version of the application i wasn't having any problem, since I installed the new version in the same environnement, I'm getting th