How can we display dynamic fields from a XML CLOB?

Jdeveloper Version : 11.1.1.4.0 (11g)
We are calling a database package.procedure from a page VO and it returns a result set. The result set is mainly a XML CLOB. Within XML CLOB, we have various sections which we need to parse and display those on JSF page. Couple of sections within XML are having dynamic fields which means the number of fields returned under that section may change depending upon data conditions. We need to find technical way of displaying those dynamic fields (field name and its data – both are part of XML).
Please suggest how can this be achieved.
Thanks

<?xml version="1.0" encoding="UTF-8" ?>
<nodes>
<node>
<category_id>3</category_id>
<parent_id>2</parent_id>
<name>Mobile</name>
<is_active>1</is_active>
<position>1</position>
<level>2</level>
<children>
<node name="Nokia" category_id="6" parent_id="3" is_active="1" position="1" level="3">
<node name="Nokia N79" category_id="7" parent_id="3" is_active="1" position="2" level="3" />
<node name="Nokia N95" category_id="7" parent_id="3" is_active="1" position="2" level="3" />
<node name="Nokia N97" category_id="7" parent_id="3" is_active="1" position="2" level="3" />
</node>
<node name="Samsung" category_id="7" parent_id="3" is_active="1" position="2" level="3">
</node>
</children>
</node>
<node>
<category_id>4</category_id>
<parent_id>2</parent_id>
<name>Laptop</name>
<is_active>1</is_active>
<position>2</position>
<level>2</level>
<children></children>
</node>
<node>
<category_id>5</category_id>
<parent_id>2</parent_id>
<name>Monitor</name>
<is_active>1</is_active>
<position>3</position>
<level>2</level>
<children></children>
</node>
<node>
<category_id>8</category_id>
<parent_id>2</parent_id>
<name>Camera</name>
<is_active>1</is_active>
<position>4</position>
<level>2</level>
<children></children>
</node>
</nodes>
Is this correct format to create dynamic menu?

