Computer Hope

Microsoft => Microsoft Windows => Windows Vista and 7 => Topic started by: jayeshshinde on July 10, 2018, 12:09:15 AM

Title: How to incremet the value in the XML file by one
Post by: jayeshshinde 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>
Title: Re: How to incremet the value in the XML file by one
Post by: DaveLembke 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.
Title: Re: How to incremet the value in the XML file by one
Post by: jayeshshinde 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 .
Title: Re: How to incremet the value in the XML file by one
Post by: DaveLembke on July 11, 2018, 05:51:42 AM
Not to increment or to be incremented? Maybe your last post "not" was a typo?
Title: Re: How to incremet the value in the XML file by one
Post by: jayeshshinde on July 11, 2018, 10:36:20 PM
yes , to increment the Workorder no in xml ..
Title: Re: How to incremet the value in the XML file by one
Post by: jayeshshinde on July 12, 2018, 02:47:34 AM
its workoorder number
Title: Re: How to incremet the value in the XML file by one
Post by: DaveLembke 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.