Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: How to incremet the value in the XML file by one  (Read 3230 times)

0 Members and 1 Guest are viewing this topic.

jayeshshinde

    Topic Starter


    Starter

    • Experience: Beginner
    • OS: Unknown
    How to incremet the value in the XML file by one
    « on: July 10, 2018, 12:09:15 AM »
    Hi ,

    I m having one requirement , i want to increment the  workorder ( JA3503727-A6)value in the xml file by one when i will run the bat file . Could you please help me in this .

    <ns1:WCSAPWOCHAR action="AddChange">
                      <ns1:CHAR_NAME>LAST_READING_DATE</ns1:CHAR_NAME>
                      <ns1:CHAR_VALUE>07.06.2018</ns1:CHAR_VALUE>
                      <ns1:QMNUM>JA3503727-A6</ns1:QMNUM>
                   </ns1:WCSAPWOCHAR>

    DaveLembke



      Sage
    • Thanked: 662
    • Certifications: List
    • Computer: Specs
    • Experience: Expert
    • OS: Windows 10
    Re: How to incremet the value in the XML file by one
    « Reply #1 on: July 10, 2018, 09:51:04 PM »
    What generates the XML file? If its generated through PHP the increment can be done in PHP etc.

    jayeshshinde

      Topic Starter


      Starter

      • Experience: Beginner
      • OS: Unknown
      Re: How to incremet the value in the XML file by one
      « Reply #2 on: July 10, 2018, 11:18:39 PM »
      we are getting this file from SAP and loading into Maximo. I want that WO not to be increased by one when i execute the batch file .

      DaveLembke



        Sage
      • Thanked: 662
      • Certifications: List
      • Computer: Specs
      • Experience: Expert
      • OS: Windows 10
      Re: How to incremet the value in the XML file by one
      « Reply #3 on: July 11, 2018, 05:51:42 AM »
      Not to increment or to be incremented? Maybe your last post "not" was a typo?

      jayeshshinde

        Topic Starter


        Starter

        • Experience: Beginner
        • OS: Unknown
        Re: How to incremet the value in the XML file by one
        « Reply #4 on: July 11, 2018, 10:36:20 PM »
        yes , to increment the Workorder no in xml ..

        jayeshshinde

          Topic Starter


          Starter

          • Experience: Beginner
          • OS: Unknown
          Re: How to incremet the value in the XML file by one
          « Reply #5 on: July 12, 2018, 02:47:34 AM »
          its workoorder number

          DaveLembke



            Sage
          • Thanked: 662
          • Certifications: List
          • Computer: Specs
          • Experience: Expert
          • OS: Windows 10
          Re: How to incremet the value in the XML file by one
          « Reply #6 on: July 13, 2018, 11:48:00 AM »
           So is JA3503727-A6 incrementing to JA3503727-A7 or JA3503728-A6

          And is A6 a constant if its incrementing to JA3503728-A6 or does the A6 change into something else.