Problem in adding a new element having attribute & many children for XML(jd

I m creating a new element <row id="1" > & many childrens & similar new elements with increment id are created.
And this is added to a tag 'data'
But after creating when i m iterating thru' the elements of the node 'data', for the new elements which i have created, if i try to set a new value for any of the chidren of 'row' tag, the value is getting set for all other newly created elements

Let's see how you're doing this... got any code?

Similar Messages

  • Problem in adding the new column in VO : ADF

    Hi,
    I am using jdev 10.1.3.2 with ADF.
    I added a new column in a table in the database. In my ADF application, I right clicked on the entity object of the changed table, and selected ‘Synchronize with DB’ which added the new column in the entity object also.
    I had a jsp which uses this view object’s (VO). I had to change the VO also to add this new column.
    After all this, in the jsp page, I dragged and dropped this new column as an input text field.
    But while running this page, the field is empty. Also when I drag and drop it, this field doesn’t have the ‘id’ attribute.
    Below is the code. Please let me know how I can fix this issue.
    <af:inputText value="#{bindings.RebillNumber.inputValue}"
    label="#{bindings.RebillNumber.label}"
    required="#{bindings.RebillNumber.mandatory}"
    columns="#{bindings.RebillNumber.displayWidth}">
    <af:validator binding="#{bindings.RebillNumber.validator}"/>
    </af:inputText>
    Thanks,
    Venki

    Hi Venki,
    Please check if the object on the page is bound to the same iterator as the other components. Sometimes dragging and dropping new attributes makes JDev create a new iterator, and the two iterators will not be in sync.
    You can check this in the pageDef file and correct any strange things you may find.
    Jeroen van Veldhuizen

  • .xml get  disformatted after adding a new Element

    Dear friends!
    I have a xml file when i add a new element to this its formatting
    get destroyrd. Plz help me to keep them in proper shape.
    before adding:
    <person>
    <name>xyz</name>
    </person>
    after adding a new name element:
    <person><name>xyz</name> <name>new 1</name><person>

    ok, so using JAXP (which is embedded in JDK 1.4 so if you use this JDK no need to add anything on your classpath).
    0. few imports
    import org.w3c.dom.*;
    import javax.xml.parsers.*;
    import javax.xml.transform.*;
    import javax.xml.transform.dom.*;
    import javax.xml.transform.stream.*;1.load the XML file in a DOM:
    Document doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse("c:/data/myxmlfile.xml");2. manipulate the DOM, see:
    http://java.sun.com/webservices/docs/1.0/tutorial/doc/JAXPDOM7.html#65002
    3. save the DOM:
    Transformer transformer = TransformerFactory.newInstance().newTransformer();
    transformer.setOutputProperty(OutputKeys.INDENT, "yes");
    transformer.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "1");
    transformer.transform(new DOMSource(doc), new StreamResult(new FileOutputStream("c:/data/myxmlfile.xml")));hope it helps.

  • Problem with adding a new InfoProvider in Report Designer

    Hey experts,
    I have a problem to add a new Infoprovider in Report Designer. I get the following message:
    Query consists variables. Please use a query view (variables are filled).
    Can anyone tell me what the problem is.
    Thanks in advance.
    Best Regards
    Ali

    Hi Ali,
    Note 931838 describes this issue.
    Best regards,
    Janine

  • Problem in adding a new business partner

    hi all
               iam getting an error like "Bank account is missing",when i add a new business partner..i think iam missing any mandatory field..can anybody help me..i have posted my add BP coding in the last...
    <?xml version="1.0" encoding="utf-8" ?>
    - <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
    - <env:Body>
    - <env:Fault>
    - <env:Code>
      <env:Value>env:Receiver</env:Value>
    - <env:Subcode>
      <env:Value>-5002</env:Value>
      </env:Subcode>
      </env:Code>
    - <env:Reason>
      <env:Text xml:lang="en">Bank account is missing</env:Text>
      </env:Reason>
    - <env:Detail>
      <Object>2</Object>
      <ObjectIndex>1</ObjectIndex>
      <Command>AddObject</Command>
      <SessionID>EE10Cu91-F252-CB47-58A6-9929L682316F</SessionID>
      </env:Detail>
      </env:Fault>
      </env:Body>
      </env:Envelope>
    the coding for adding a new business partner is,,
    <WebMethod()> Public Function QueryBP(ByVal SessionID As String, ByVal CardCode As String, ByVal CardName As String) As Xml.XmlDocument
            Dim DISnode As SBODI_Server.Node
            Dim strSOAPans, scmd As String
            Dim xmlDoc As Xml.XmlDocument
            xmlDoc = New Xml.XmlDocument
            DISnode = New SBODI_Server.Node
            sCmd = "<?xml version=""1.0"" encoding=""UTF-16""?> "
            sCmd += "<env:Envelope xmlns:env=""http://schemas.xmlsoap.org/soap/envelope/""> "
            sCmd += " <env:Header> "
            sCmd += "<SessionID>" & CStr(SessionID) & "</SessionID>"
            sCmd += " </env:Header> "
            sCmd += " <env:Body> "
            sCmd += "<dis:AddObject xmlns:dis=""http://www.sap.com/SBO/DIS"" > "
            sCmd += "<BOM>"
            sCmd += "<BO>"
            sCmd += "<AdmInfo>"
            scmd += "<Object>oBusinessPartners</Object> "
            scmd += "</AdmInfo> "
            scmd += "<QueryParams>"
            scmd += "<CardCode>" & CStr(CardCode) & "</CardCode>"
            scmd += "</QueryParams>"
            scmd += "<BusinessPartners>"
            scmd += "<row>"
            scmd += "<CardCode>" & CStr(CardCode) & "</CardCode>"
            scmd += "<CardName>" & CStr(CardName) & "</CardName>"
            scmd += "</row>"
            scmd += "</BusinessPartners>"
            sCmd += "</BO> "
            sCmd += "</BOM> "
            sCmd += "</dis:AddObject> "
            sCmd += " </env:Body> "
            sCmd += "</env:Envelope> "
            strSOAPans = DISnode.Interact(scmd)
            xmlDoc.LoadXml(strSOAPans)
            Return (RemoveEnv(xmlDoc))
        End Function

    Hi michael,
                       Even if i declare like below it's showing the bank account is missing..
    scmd += "<BusinessPartners>"
            scmd += "<row>"
            scmd += "<CardCode>" & CStr(CardCode) & "</CardCode>"
            scmd += "<CardName>" & CStr(CardName) & "</CardName>"
            scmd += "<BankCountry> </BankCountry>"
            scmd += "</row>"
            scmd += "</BusinessPartners>"

  • Adding a new field to the Address Data for a business partner

    Hi Experts,
    I am trying to add a new custom field to the address data (all structures and tables) that is linked to a business partner on SAP CRM via EEWB. Structure is the address structure wthin BUS_EI_EXTERN. Table is BUT020. I have been told that it is not possible as there is no Business Object that allows this. When doing an EEWB, the only business object is BUPA, which when selected, adds the new custom field to BUT000. I would like the field to be added to BUT020 (Address Table). This leads me to believe that there is no standard way of doing this, which ultimatley means that it would need to be done manually. Please help me with this predicament.
    Regards
    Yusuf

    The search help exit allows you to modify functionality of search help. If you add a new field to the
    parameter list that is not contained on the selection method you can manually populate it within the search
    help exit.
    This  would be performed within the u2018STEP DISPu2019 section. Once within this section all search help
    data has been retrieved and is stored in table RECORD_TAB (record_tab-string) as one long string value.
    Therefore you need to read table SHLP in-order to locate position of value within string.
    Example:
    To find position of personnel number (PERNR) within elemenory search
    help M_PREMN you would use the following code:
    Loop at record_tab.
         read table shlp-fielddescr into wa_shlp
                                       with key tabname   = 'M_PREMN'
                                                fieldname = 'PERNR'.
    You could then use this information in the following way, for
    example, to find a persons organisation unit:
          select  orgeh endda
            up to 1 rows
            from pa0001
            into (ld_orgeh,ld_endda)
           where pernr eq record_tab-string+wa_shlp-offset(8)
                                                      u201Cpernr length is 8
           order by endda descending.
          endselect.
          select single orgtx
            from t527x
            into ld_orgtxt
           where orgeh eq ld_orgeh and
                 sprsl eq sy-langu and
               ( endda ge sy-datum and
                 begda le sy-datum ).
    If you have added a new field to the end of the parameters list
    the next step is to populate it by adding this data to the end of
    the record_tab string:
      concatenate record_tab-string ld_orgtxt into record_tab-string.
      modify record_tab.
    endloop.

  • HT5622 Why does it send me A billing information when i added a new billing info and charged me for what i had already paid?

    It charged me for what i had purchased like 5 months ago just because i added a new billing info.

    The only way is to contact them and find out
    Contact iTunes

  • New line markers in template preparing for XML import

    How can I put new line markers (called static texts), in a template, preparing it for XML import, so that I get one line per object?
    I have put normal TAB characters as "static texts" as the InDesign help file shows, between the tagged placeholder texts. But all texts come out on one line when I enable the white space in the template to be kept when importing.
    See a longer description from me: http://forums.adobe.com/thread/788685?tstart=0
    Best regards,
    Andreas

    Are you sure, that the nl characters are deleted?
    They are usually not shown in the XML display.
    You can also use an adapter module instead of a Java mapping. So you can do a split in mapping, but the conversion to the flat file in the adapter module. If you have already a Java mapping for this purpose, you can easily create an adapter module based on that Java code.
    Regards
    Stefan

  • Problem with adding a new row in JTable

    Hi,
    I've created a JTable using DefaultTableModel with DefaultTableModel(Object[][] obj,Object[] col) constructor.I've written actionListener for a JButton which should add new row to the tablemodel.Now, the listener adds the row to the model.But its throwing an ArrayOutofBoundsException and the added row is not visible unless I click on any column of the table.
    Kindly help me to resolve this problem
    TIA
    Regards
    Gopi

    Thanks a lot for the reply. Here is the complete code
    TableImpl.java
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.table.*;
    import java.util.Vector;
    public class TableImpl extends JFrame {
    DefaultTableModel dataModel;     // TableModel Variable
    /* Constructor to add table and button to the frame     */
    TableImpl() {
              getContentPane().setLayout(null);
              setSize(800,600);
              myModel();
              final JTable table = new JTable(dataModel);
              JScrollPane scrollpane = new JScrollPane(table);
              getContentPane().add(scrollpane);
              scrollpane.setBounds(10,10,700,300);
              TableColumn tcCol = table.getColumnModel().getColumn(1);
              /* Adding ComboBox to the CellEditor of Column 2 of table     */
              JComboBox jcbComboBox = new JComboBox();
              final ReturnVector vctDBAccess = new ReturnVector();
              jcbComboBox.addItem(vctDBAccess.vctGetOidList().elementAt(0).toString());
              jcbComboBox.addItem(vctDBAccess.vctGetOidList().elementAt(2).toString());
              jcbComboBox.addItem(vctDBAccess.vctGetOidList().elementAt(4).toString());
              tcCol.setCellEditor(new DefaultCellEditor(jcbComboBox));
              /*     Adding Listener for Table      */
              dataModel.addTableModelListener(new TableModelListener() {
                   public void tableChanged(TableModelEvent e) {
              /* Columns Manipulation */
                        if(dataModel.getColumnName(e.getColumn()).equals("Second")) {
                        int iRow = e.getFirstRow();
                        int iColumn = e.getColumn();
                        String strColName = dataModel.getColumnName(iColumn);
                        String strData = (String)dataModel.getValueAt(iRow,iColumn);
                        String strNextColumn = dataModel.getColumnName(iColumn+1);
                        dataModel.setValueAt(vctDBAccess.vctGetOidList().elementAt(vctDBAccess.iGetIndex(strData)+1),iRow,iColumn+1);
              /* Adding button to Frame     */
              JButton jbInsert = new JButton("Insert");
              /* Adding new row to the Tablemodel -- Probelm is here     */
              jbInsert.addActionListener(new ActionListener(){
              public void actionPerformed(ActionEvent e){
                        try {
                   Object[] nrow = {"what", "ever", "you"};
                   dataModel.addRow(nrow);
                   }catch(Exception ex) {
                   System.out.println("Exception at adding row = " + ex);
    getContentPane().add(jbInsert);
    jbInsert.setBounds(100,350,100,20);
    addWindowListener(new WindowAdapter() {
              public void windowClosing(WindowEvent e) {
                   System.exit(0);
         /* Method to initialise new tablemodel     */
         public void myModel() {
              Object[][] data = { {new Integer(10),"two","three"},
                                                 {new Integer(5),"two","three"},
                                                 {new Integer(4),"two","three"},
              String[] col = { "First", "Second", "Third"};
              dataModel = new DefaultTableModel(data,col);
    public static void main(String arg[]) {
              TableImpl ct = new TableImpl();
              ct.setVisible(true);
    /* Class that returns a Vector of String for populating ComboBox entries and
              for getting the index of a particular element of the vector          */
    class ReturnVector {
                   Vector vctOidName=null;
                   ReturnVector() {
                        this.vctOidName = new Vector();
                        vAddOidList();
                   public void vAddOidList() {
                        String[] dbResult = {      "system", "1.3.6.1.2.1.1" ,
                                                      "interface", "1.3.6.1.2.1.2" ,
                                                      "snmp", "1.3.6.1.2.1.3" };
                        for(int i=0;i<dbResult.length;i++) {
                             System.out.println("Value = " + dbResult);
                             vctOidName.addElement(dbResult[i]);
                   public Vector vctGetOidList() {
                        return vctOidName;
                   public int iGetIndex(String strData) {
                        System.out.println("Index = " + vctOidName.indexOf(strData));
                        return vctOidName.indexOf(strData);

  • Problem in adding a new row in a table.. plsss hlppp

    Hi Friends,
    I have a table defaulted to 4 rows. I have a add button to add a new row in the table.
    When i have already 4 rows in table, and when i click add its adding that 5th row correctly( and i used set_lead_selection for this new row ).
    But i want to automatically make a next page once i hit the ADD button here. Each time now i m hitting next page then only  able to see hte 5th row. I need once ADD is clicked, i want to see the 5th row visible..
    Can someone tell me how to code or do this
    thanks friends,,,
    Niraja

    hi niraja,
    Plz refer to the following code:
    method onactiononadd .
    node_material type ref to if_wd_context_node.
    elem_material type ref to if_wd_context_element.
    stru_material type sflight.
    node_material =  wd_context->get_child_node( name = 'ANNA' ).
    elem_material = node_material->get_element(  ).
    if ( elem_material is initial ).
    call method node_material->create_element
    receiving
    element = elem_material.
    endif.
    call method elem_material->get_static_attributes
    importing
    static_attributes = stru_material .
    call method node_material->bind_structure
    exporting
    new_item = stru_material
    set_initial_elements = abap_false.
    endmethod.
    i hope it helps
    regards
    arjun

  • Problems with adding a new device in Common Services

    Hello,
    I have the following problem: I need to add a new device in my Cisco Works. What I do is I go to Common Services >> Device and Credentials >> Device Management. There I click "Add" and I add the new device with the corresponding credential set.
    Then, in the RME >> Job Management >> RME Jobs I can see a new job created (
    CDA:CDA job due to Device Add. ) because of this addition but this jobs stays always in status Running and it never finishes. Most probablt because of that this newly added device never actually appears in the RME so I cannot operate with it - deploy software, save configs, etc.
    I did this test a few times and all the times this is the result.
    I tought that it might be a firewall issue blocking some protocol needed for the communication, as SNMP, telnet or something else. But if I go to Decice Center and I select this newly added device (which there appears with the question mark icon, not with the right device icon) I can see all the information for it, like Detailed Device Report, etc.
    Then I noticed that in the RME Jobs section I have some more jobs that are like running forever - "
    CredEditCDA: CDA job due to Credential Edit".
    See the attached image for details:
    So, my question is what might be the reason for this behaviour and what can I do in order to unblock these jobs and add my device normally?
    What I use is:
    Windows Server
    LMS 3.2
    RME 4.3.0
    Thank you in advance,
    Vesko

    OK,
    first of all, have you intergrated lms with ACS ? - check in common services - server - security - single-server mgmt - local user policy setup.
    If this is in ACS, check if the newly added devices is in ACS... Check if this devices is reflecting in common services itself...make sure that the device type is selected properly ???
    Next do a snmp test in device center for this machine..how would you do this --" in device center, select the device, do a management to station and select the snmpv2 and ok it" you will get if snmp is failing or not...As you mentioned it is coming in question mark..this is because the correct device type is not selected in common services.
    Do an update inventory & archive and check the status..
    ~ rate if this was helpful.
    -rajesh

  • Problem while adding a new row to the table.

    hello,
    In my ADF form i have a table. and when i click on CreateInsert it add a new to the table but at the first. i want all the new rows to be added at the end of the table in a sequence. how can i do this?....
    Thanks and Regards,
    Rakshitha

    Hi,
    Try this:
    DCIteratorBinding dciter;
    BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
    dciter = (DCIteratorBinding) bindings.get("findAllTestAndryIter");
    ViewObjectImpl vo = dciter.getViewObject();
    if (vo != null)
    Row row = vo.createRow();
    int rangeSize = vo.getRangeSize();
    int rowsInRange = vo.getAllRowsInRange().length;
    int insertPos = rowsInRange < rangeSize? rowsInRange: rangeSize - 1;
    vo.insertRowAtRangeIndex(insertPos, row);
    vo.setCurrentRow(row);
    }

  • Problem while adding a new dimension in a existing cube with data in BW3.5

    Hi,
    We are trying to create a new dimension with new characteristics in a existing cube. But while activating we are getting error that "InfoCube contains data; intentional changes not permitted". Can we add a new dimension in a existing cube with data in BW3.5? If it is not possible then we can take the backup and delete the data from cube and then change the cube. But my question is that, when we will transport the cube with changes to quality then will it transport successfully or same procedure needs to be done there as well.
    Regards,
    Saikat

    hi,
    Adding new infoobject /dimension to the cube containing data in 3.5 is not possible.
    easier solution is create a new cube similar to old and add the new dimension and proceed.
    else you have to drop data and transport.
    Ramesh

  • Problems with adding a new row in my table

    Im an ADF beginner but I thought it would be simple to to do some basic CRUD stuff in ADF. Im now even struggling when i try to add a new row to my table.
    Seems that the primary key id is not set correctly...
    could someone help?

    Hi,
    Have a look to this page CREATE SEQUENCE
    Regards,
    Sébastien
    Creating a Sequence: Example
    The following statement creates the sequence customers_seq in the sample schema oe. This sequence could be used to provide customer ID numbers when rows are added to the customers table.
    CREATE SEQUENCE customers_seq START WITH     1000 INCREMENT BY   1 NOCACHE NOCYCLE;

  • Problem in adding a new web service provider system in NWA SOA

    Hello,
    Portal version : CE7.3 EHP1 SP9
    I am trying to add a web service system in "NWA > SOA > Technical Configuration > System Connections > Provider Systems > New".
    I have web service WSDL URL with me which is like: -
    https://webservicehostname/dswsbobje/qaawsservices/biws?WSDL=1&cuid=AfO9g_JmE0ZOiZzdvNtCbxg
    When I enter this URL in input field "WSIL URL" and click on "Next", I get error saying: -
    "Cannot connect to https://webservicehostname:443/dswsbobje/qaawsservices/biws?WSDL=1&cuid=AfO9g_JmE0ZOiZzdvNtCbxg
    HTTP Message : Unable to connect to webservicehostname:443 - Connection refused".
    (attached screenshot)
    Now, it puzzles me that why & how it is appending colon & port number in the entered URL as protocol is already https?
    Basis & network team is looking into connectivity related settings, but from my side, I wanted to answer/know why & how this port number is getting appended in entered URL and how to prevent it.
    Any ideas/help please.
    Thanks & Regards,
    Amey Mogare

    Hello Atul,
    In WSDL URL and content itself, there is no port number specified as protocol used is https.
    (screenshot).
    The problem is, after clicking on "Next", system is somehow inserting port number in between URL which it ideally should not as URL protocol is https.
    Thanks & Regards,
    Amey Mogare

Maybe you are looking for