Similar Messages

  • How can i display at  JTextArea from right to left

    how can i display at JTextArea from right to left?
    i try to write setAlignmentX(JTextArea.RIGHT_ALIGNMENT)
    but this not help,
    thanks for help.

    use this
    JTextArea.applyComponentOrientation(java.awt.ComponentOrientation.RIGHT_TO_LEFT);

  • How can I display an image from a shared-network folder?

    Hi
    Does anyone know how I can display images from within APEX that are found outside the database? What configuration have I missed?
    Within Windows-Internet-Explore I can access the following image using the below URLs, BUT I cannot access it from within APEX?
    What do I need to do so APEX can display theses images from our internal shared network folder?
    both these URLs work within Firefox (but on APEX):
    \\Saremote\UPDOWNFILES_DIR\polk_insight.gif
    file://///Saremote/UPDOWNFILES_DIR/polk_insight.GIF
    So within APEX I have created a "display as Text' Item that works with this "amazon image" syntax:
    {lessthan} IMG SRC= {doublequot} http://g-images.amazon.com/images/G/01/associates/navbar2000/logo-no-border(1).gif {doublequot} {greaterthan}
    BUT sadly not with my image:
    {lessthan} IMG SRC= {doublequot} file://///Saremote/UPDOWNFILES_DIR/polk_insight.GIF {doublequot} {greaterthan}
    Any ideas would be appreciated.
    Thanks
    Steve
    Edited by: [email protected] on Sep 12, 2008 8:30 AM
    Edited by: [email protected] on Sep 12, 2008 8:31 AM
    Edited by: [email protected] on Sep 12, 2008 8:32 AM
    Edited by: [email protected] on Sep 12, 2008 8:33 AM

    If you have a local html file, or open an image locally from the menu, then yes, it works, but with web pages that are served from a remote location (web server), security kicks in and prevents the web page from accessing local files (and files on a networked drive).
    you will either have to put the image on the web server and access it through http, or you can load it into the database/workspace images and access it that way.

  • How can I place two fields from one column side by side?

    Hello experts,
       I need your help: I have a column which has two different fields. One is Sales, the second is Sales Todate.
    My boss want me to get the difference btn them as well as the percentage. Now, here is my challenge: I can easily filter them but I want them to be side by side; but when I filter one appear on top of the other like below
    Sales                           
    Sales
    Sales
    Sales
    Sales
    SalesTodate
    SalesTodate
    SalesTodate
    SalesTodate
    SalesTodate
    However, I want them appearing like below:    that way, I can place the difference column beside them.
    Sales
    SalesTodate
    Sales
    SalesTodate
    Sales
    SalesTodate
    Sales
    SalesTodate
    Sales
    SalesTodate
    Any help will be appreciated..  I have tried a case statement, still the problem persist
    Chuck
    On the side: Does anyone know how to place the question in such a way when one answers I can mark correct or helpful, I am still not able to.. I hate it, when I place a question I go through create then discussion, is that the right way?

    Hi
    Just drag the column to measure label area in pivot table @ columns.
    So the table has to drag and drop to column area on the top so it will get display like
    Sales     SaleToDate
    And the measure label to row side drag and drop it
    sales      saletodate
    values     values
    Regards,
    VG

  • How can i transfer some fields from one table to another using a trigger

    hi,
    i have two tables;sales and accounts.i want in my accounts form to enter salesid which is then validated and if it exists in the sales table, some fields are copied to the accounts table automatically.how do i go about this.thanx

    hi,
    the code u gave me is not running.let me explain in
    detail.i have two tables;sales and accounts in my
    database (oracle 9i).each have a corresponding form
    in the developer window.these tables are linked using
    saleid.this id is entered and saved in the
    database.when the person is paying in the cash
    office,the saleid on an invoice form is entered on
    the accounts form.it is supposed to search the sales
    table and if the ids match,some records are extracted
    from the sales table to the accounts form instead of
    the accounts clerk entering the details all over
    again.these details will be used to generate a
    receipt an then the record on the accounts form is
    saved to the database.the contents of the two tables
    are:
    sales(saleid(pk),startno,endno,quantity,amount,saledat
    e)
    accounts(receiptno(pk),saleid,startno,endno,quantity,a
    mount).
    please advice and thanks very muchWhat does it mean "not running" ?
    Sure, it is running.
    Did you tested my example ?
    And it does exactly what you need.
    You didn't provided table structures and insert statements,
    that's why i showed you the method on 2 emp- tables.
    But it is exactly, what do you need.
    Change my emp_1 on your sales,
    and my emp_2 on your accounts,
    and compare the results.
    If you cannot directly copy and paste
    and say to your teacher / chief "My homework / task is ready"
    it doesn't mean, that the solution didn't provided ...

  • How can I display an Internal from a frame

    Hello,
    I have a frame application, inside the frame I have a jtable. when the users double click on a row from the table. I want to display an internalJFrame, which contain a tree with data on it. I try different combination with no luck. Below is the code where I am calling the internalJFrame and the internalJFrame code. Thank you for your help.
    if (e.getClickCount () == 2) {
    try {
    String tempID = jTable1.getValueAt(jTable1.getSelectedRow(), 0).toString();
    selectedID = Long.parseLong(tempID);
    }catch (NumberFormatException nfe) {
    hierarchicalPanel = new HierarchicalPanel(selectedID);
    hierarchicalPanel.setAddedToDesktop (true);
    desktop.add(hierarchicalPanel);
    hierarchicalPanel.setVisible(true);
    private HierarchalView hierarchalView;
    //tree stuff
    private DefaultMutableTreeNode root = null;
    private DefaultTreeModel treeModel;
    private CommRecord commRec;
    private InstalledComponent installedAComponent;
    private InstalledComponent installedZComponent;
    private static boolean addedToDesktop;
    /** Creates new form Hierarchical */
    public HierarchicalPanel(long sipID) {
    initComponents();
    hierarchalView = new HierarchalView();
    createNodes(sipID);
    createTree();
    * create a JTree
    public void createTree() {
    jTree1 = new JTree(treeModel);
    jTree1.putClientProperty("JTree.lineStyle", "Angled");
    jTree1.getSelectionModel()
    .setSelectionMode(TreeSelectionModel
    .DISCONTIGUOUS_TREE_SELECTION);
    jTree1.setOpaque(false);
    // tree.setCellRenderer(new AlphaRenderer());
    jTree1.expandRow(0);
    //this.llistenToTree(treeModel);
    //popup();
    //return tree;
    * Add nodes to model
    public void createNodes(long sipID){
    DefaultMutableTreeNode root = null;
    DefaultMutableTreeNode node = null;
    DefaultMutableTreeNode child = null;
    commRec = hierarchalView.getComRec(sipID);
    long aComponentID = commRec.getSiteAInstalledComponent().getId();
    long zComponentID = commRec.getSiteZInstalledComponent().getId();
    long comID = commRec.getId();
    //String desc = getSipData(sipID).getCustomerName();
    root = new DefaultMutableTreeNode("SIP ID" + sipID);
    treeModel = new DefaultTreeModel(root);
    node = new DefaultMutableTreeNode("Communication ID");
    root.add(node);
    child = new DefaultMutableTreeNode("A InstallComponent " + aComponentID );
    node.add(child);
    child = new DefaultMutableTreeNode("Z InstallComponent " + zComponentID );
    node.add(child);
    System.out.println("finish inside node********");
    /** This method is called from within the constructor to
    * initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is
    * always regenerated by the Form Editor.
    private void initComponents() {
    jPanel1 = new javax.swing.JPanel();
    jTree1 = new javax.swing.JTree();
    jPanel1.setLayout(new java.awt.BorderLayout());
    jPanel1.setMinimumSize(new java.awt.Dimension(5, 100));
    jPanel1.setPreferredSize(new java.awt.Dimension(5, 100));
    jTree1.setMaximumSize(new java.awt.Dimension(78, 50));
    jTree1.setMinimumSize(new java.awt.Dimension(80, 20));
    jTree1.setPreferredSize(new java.awt.Dimension(100, 50));
    jPanel1.add(jTree1, java.awt.BorderLayout.CENTER);
    getContentPane().add(jPanel1, java.awt.BorderLayout.NORTH);
    pack();
    * Called whenever the value of the selection changes.
    * @param e the event that characterizes the change.
    public void valueChanged(TreeSelectionEvent e) {
    /** Getter for property addedToDesktop.
    * @return Value of property addedToDesktop.
    public boolean isAddedToDesktop () {
    return addedToDesktop;
    /** Setter for property addedToDesktop.
    * @param addedToDesktop New value of property addedToDesktop.
    public void setAddedToDesktop (boolean addedToDesktop) {
    this.addedToDesktop = addedToDesktop;

    If you have a local html file, or open an image locally from the menu, then yes, it works, but with web pages that are served from a remote location (web server), security kicks in and prevents the web page from accessing local files (and files on a networked drive).
    you will either have to put the image on the web server and access it through http, or you can load it into the database/workspace images and access it that way.

  • How can I remove "Dynamic Pricer" from FireFox?

    FireFox has become infected with a nasty virus known as "Dynamic Pricer." I have successfully removed the virus from IE and Chrome, but I cannot seem to get it out of FireFox. I've reset the browser, deleted all history and the program, then downloaded again, but it persists.
    Please help! Does anyone know how to kill it once and for all? Any suggestions are appreciated.
    Troubleshooting information:
    Application Basics
    Name: Firefox
    Version: 34.0.5
    User Agent: Mozilla/5.0 (Windows NT 6.1; rv:34.0) Gecko/20100101 Firefox/34.0
    Multiprocess Windows: 0/1
    Crash Reports for the Last 3 Days
    All Crash Reports
    Extensions
    Name: Skype Click to Call
    Version: 6.11.0.13348
    Enabled: false
    ID: {82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}
    Graphics
    Adapter Description: Intel(R) HD Graphics Family
    Adapter Drivers: igdumdx32 igd10umd32 igd10umd32
    Adapter RAM: Unknown
    Device ID: 0x0126
    Direct2D Enabled: Blocked for your graphics driver version. Try updating your graphics driver to version 8.15.10.2342 or newer.
    DirectWrite Enabled: false (6.1.7601.17789)
    Driver Date: 12-16-2010
    Driver Version: 8.15.10.2266
    GPU #2 Active: false
    GPU Accelerated Windows: 0/1 Basic (OMTC) Blocked for your graphics driver version. Try updating your graphics driver to version 8.15.10.2342 or newer.
    Subsys ID: 04931028
    Vendor ID: 0x8086
    WebGL Renderer: Blocked for your graphics driver version. Try updating your graphics driver to version 8.15.10.2342 or newer.
    windowLayerManagerRemote: true
    AzureCanvasBackend: skia
    AzureContentBackend: cairo
    AzureFallbackCanvasBackend: cairo
    AzureSkiaAccelerated: 0
    Important Modified Preferences
    browser.cache.disk.capacity: 358400
    browser.cache.disk.smart_size.first_run: false
    browser.cache.frecency_experiment: 1
    browser.places.smartBookmarksVersion: 7
    browser.sessionstore.upgradeBackup.latestBuildID: 20141126041045
    browser.startup.homepage_override.buildID: 20141126041045
    browser.startup.homepage_override.mstone: 34.0.5
    dom.mozApps.used: true
    extensions.lastAppVersion: 34.0.5
    media.gmp-gmpopenh264.lastUpdate: 1417715835
    media.gmp-gmpopenh264.version: 1.1
    media.gmp-manager.lastCheck: 1417715835
    network.cookie.prefsMigrated: true
    places.history.expiration.transient_current_max_pages: 84959
    plugin.disable_full_page_plugin_for_types: application/pdf
    plugin.importedState: true
    privacy.sanitize.migrateFx3Prefs: true
    Important Locked Preferences
    JavaScript
    Incremental GC: true
    Accessibility
    Activated: false
    Prevent Accessibility: 0
    Library Versions
    NSPR
    Expected minimum version: 4.10.7
    Version in use: 4.10.7
    NSS
    Expected minimum version: 3.17.2 Basic ECC
    Version in use: 3.17.2 Basic ECC
    NSSSMIME
    Expected minimum version: 3.17.2 Basic ECC
    Version in use: 3.17.2 Basic ECC
    NSSSSL
    Expected minimum version: 3.17.2 Basic ECC
    Version in use: 3.17.2 Basic ECC
    NSSUTIL
    Expected minimum version: 3.17.2
    Version in use: 3.17.2
    Experimental Features
    ---------------------

    See this - http://malwaretips.com/blogs/dynamic-pricer-virus/

  • How can we delete value fields from the Table T237A?

    Dear All,
    We need to delete some value fields in CO-PA. We got a message that these value fileds are being used in the Table T237A.
    This table is related to key figure scheme.
    We have deleted in t.c. sm31 in the table/view  V_RS_T237A elements which were assigned to value fields to be deleted.
    But we still have a message value fields are being used. And after some searches we found out they are still being used in the table T237A.
    COuld you please, help us?
    Thank you in advance!
    Best regards,
    Kamila.

    Change the Table Control attributes such that user can only select a single record(row).
    <u>Tip to delete a selected record</u>
    1) write a module 'Mark' in the PAI as below
    PROCESS AFTER INPUT.
    MODULE cancel AT EXIT-COMMAND.
    LOOP WITH CONTROL table_view.
    MODULE read_table_control.
    FIELD flag MODULE mark ON INPUT.
    ENDLOOP.
    MODULE user_command_0100.
    2) Module Mark is below.
    MODULE mark INPUT.
    CHECK flag = 'X'.
    x = table_view-top_line + sy-stepl - 1.
    Delete itab INDEX x.
    ENDMODULE. " mark INPUT
    Table_view is the TableControl Name.
    'flag' is of type char(1) available in the Internal table which was assigned to the select option in the table control.
    <u>award if uesful</u>
    Regards,
    Sudheer

  • Numbers '09: How can I display selected data from one cell in another cell?

    Hello.
    I have a Numbers document that contains a table that looks a little like this:
    Amount;Code
    Amount
    Code
    10;12B
    12;8A
    14;16E
    16;3C
    18;5A
    I'd like to have Numbers 09 automatically separate the "Amount;Code" data in the coloumns to the right.
    Do you know the right function and/or equation to make this happen? Any help would be greatfully appreciated.
    Cameron168

    Formula for Amount:
    =LEFT(A2,FIND(";",A2,1)-1)
    Formula for Code
    =RIGHT(A2,LEN(A2)-FIND(";",A2,1))
    I just modified the equation for separting first and last names from:
    http://www.bluemoosetech.com/microsoft-excel-functions.php?jid=32
    You will have to put in your correct cell names
    Tested it and it works!
    Have fun!

  • How can I display a slideshow from my Macbook pro on a projector using a nine pin connection?

    I have prepared a slideshow that I would like to show to a group of people using a projector and screen.  I know the projector uses a nine pin connection but I don't have anything like that on my MAC.  Is there a connecting wire that I could purchase that would use the USB port, or any other and then fit the nine pin?
    My Macbook Pro was purchased in the summer of 2012.
    Thank you.

    Dianita,
    Normally you would need a mini dvi to VGA adapter. VGA is 15 pin connection, serial is 9 pin, are you certain about the pin count?
    Check the projector pin count, as this would rather unusual. If you discover that you need a 15 pin, you can use the above mentioned adapter plugged into a standard VGA cable. Available at Apple store, or do a search online.

  • PLZ HElp ITS urgent!!!!!!!!!!!!!!!!      How can i display aquantity field

    Hi all,
    i am getting value in format  '123-'
    i need to display in format '-123'
    plz help me.
    Thanks ,
    Gaurav

    Hi,
    Check this
    report  ztest_46.
    data: val type i value '154633-'.
    write (8) val using edit mask '-________'.
    aRs

  • How to delte empty segments/fields from input XML graphical mapping

    Hi
      I would like to delete segments which don have any values in their child segments in graphocal mapping?
    How should i use createif and existsmapping functions for this?
    Edited by: Rajesh on Jun 15, 2009 8:42 PM

    I would like to delete segments which don have any values in their child segments in graphocal mapping?
    How should i use createif and existsmapping functions for this?
    If you want to check if a value if present in a particular node or not then I dont think exists function will help you....exists function will only check if the node is existing or not.....
    <SRC>
    <Node1>
    <Field1>SAP</Field1>
    </Node1>
    <Node2>
    <Field2></<Field2>
    </Node2>
    </SRC>
    If above is your structure on which you want to implement the logic..then as per your req you dont need to have the Node2 as the field(s) within it is not having any value....then you need to implement the below logic:
    Field
                             ----------> equalS ----> Not ---> If...then / createIf ----> Target
    Constant(keep it blank)
    Regards,
    Abhishek.

  • How can we insert a field when it is null and not present in database?

    I am working on a report in CR XI..i have strucked ata point where i am unable to find solution..my report has fields like Financial supply and physical supply..as a froup...but both are not displaying on all pages as there are no values to be displayed in them..even though how can i display both fields in all pages ..no matter what the figures are but i need these both fields to be displayed..plz help me out?

    Â Â Â Regards
    Â Â Â Sunil
    I have tried ur formula but unable to get the solution...
    as there are already the same fields with existing records..all i want is how to get the field where the values doesnt exist....i.e..fin supply and phy supply exists in one zone and doesnt have values in other zone...so huv to insist the physical field into the table?

  • HOW CAN I EXECUTE DINAMIC SENTENCES FROM FORMS

    HOW CAN I EXECUTE DYNAMIC SENTENCES FROM FORMS.
    Ex.
    I would like to execute this commands from table SENTENCES
    COL1
    set_item_property (item1, enabled , property_true )
    set_item_property (item2, enabled , property_true )
    set_item_property (item3, enabled , property_false )
    Regards
    Message was edited by:
    jcruizcarrera
    Message was edited by:
    jcruizcarrera

    ... but you could imagine a sort of workaround...
    PROCEDURE Set_Item
        PC$Item     In Varchar2
       ,PN$Property In Number
       ,PC$Value    In Varchar2
    ) IS
    BEGIN
       Set_Item_Property( PC$Item, PN$Property, PC$Value ) ;
    END;That you can call like this:
      Set_Item( 'BL.BUTTON', LABEL, 'Hello' ) ;Francois

  • How can we prevent a user from entering a value in Parameter Field?

    how can we prevent a user from entering a value in Parameter Field and Select-options Field?

    make it invisible, make it inactive, make it display only.
    if the field is not there or not to be seen the user WILL have problems inputting data.
    BUT once the field is there you can NOT prevent that the user fills it with data.
    all you can do is on PAI check if the data the user inputted was good or bad, and clear his inputs, but you can NOT prevent him inputting something.

Maybe you are looking for

  • What are the different types of Wage types for Indian Payroll...??

    Dear Frnds, What are the different types of Wage types for Indian Payroll that we have to configure it...?? and please list wage types that we have to configure it for different types of TAX and Allowances in India payroll. And also please list Info

  • Translation Problem in Smartforms.

    Dear Experts,                       Facing a problem with the translations of the smart forms into the diff languages. I have maintained the translations based upon the condition like below. If Spras = 'E'. (English) Text = 'Order' else. if spras = '

  • Production Quantity  should trigger Maintenance Order -reg

    Hi, As of now we are using maintenance scheduling for PM work orders for the maintenance of equippments . We create maintenance plans and schedule them  and a sof now as per the schedule every 4 months once we are getting PM workorder and through tha

  • Message editor for compsoing mail messages

    Is there a way to make Pages '08 or MS Word an editor when composing messages in Mail? (Such as we find in Outlook, option to use MS Word as an editor?) Thanks much.

  • TS3367 When i try to open the app???

    it states: "There was a problem with Facetime. You need to quit and open Facetime again." but I havent been able to open the app since i first purchased it on the app store . =( My webcam turns on perfectly wheni  user the photo booths so idk