IXMLDOMDocumentPtr save method is saving the z:row tags in single row.

When i am trying to create a IXMLDOMDocumentPtr and using appendchild populating the domdocument object and finally saving it to the xmlfile the appended rows comes in a single row if we open in notepad.
here is the code snippet:
IXMLDOMElementPtr pXMLDOMElement;
pXMLDOMElement = pXMLDOMNodeRSData->appendChild(pXMLDOMDoc->createElement("z:row"));
pXMLDOMElement->setAttribute("PARAMETERS_KEY", bstrParamKey);
pXMLDOMElement->setAttribute("PARAMETERS_SECTION", paramOrder);
pXMLDOMElement->setAttribute("PARAMETERS_VALUE", paramValue);
pXMLDOMElement->setAttribute("DESCRIPTION", paramDesc);
hr = pXMLDOMDoc->save(tszFilePath);
shown as below:
<z:row PARAMETERS_KEY="ECL_PROFILE_ID" PARAMETERS_SECTION="100" PARAMETERS_VALUE="1" DESCRIPTION="Sucursal CLP"/><z:row PARAMETERS_KEY="ECL_PROFILE_ID" PARAMETERS_SECTION="101" PARAMETERS_VALUE="1"
DESCRIPTION="Sucursal USD"/>

Please reply...

