How to generate parent node id and child node id from xmltable ?

Hi All, Below is a part of the xml data which is loaded in a table. I need help in generating the parent id for compensationReference say for the first occurence of compensationReference node it should be 1 and for subsequent nodes 2,3,4,.. Can some one please help me in getting this done using a sql query ??                                                         VID                          9100000013890660                                                        ACN                          5924112896                                                                          VID                          9100000013890678                                                              ACN                          5924112896                                                                                VID                            9100000013890611                                                                    ACN                            5924112896                                                                                        VID                                9100000013890645                                                                          ACN                                  5924112896                              Thanks, Bhaskar

that doesn't look like XML data to me.
Please post some correct example data and expected output as described in the FAQ: Re: 2. How do I ask a question on the forums?

Similar Messages

  • How can I change game centre and iCloud account information from previous owner of my iPad?

    How can I change game centre and iCloud account information from previous owner to me?

    You can't do it on your own. The previous owner has to erase the device for you. You would need his Apple ID and password in order to delete his iCloud account. This is due to the Activation Lock in iOS 7 - assuming that your iPad is running iOS 7.
    Contact the owner and ask home to erase it remotely using iCloud, or return the device and ask for your money back. If you can't contact the pervious owner, you will have a useless iPad on your hands.
    Read this for more information. This is what you need the previous owner to do.
    What to do before selling or giving away your iPhone, iPad, or iPod ...

  • TS1702 How can I transfer a game and game files (Minecraft) from my iphone to my grandson's new ipod touch.  Is there a way to do it without having to restore his ipod from my iphone?

    How can I transfer a game and game files (Minecraft) from my iphone to my grandson's new ipod touch.  Do I have to restore the ipod from my iphone or can I just transfer this one game (plus files).

    Back your device via icloud and restore on other ipod via icloud.

  • How to get Parent nodes and corresponding child nodes in BI Hierarchy

    Hi all,
    I have a standard function module 'RSNDI_SHIE_STRUCTURE_GET3'  to get child node if i pass parent node. But I need child nodes along with the provided parent node as I use this in a loop in BI.
    Thanks

    Could any one help me in this regards .
    Thanks in advance
    Regards,
    sri

  • DMEE : how to make parent node disappear when child node is empty

    Hi Friends ,
    Currently i am working on DMEE , I have a problem . When Child node is empty I donot want the parent node to appear in the tree.Here I am uisng a field via exit function module for childnode. so not a fpay* strucutre field to write a condition.
    Is there any other way for this ?
    Please help.
    Komaravolu

    I'm not sure if this can be done in DMEE tree, but there is BADI DMEE_BADI_01 that can be implemented to perform any kind of postprocessing right before the file is created. I used it, for example, to replace separators with tabs. I believe this can also be used to eliminate the unneeded nodes.

  • Filteredtreemodel, how to hide parent nodes if no children

    hi. i have surfed and read a lot of posts and topics here regarding filteredtreemodel. some i found hard to understand so i chose to use NiceGuy1's code from long ago since it's the easiest to understand.
    package test;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.tree.DefaultTreeModel;
    import javax.swing.tree.TreeNode;
    import java.util.ArrayList;
    import java.util.Enumeration;
    public class FilteredTreeModel extends DefaultTreeModel {
        // this hashmap gets the list of pdf files and the filter status
        private String filterText;
        private DefaultMutableTreeNode orig_root;
        public FilteredTreeModel(DefaultMutableTreeNode root) {
            super(root);
            orig_root = root;
        public void setFilterText(String s) {
            this.filterText = s;
            reload();
        public String getFilterText() {
            return this.filterText;
        @Override
        public Object getChild(Object parent, int index) {
            return getFilteredChildren(parent).get(index);
        @Override
        public int getChildCount(Object parent) {
            return getFilteredChildCount(parent);
        @Override
        public int getIndexOfChild(Object parent, Object child) {
            return getFilteredChildren(parent).indexOf(child);
        private int getFilteredChildCount(Object parent) {
            return getFilteredChildren(parent).size();
        private ArrayList<TreeNode> getFilteredChildren(Object parent) {
            ArrayList<TreeNode> filteredChildren = new ArrayList<TreeNode>();
            DefaultMutableTreeNode parentNode = null;
            parentNode = (DefaultMutableTreeNode)parent;
            for (Enumeration e=parentNode.children(); e.hasMoreElements();) {
                DefaultMutableTreeNode nextNode = (DefaultMutableTreeNode) e.nextElement();
                DefaultMutableTreeNode dummy = null;
                  if (nextNode.children().hasMoreElements()) {
                      filteredChildren.add(nextNode);
                } else {
                    // if node is leaf node
                    if (filterText == null ) {
                        // add right away if no filter
                        filteredChildren.add(nextNode);
                    } else {
                        // if filter matches this leaf node, add it. if not, how to check if
                        // parent nodes have empty children and remove it.
            return filteredChildren;
    }i havent had luck the whole day trying to make this work. it seemed that once the filteredChildren.add() is called, it gets rendered to the treecellrenreder right away so if i wnat to remove the parents (in case it has no children based on the filter),the parent nodes will stay put in the jtree. any workaround? or ideas? i dont want to use a different defaulttreemodel for this. i want to avoid that because i have lots of nodes in my jtree.

    Looks like you need this:
    for (Enumeration e=parentNode.getFilteredChildren(); e.hasMoreElements();) Edit: okay, that was just a quick guess. Actually you're going to get into trouble if you try to recursively suppress nodes with no children. First you suppress all the leaf nodes (because they naturally don't have any children). Then you suppress all of their parents, because now they don't have any unsuppressed children. Then you suppress all of the parents' parents, because now they don't have any unsuppressed children... and so on until you only have the root left. So you need to refine that requirement.
    But I get what you're saying. I had to do a similar thing, only I didn't use a FilteredTreeModel, I just built the TreeModel based on a selection from another tree. It's ridiculously hard to do when you don't get the nodes in order from the database, too, but that's a different problem.

  • How to make parent node JCheckbox

    How can I make the parent node in
    http://www.java2s.com/Code/Java/Swing-JFC/CheckBoxNodeTreeSample.htm
    to a checkbox.
    Any help is greatly appreciated.
    Regards,
    Anees

    See my example here: [http://forums.sun.com/thread.jspa?threadID=5180008&messageID=9699576]
    If you have a specific problem post a Short, Self Contained, Compilable and Executable, Example Program (SSCCE) that demonstrates the problem.

  • How to remove parent nodes in an output XML?

    Hi! I'm having a problem as to removing a parent node in an xml output. The scenario goes like this, I have a source IDOC and two target External Definitions. When I have declared the two External Definitions, XI inserted a structure in the output xml as shown below:
    Messages        (1..1)
              Message1       (1..1)
                 Message1Header    (0..1)
              Message2       (1..1)
                 Message2Header    (0..1)
    Is there anyway to have an output that looks just like this (without their respective parent nodes)?
    a.) Message1Header  (0..1)
    or
    b.) Message2Header  (0..1)
    Please help
    Regards,
    Mark

    Since you have two External Definitions and you are using both in on mapping hence your scenario becomes 1:N mapping scenario and this is the reason you are getting the additional nodes in your mapping.
    so if your requirement is 1:N then whatever you are getting is correct, you can refer the below mentioned blog for help on this, But if you don't want the additonal nodes then you have to create TWO different mappings and used the external definitions seprately in each mapping.
    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
    I hope it helps...

  • How to generate an output waveform and a pulse

    I want to
    generate a waveform and a pulse with LabView and PCI-MIO card.
    The waveform must be a sine with a frequency of 1 Hz and sampling frequency 10
    Hz. The pulse must be a square signal between 0 and 5 V with frequency of 10
    Hz. Every point of the sine waveform must be synchronized with every point of
    the pulse. The pulse is used as a trigger for a digital camera.
    I have been looking at the DAQmx examples but I haven't succeeded.
    Any comments on the best way of doing this?

    Hi Raimon,
    Look at attached VI,
    Here i am first building 2 waveforms sine and square of 10 hz, 0-5V and generating them on ywo analog output channels.
    You can use the logic of creating the two singals and for AO generation that i have shown in this VI.
    If you want AO to be regenerative/non regenerative, find the relevant  example AO generation VI's, modify it to generate functions generated by my VI and go ahead.
    regards
    Dev
    Attachments:
    generate multiple voltage.vi ‏112 KB

  • How to get the Node Value from XmlValue result?

    Hi ,
    I am not able to get the Node Value from the result. In my XQuery im selecting till a Node, if i change my query as
    collection('PhoneBook')/phone_book/contact_person/address/string()", qc);
    im getting the node value, but here the problem is its not a Node so i cannot get the Node name.
    So how can i get the Node Name and Node value together?
    any help please ????
    XML :
    <?xml version="1.0" encoding="UTF-8"?>
    <phone_book>
    <contact_person>
    <name>
    <first_name>Michael</first_name>
    <second_name>Harrison</second_name>
    </name>
    <address city="yyyyy" pincode="600017" state="xxxxx">
    176 Ganesan street, Janakinagar, alwarthirunagar
    </address>
    </contact_person>
    <phone_number type="mobile">9881952233</phone_number>
    <phone_number type="home">044-24861311</phone_number>
    <phone_number type="office">080-12651174</phone_number>
    </phone_book>
    Code:
    XmlQueryContext qc = manager.createQueryContext();
    XmlResults rs = manager.query
    ("collection('PhoneBook')/phone_book/contact_person/address", qc);
    while(rs.hasNext()){
    XmlValue val = rs.next();
    System.out.println(val.getNodeName() + " = [ " + val.getNodeValue() + " ] ");
    Output
    address = [  ]

    You are right, this seemed un-intuitive to me too, but I finally understood how it's done.
    The "value" of a node is actually the total amount of text that is not contained in any of the node's child nodes (if any). So a node with child nodes can still have text value.
    To get the 'value' of an element node, you must therefore concatenate the values of all children of type "XmlValue::TEXT_NODE", of that node. Try it.
    In your example, the <address> node has no child elements, my guess is that BDB XML stores the address string "176 Ganesan street, Janakinagar, alwarthirunagar" inside a child node of <address> node (of type XmlValue::TEXT_NODE) because you wrote the string on a separate line.

  • How to Generate a Report Based on User's Parameters from Web Site

    Hi, all,
    I am trying to use Oracle Developer 6.0 Report Builder to generate report based on what user types in from the web site. Since I am a novice, I am wondering if anybody would help me with the following questions:
    1. How can I create a report based on user's parameters?
    Assuming that I have 2 text fields EMPNO and DEPT on the web site, after user types in some value, how can I pass these parameters into my query, can I do something like:
    select ENAME, JOB, EADDRESS from EMP
    where EMPNO =
    some_reference_of_parameters_from_user
    or is there any other way to achieve this functionality?
    2. How can I pass a PDF format report back to user after the report is generated?
    Any help is greately appreciated!!
    Best regards.
    Judy

    Hello,
    In the Report Builder, create two user parameters, and set the parameter name, datatype, width, and default values to what you want. Modify the query and put in a where clause (e.g., where deptno = :p_deptno). When you request the report with PARAMFORM=YES on the URL, it'll generate a default parameter form in HTML and allow the user to enter in the selected parameter values. Also set DESTYPE=CACHE&DESFORMAT=PDF on the URL to get the output back as PDF.
    If you upgrade to Reports 6i, you can customize the default HTML parameter form.
    Regards,
    The Oracle Reports Team --skw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to get both, the ResultSet and Output (return value) from Oracle Stored Procedure

    Hi! I am doing a conversion from MSSQL to Oracle with C++ and MFC ODBC. Any comment is appreciated!! I have Oracle 8i and Oracle ODBC 8.1.6 installed.
    My question is how to retrieve the return value AND ALSO the resultSet at the same time by using Oracle function without modifying my souce codes (except puttting mypackage. string infron of my procedure name, see below).
    -- My source code in C++ with MSSQL ....
    sqlStr.Format("{? = call ListOfCustomers(%i)}", nNameID);
    RcOpen = CustomerList.Open(CRecordset::forwardOnly, sqlStr, CRecordset::readOnly );
    Where CustoemrList is a Crecordset object...
    IN DoFieldExchange(CFieldExchange* pFX) I have ...
    //{{AFX_FIELD_MAP(CQOSDB_Group)
    pFX->SetFieldType(CFieldExchange::outputColumn);
    RFX_Long(pFX, T("Name"), mCustoemrName);
    //}}AFX_FIELD_MAP
    // output parameter
    pFX->SetFieldType( CFieldExchange::outputParam );
    RFX_Int( pFX, T("IndexCount"), mCustomerNumber);
    -- m_CustomerNumber is where i store the return value!!!
    -- In Oracle Version, i have similar codes with ...
    sqlStr.Format("{? = call mypackage.ListOfCustomers(%i)}", nNameID);
    RcOpen = CustomerList.Open(CRecordset::forwardOnly, sqlStr, CRecordset::readOnly );
    -- I have oracle package/Body codes as following...
    create or replace package mypackage
    as
    type group_rct is ref cursor;
    Function listgroups(
    nameID NUMBER ,
    RC1 IN OUT Mypackage.group_rct ) return int;
    end;
    Create or replace package body mypackage
    as
    Function listgroups(
    NameID NUMBER ,
    RC1 IN OUT Mypackage.group_rct )return int
    IS
    BEGIN
    OPEN RC1 FOR SELECT Name
    from Customer
    WHERE ID = NameIDEND ListGroups;
    END
    return 7;
    END listgroups;
    END MyPackage;
    Ive simplified my codes a bit....
    null

    yes, it is exactly what i want to do and I am using Oracle ODBC driver.
    I tried using procedure with 1 OUT var fo numeric value and the other IN OUT ref cursor var instead of function, but error occurs when I called it from the application. It give me a memory ecxception error!!
    sqlStr.Format("{? = call ListOfCustomers(%i)}", nNameID);
    RcOpen = CustomerList.Open(CRecordset::forwardOnly, sqlStr, CRecordset::readOnly );
    it seems to me that the ? marker var is making all the trouble... can you please give me any more comment on this?? thanks!
    null

  • How do I move all photos and catalog (PE 6)  from local computer drive to network server drive?

    I'm using PE 6. I have about 40 GB of photos all organized and cataloged on my local PC's hard drive. I have just installed a home server that is networked and want to move/migrate all the photos and catalog information/organization from my local PC drive to the home server's hard drive. Basically, just moving everything to a new drive. I then need to point PE 6 to this new location for the photos and catalog information. All advice on how to do this would be appreciated?

    I just got done doing this and I'm not so sure I'd recommend it.
    #1 reason: The #$%%#$ Organizer has REAL PROBLEMS figuring out network path names. It has this really nasty habit of thinking, say, \\homeserv\photos, \\Homeserv\Photos, and \\HOMESERV\PHOTOS are DIFFERENT paths. And depending on how you use it to navigate, or drag and drop files onto it, or teach it to watch a folder on a network drive or whatever, it uses variants on these kinds of path names. This leads to problems like duplicate imports that are really the same file.
    What a ***.
    You MIGHT have better luck if you use a mapped drive letter to make this work. Sad. The rules for writing WinApps to NOT NEED mapped drive letters have been common knowledge to developers for a decade. Just not Adobe developers, apparently. Beyond sad. Pathetic.

  • I just got the 4s and my computer broke so I don't have a way to sync my new phone how do I get my contacts and games on it from old iPhone?

    Help how do I sync my new 4s when I have no comPuter inorder to get contacts apps and games onto it

    Find a computer with iTunes 10.5 and create a backup from the old phone and then restore from backup on the 4s.

  • How to stop scheduled ship date and scheduled arrival date from defaulting to sysdate

    Hello,
    We have a business scenario where we are deriving scheduled ship date and scheduled arrival date outside and then imported in the instance with the order. However we find that the scheduled ship date and scheduled arrival date are defaulting to sysdate. The atp flag is set to N for these items. I have checked the defaulting rules, there is no such defaulting rule set for scheduled ship date or arrival date ( screenshot attached) Please share your thoughts on how can I stop scheduled ship date and arrival date date from defaulting to sysdate ?
    Thanks
    Rajesh

    Hi
    Please visit following link. It may be useful.
    How to prevent auto default of schedule ship date in sales order form
    HTH
    sd

Maybe you are looking for

  • Low memory warning with Web Cam

    I've just installed a Web Cam pro on my wife's Sony laptop. The Creative Can Centre works OK and we can see the image but soon after the program starts a message comes up low memory. The lap top is running Vista. How to resolve this?

  • Safari unified search bar problem

    When I type in a search term in Safari's new unified space bar, the website I'm currently viewing is appended to the search.  This results in a bogus search.  For example, if I'm viewing the macdailynews.com website and type in a search, the search t

  • Flash Player update 10.3 unable to download and save flv files

    Hello, Since the Flash Player update to 10.3.183.10 it is no longer possible for me to download and save *.flv files. A file of only 2320 kb is saved along with a meta file of 1 kb. The 2320 kb file has a flv extension but the file will not play in a

  • Import issues with iPhoto 6.0.6 on PB G4

    Hi!  I'm running iPhoto 6.0.6 on a Powerbook G4.  I import .jpg images from a USB stick, or CD, or over a network and it *appears* the images are in iPhoto (they show up in the main window in a new film roll)  However, when I remove the stick or CD o

  • Macbook pro 2010 slow wireless with motorola surfboard sb901

    anyone using a motorola surfboard sb901? i recently purchased this cable modem / router combo (all in one) and seems like my internet has been lagging since. i've tried changing wireless channels, disable/changing wireless security settings, resettin