Similar Messages

  • "Save As" is saving the date years back.. not current date..??

    I just upgraded to Elements 10 and I've found this problem...
    When I create a scrapbook page and and go to save it as "Save As" for both my PSD & JPG files, it is saving the file date that my background layer was added to my Elements Organizer, no the actual date that I created the page.
    Example:  I created a page last night, I named "JFK.jpg".  When I got to Explorer to upload to Shutterfly and look for the file with details, it shows: JFK.jpg  1709kb    JPEG Fomat    03/28/2008 7:24AM
    I always sort by date to find my most recent pages and this is driving me crazy!!  Please help!  Any Suggestions???

    Two possibilities.
    First create a formula that will give you the date as a text cell.
    If you dates are in the B column then you could add
    =TEXT(B1;"YYYY-MM-DD")
    in the C column. This will then export correctly for you.
    This way means moving columns around of course.
    Second - the format of the data is controlled by your global language settings.
    Tools > Options > Language Settings > Language
    Use the Local Settings drop down to select a local that gives your the format you need. It is a thought any way.

  • Method for Saving the attendence data

    Dear All,
                 We are implementing the HR,MM,FI,SD module and also implementing  the Kronos Time Machine for Time details.
    I got the text file in which employee attendence data is mentioned  from the kronos system.Now which way i have to used for upload this information in sap tables or infotype .Because some buddy told we can not used the CATS ,I don't know why.
    So now how i can save attendence data and also in which table in sap we have to save that data.Kindly Help me .I am using IT2001,2002 and 2006 infotype for time management
    Kindly tell me the procedure for saving the Attendence data it' urg.
    Thanks
    sandeep
    Edited by: SANDEEEP DABRAL on Jun 19, 2009 2:45 PM

    Hi
    Does your client is using punch in and punch out data. If then then we can store the P10 and P20 data in SAP directly with the help of the integration with 3rd party systems.
    If not then just prepare a customized prghramme with the help of ABAP guys to uplad the data in IT 2002 against the absence types.
    For this you need to do the Absences customization in SAP R/3
    Thanks
    Sheetal

  • How to get save button for saving the layout in OO ALV

    Hi all,
    When I execute my report an OO ALV, I want to save the layout and make it default.Please tell me how to do it.
    I am using the below code.
    *Call ALV
      CALL METHOD c_alvgd->set_table_for_first_display
        EXPORTING
          is_layout                     = gd_layout
          i_save                        = 'X'
        CHANGING
          it_outtab                     = it_ekko
          it_fieldcatalog               = it_fieldcat
        EXCEPTIONS
          invalid_parameter_combination = 1
          program_error                 = 2
          too_many_lines                = 3
          OTHERS                        = 4.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    even after passing i_save eq 'X', it is not showing save option in the layout.
    please help.
    thanks,
    Siddhartha Prakash

    Hi,
    You need to pass the call back program name also.
      CLEAR wa_variant.
      MOVE sy-repid TO wa_variant-report.
      CALL METHOD wcl_alvgrid1->set_table_for_first_display
      EXPORTING
        I_BUFFER_ACTIVE               = space
        I_BYPASSING_BUFFER            = c_x
    *    I_CONSISTENCY_CHECK           =
    *    I_STRUCTURE_NAME              =
        IS_VARIANT                    = wa_variant   "variant options
        i_save                        = c_x
        I_DEFAULT                     = c_X
        is_layout                      = wa_layout
    Thanks,
    Vinod.

  • What is the best method for saving the client sequence file revision in the database \ report?

    I'm trying to figure out the best way to store the sequence file Revision in the database. That is, if I have the Revision (SequenceFile.AsPropertyObjectFile.Version), where (e.g. what table / field) should I put it if I'm using the SQL Server schema that ships with TestStand?  How do I get it there?
    Certified LabVIEW Architect
    Wait for Flag / Set Flag
    Separate Views from Implementation for Strict Type Defs
    Solved!
    Go to Solution.

    Ok LabBEAN,
    Here is my tutorial.  It is actually easier than I thought:
    Step 1: Configure>>Database Options and uncheck the Disable Database Logging.
    Step 2: Click the Data Link tab
    Step 3: Make sure the Connection String Expression is pointing to the right location.  Should be a public directory with a .mdb file if you are using TestStand defaults.  Click the View Data button to verify.  It should open the Database Viewer so you can look at the tables.  Leave the Database Viewer open.
    Step 4: Click the Schemas tab
    Step 5: With the Generic Recordset (NI) selected click the Duplicate button.
    Step 6: You should now see a copy of that schema.  In the Name box name it MyRecordset and make sure it is checked
    Step 7: Click the Statements tab and highlight STEP_SEQCALL.  NOTE: you must always do this before clicking on the Columns/Parameters tab
    Step 8: Click the Columns/Parameters tab
    Step 9: Highlight the SEQUENCE_FILE_PATH item and click the Copy Button
    Step 10:  Highlight the new entry and change the Name to SEQUENCE_FILE_VERSION
    Step 11: MOST CRITICAL STEP: Change the Expression to RunState.Engine.GetSequenceFileEx(Logging.StepResu​lt.TS.SequenceCall.SequenceFile, 107, ConflictHandler_Error).AsPropertyObjectFile.Versio​n  It is better to do it this way because you never now where a sequence file call will be made and not all sequence calls are made to the model client sequence.
    Step 12: Hopefully you left the Database Viewer open from Step 3. Go to it.
    Step 13: Right click the STEP_SEQCALL and select Add Column..  Name the new column: SEQUENCE_FILE_VERSION.  Basically you need a column that matches the one you created back in the Columns/Parameters tab.  Set it up with the same type and size.  NOTE: there is an alternate way to do this using the Execute SQL View in the Database Options but you need to create it.  You can create it from the Schemas tab back in TS by clicking the Build .sql File.. button.
    Step 14: Back in TestStand click OK to save and close the Database Options.
    Now run your sequence and you will see the new data in your database.
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • ***How to Invoke backing bean method by DOUBLE-CLICK the table ROW!!***

    Hi,
    How can I collect the selected row value & navigate to next page by DOUBLE-CLICK the result table row.
    My application got searchResult page where I am displaying the list of user in result table. Then selecting any one row and navigating to master details page by clicking the continue button. Button Action method will collect the selected row userID which I am forwarding to the masterDetails page.
    Same functionality I want to do by double click the row instead of clicking the button!!. I want to trigger the backing bean method if the user double click the row basically. Please help me in this how to do this?
    Current button action method:
    *public String userSelected() {*
    FacesCtrlHierNodeBinding binding = (FacesCtrlHierNodeBinding) searchResultTable.getSelectedRowData();
    currentRow = binding.getRow();
    selectedNetID = (String) currentRow.getAttribute("netid");
    System.out.println("selectedNetID -->"+selectedNetID);
    requestContext.getPageFlowScope().put("netid",selectedNetID);
    return "continue";
    *}*

    Puthanampatti ,
    Yes, I am using the same. Below is my code. I am trying to get the object of the MAIN jspx page region (where I am displaying the fragments) and refresh the one. But cant able to get the object for the region it is returning null. without refresh seems the navigation wont work.
    public void doDbClick(ClientEvent clientEvent) {
    FacesCtrlHierNodeBinding binding = (FacesCtrlHierNodeBinding) searchResultTable.getSelectedRowData();
    currentRow = binding.getRow();
    selectedNetID = (String) currentRow.getAttribute("netid");
    System.out.println("selectedNetID -->"+selectedNetID);
    requestContext.getPageFlowScope().put("netid",selectedNetID);
    try{
    FacesContext facesCtx = FacesContext.getCurrentInstance();
    NavigationHandler nh = facesCtx.getApplication().getNavigationHandler();
    nh.handleNavigation(facesCtx, "", "continue");
    System.out.println("region obj -->" +facesCtx.getViewRoot().findComponent("advse1"));
    // Refresh the current region; advse1 is the id of the region component inside jspx page
    AdfFacesContext.getCurrentInstance().addPartialTarget(facesCtx.getViewRoot().findComponent("advse1"));
    catch(Exception e){
    System.out.println("Error is: " +e);
    Is this correct coding to get the region object?? actually the "result table" and "Master details" are 2 different fragments which are linked with task-flow and the task flow is part of main jspx page as a region. I am using that region ID to get the obj, but cant able to get so....!!! any idea

  • How to validate plan data before saving the data

    I have a total row in my planning layout which is a summation of plan data in 2 other rows. While saving the data, I should check whether the total is 200 and if not the data should not be saved. How can I achieve this! Any help would be appreciated.
    Regards,
    Tipo.

    Hi,
    I'm also facing the same problem in my development...I tried above all the ways,but we cannot stop saving the wrong data.In this case you have to write the java script for save button, before saving the data if it is correct then go for the next step to save other wise throw an error message or without save the data .
    You need to write the JAVA script for save button,in this code you need to read the data form the layout and check the total value, i am not sure if layout is dynamic how we can achieve this???.
    My development also stopped for this issue,In my case i  have two layouts ,one is for actual and another one is for Planing layout(Function - Distribution equally),using the fox code i succeed to read and throw an error message for incorrect data but i can not stop to saving for incorrect total data.
    Once you solved this problem please post the message in SDN.This type of requirements is very tough and we need to share to our friends.
    Thanks.

  • Maintain the current row position of a table after refresh.

    Hi,
    I use a poll to refresh tables continuously. when a table is refreshed, the current referring row is reset.
    To maintain the current row position after a refresh I use the following poll method.
    public void refreshTableT1(PollEvent pollEvent) {
    FacesContext fctx = FacesContext.getCurrentInstance();
    ValueBinding dcb = fctx.getApplication().createValueBinding("#{bindings}");
    DCBindingContainer bindings1 = (DCBindingContainer) dcb.getValue(fctx);
    DCIteratorBinding dciter = bindings1.findIteratorBinding("<VOIterator>");
    if(dciter!=null){
    if(dciter.getCurrentRow()!=null){   
    Key current_row_key = dciter.getCurrentRow().getKey();
    dciter.executeQuery();
    if(current_row_key!=null){
    try{
    dciter.setCurrentRowWithKey(current_row_key.toStringFormat(true));
    }catch(Exception ex) {
    System.out.println("Exception in current_row_key");
    }This works for normal tables well. But when I use it to master-detail tables (pair of tables) it does not.
    At the master-detail tables, before the first data fetch, it works well. if we go below the first data fetch, it sets the current row into another position.
    how can I overcome this...??
    Thanks,
    Dinuka.

    Hi Mr.Frank,
    I have an association in two VOs.
    for example: There are 2 tables called Emp and Dept. Every Department has Employees. so there is an association (both tables have a common column). Master table is the Dept table. when you click on one record of the Dept table Detail table will show the details of the employees belongs to that selected department. That's what I referred as master-detail tables. first one is master table; second one is detail table.
    When the web page loads all the table data is not fetched from the db (it will depend on the fetch size). when we scroll down the table data fetch happens again and again.
    think my data fetch size is 25 rows per time.
    Suppose we use mine poll method and think I have clicked on the 20 ^th^ row of table1(master table). then the table2 will display details belongs to selected department. that is OK even after refresh. that works well.
    when I go to 30 ^th^ row data fetch will happen (my fetch size = 25)
    when I click on the 30 ^th^ row of the table1(master table), table2 will display details belongs to selected department. but after the poll method is called the selected row at the table1 disappears and is set to another position. now the 30 ^th^ row is not in the 30 ^th^ position. but it is the selected row and table2 displays correct details.
    I think you have got the problem now. :D
    Thanks a lot.
    Dinuka.

  • How to Select the Current Row When Using af:iterator?

    Hello all,
    I encounter the following problem when using af:iterator to display data from
    a View Object:
    When trying to display the content of a row via a popup, only the first row is
    returned no matter which row is selected. So a selection of the current row
    should exist or some other method which should allow the access to the
    current row.
    The af:table has a selectionListener attribute which permit to achieve this.
    Does anyone know about some similar attribute or some method for
    selecting the current row when the af:iterator is used?
    Thank you,
    Mirela

    I would be interested in the answer to this basic question as well. I cannot get the selected row value of an attribute in an iterator for a view if I simply set-up a attribute binding to the iterator. It seems that this should be possible. I've had no other option but to obtain the current row and the related attributes programmatically. This works fine, but if there is a more elegant option, then I'd certainly like to use it.
              <af:table value="#{bindings.CompaniesView1.collectionModel}"
                            var="row"
                            rows="#{bindings.CompaniesView1.rangeSize}"
                            emptyText="#{bindings.CompaniesView1.viewable ? 'No data to display.' : 'Access Denied.'}"
                            fetchSize="#{bindings.CompaniesView1.rangeSize}"
                            selectedRowKeys="#{bindings.CompaniesView1.collectionModel.selectedRow}"
                            rowBandingInterval="0" id="tCompanies"
                            summary="Companies"
                            width="100%"
                            rowSelection="single"
                            binding="#{CompanyBackingBean.companiesTable}">Page Def:
        <attributeValues IterBinding="CompaniesView1Iterator" id="Id">
          <AttrNames>
            <Item Value="Id"/>
          </AttrNames>
        </attributeValues>I should be able to get the Id attribute value of the current selected row using "#{bindings.Id}", right? Well, it doesn't work for me. Any ideas?
    Thanks

  • Open the "Merge Files into a Single PDF" utility via script or exe?

    Greetings:
    I'm trying to find a method to open the Merge Files into a Single PDF utilty without opening Acrobat first.  Does anyone have some example code on how to open this dialog window?  It doesn't matter what language it is in, I can do the legwork to translate it to something I can understand.
    Ideally, I'd like to open the combine/merge window through an EXE or VBScript and pass it a handful of filenames that would appear in the programs list to process.
    Any help would be *GREATLY* appreciated.
    Thanks,

    Hi,
    As far as I am aware it is not possible to pass a list of files to this dialog using any API in Acrobat.
    You could however create your own VB .net application that has a mutli file select dialog box and the use the JSObject to merge all those files and open the resultant file in Acrobat.
    There are samples in the Acrobat SDK that show how to use the JSObject and the JavaScript function you could use to perform the merge are in the SDK documentation, I would start with investigating "insertPages".
    Please note that using the Acrobat SDK requires the Acrobat program to be installed and it will also need to be running in order to convert the files.
    Hope this helps
    Malcolm

  • How to save the selected row number to NSUserDefaults

    I am trying to save the indexpath.row of the selected row to NSUserDefaults temporarily until my detail view controller can load its UITextFields based on which row is tapped. First of all is this good? I chose this design because the detail view controller cannot access the master view controller so I can't find out which row its tapped. To save to NSUSerDefaults, I did the following code, and the NSLog is always returning row 0 no matter what row I tap. Plus the title is not being set: its still blank.
    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
        [patientList deselectRowAtIndexPath:indexPath animated:YES];
        [[NSUserDefaults standardUserDefaults] setInteger:indexPath.row forKey:@"rowSelected"];
        NSLog(@"The selected row saved is row %d"), [[NSUserDefaults standardUserDefaults] integerForKey:@"rowSelected"];
        if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
            PatientDetailViewController *detailViewController = [[PatientDetailViewController alloc] initWithNibName:@"PatientDetailViewController" bundle:nil];
            detailViewController.title = [patientDisplayName objectAtIndex:[[NSUserDefaults standardUserDefaults] integerForKey:@"rowSelected"]];
            // Pass the selected object to the new view controller.
            [self.navigationController pushViewController:detailViewController animated:YES];
            [detailViewController release];

    I have also tried setting the title differently (I also added comments to explain each line what it does, the rest is the same), but neither methods work
    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
        // Deselect the row
        [patientList deselectRowAtIndexPath:indexPath animated:YES];
        // Save to memory the row selected
        [[NSUserDefaults standardUserDefaults] setInteger:indexPath.row forKey:@"rowSelected"];
        // Show saved row to make sure it saved correctly
        NSLog(@"The selected row saved is row %d"), [[NSUserDefaults standardUserDefaults] integerForKey:@"rowSelected"];
        // Check if user is using iPhone
        if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
            // Load the view
            PatientDetailViewController *detailViewController = [[PatientDetailViewController alloc] initWithNibName:@"PatientDetailViewController" bundle:nil];
            // Set the title of the detail view controller based on row selected
            detailViewController.title = [patientDisplayName objectAtIndex:indexPath.row];
            // Push the detail view controller
            [self.navigationController pushViewController:detailViewController animated:YES];
            // Release the detail view controller
            [detailViewController release];

  • How to retrieve the multiple rows data on PDF form in a web service method using WSDL DataConnection

    How to retrieve the multiple rows data on PDF form in a web service method using WSDL DataConnection.
    I have a multiple rows on PDF form. All rows have 4 textfields. I want to submit the multiple rows data to a method defiened in webservice.
    Unable to retrieve the data in multiple rows within webservice method.

    Hi Paul,
    I'm now able to save the retrieved xml in a hidden text field and create dynamic table, and I'm able to fill this table from the XML, but the problem is that I could not find the correct way to loop on the xml, what I'm trying to say, the table will have number of rows with the data of the first row only, so can you tell me the right way to loop on the xml!
    this is my code
    TextField1.rawValue=xmlData.document.rawValue;
    xfa.datasets.data.loadXML(TextField1.rawValue, true, false);
    for(var i=0; i<count; i++)
    xfa.form.resolveNode("form1.P1.Table1.Row1["+i+"].Num").rawValue = xfa.datasets.data.record.num.value;
    xfa.form.resolveNode("form1.P1.Table1.Row1["+i+"].Name").rawValue = xfa.datasets.data.record.name.value;
    Table1.Row1.instanceManager.addInstance(true);
    Thanks
    Hussam

  • Saving the data on Add Row

    Hi All,
    I am creating a tabular form with ADD ROW button. And also we have a Mutli Row update process. We are using a trigger on the table
    Now the issue is that when we click ADD ROW button then at that time this Multi Row Update process also get fires and it gives a error something like "Cannot update. error in trigger". To avoid this we puts a condition "When expression 1 item is not null" and there is no item in Expression 1.
    It works fine and adds a new row. But when we are adding some values and once again clicking Add Row button then it simply adds a new row without saving the previous values.
    Please help me.
    Thanks
    Aryan

    Ok. It could be that the form was not enabled for Reader users to be able to save the Data. That is a special function that has to be done using Adobe Acrobat.
    The good news is, you don't need for it to be enabled if you are using the newest version of Adobe Reader so, either have the creator of the form enable it using Acrobat or download Reader XI.

  • Page change the current row when concurrent users press save in the same ti

    I have a problem that appear only when a lot of users are running at the same time
    that I have an editable form that have save button some times when I press save the current row that I edit is changed or return null row.
    for example imagine that I edit employee that has Id = 50 when a lot of users running on the application at the same time when I press save the record changed to another employee that has id = 49 or returns empty form
    in my code for save I call application module method that have code similar to this
            myViewRowImpl viewimpl =
                (myViewRowImpl )getMyView().getCurrentRow();
            getDBTransaction().commit();I build my ADF fusion web application using ver 11.1.1.3

    Hi,
    sounds like a passivation problem.You can also try and change the AM pool size.
    Read up here:
    http://docs.oracle.com/cd/E21764_01/web.1111/b31974/bcservices.htm#sthref873
    http://docs.oracle.com/cd/E21764_01/web.1111/b31974/bcampool.htm#sm0299
    Frank

  • Save the additional row

    hi,
    I have a form.it was designed by adobe livecycle. but when it is opened by reader and add new row in the trable and insert data in the row of the table I am only able to save the form with data only 3 default raw. but the additional raw is not saved. if I save it and open it again it willshow only the 3 rows and additional rows are vanished. how can I save the additional raw with inserted data?

    Make sure you activated "Automatically" to preserve the changes to your form when it's saved.

Maybe you are looking for

  • Attachments opening twice

    Just noticed this today... when I open attachments from Mail now, it opens them twice automatically. Didn't do this before the latest Java Security update.

  • Installing OS X 10.2

    What do I need to upgrade my OS X 10.1 to Jaguar and then to Panther. I have the software but my G4 is not letting me boot from the CD drive and do the installation. Does it have something to do with the "firmware"? I don't really understand that...P

  • BI widgets

    Dear community members, My BI Widgets are not working as expected. Please advise on the way forward. System setup server side: - Microsoft Windows Server 2003 R2 SP2 - SAP BusinessObjects XI 3.1 (installation n°51035055) - SAP BusinessObjects LiveOff

  • Aperture 3.4.5 loading "erased" images

    When I insert my Lexar CF 8GB card into the Samdisk reader, Aperture 3.4.5 will load some of the images that I just erased (formatted the camera) from my Nikon D200. I see one or two of the new photos, but that's it. When I try to load into the new v

  • SRP521W Administration - Missing Menu Options.

    Hi Second post, I have a new SRP 527W, I've run through the initial config and am looking at the features available, in comparison the the PDF Admin Guide I seem to have a number of options missing from the menu. My router only shows Time setup & Swi