{"id":3992,"date":"2016-02-25T21:03:10","date_gmt":"2016-02-25T21:03:10","guid":{"rendered":"https:\/\/alt2.minisoft.com\/support\/?p=3992"},"modified":"2016-11-20T23:48:40","modified_gmt":"2016-11-20T23:48:40","slug":"setting-a-sequence-number-in-text-to-xml","status":"publish","type":"post","link":"https:\/\/c002.minisoft.com\/support\/setting-a-sequence-number-in-text-to-xml\/","title":{"rendered":"Setting a Sequence Number in Text to XML"},"content":{"rendered":"<p>Sometimes there is a need to have a running count of something, usually detail lines, when creating the XML.\u00a0 It\u2019s not good enough to know you have 3 detail lines, you want the detail lines to be numbered 1, 2, 3.<\/p>\n<p>You\u00a0need to do three things in the Text to XML Editor.<\/p>\n<p>1. For the Line you want to count, set a value for the Counter parameter.\u00a0 This is just a name.\u00a0 It can be pretty much anything you want.<\/p>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/T2XML1.png\" rel=\"attachment wp-att-3993\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-3993\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/T2XML1.png\" alt=\"T2XML1\" width=\"344\" height=\"588\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/T2XML1.png 344w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/T2XML1-176x300.png 176w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/T2XML1-88x150.png 88w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/T2XML1-250x427.png 250w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/T2XML1-105x180.png 105w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/T2XML1-293x500.png 293w\" sizes=\"(max-width: 344px) 100vw, 344px\" \/><\/a><\/p>\n<p>2. To that Line, add a Parameter. Set the Counter field to the same value you used in the Line.<\/p>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/T2XML2.png\" rel=\"attachment wp-att-3994\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-3994\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/T2XML2.png\" alt=\"T2XML2\" width=\"345\" height=\"525\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/T2XML2.png 345w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/T2XML2-197x300.png 197w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/T2XML2-99x150.png 99w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/T2XML2-250x380.png 250w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/T2XML2-118x180.png 118w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/T2XML2-329x500.png 329w\" sizes=\"(max-width: 345px) 100vw, 345px\" \/><\/a><\/p>\n<p>3. If the incoming data can contain more than one instance of the report the Counter has to be reset between instances.<\/p>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/T2XML3.png\" rel=\"attachment wp-att-3995\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-3995\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/T2XML3.png\" alt=\"T2XML3\" width=\"343\" height=\"703\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/T2XML3.png 343w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/T2XML3-146x300.png 146w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/T2XML3-73x150.png 73w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/T2XML3-250x512.png 250w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/T2XML3-88x180.png 88w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/T2XML3-244x500.png 244w\" sizes=\"(max-width: 343px) 100vw, 343px\" \/><\/a><\/p>\n<p>4. The XML output should now contain an incrementing sequence number.<\/p>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/T2XML4.png\" rel=\"attachment wp-att-3996\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-3996\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/T2XML4.png\" alt=\"T2XML4\" width=\"450\" height=\"644\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/T2XML4.png 450w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/T2XML4-210x300.png 210w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/T2XML4-105x150.png 105w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/T2XML4-250x358.png 250w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/T2XML4-126x180.png 126w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/T2XML4-349x500.png 349w\" sizes=\"(max-width: 450px) 100vw, 450px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes there is a need to have a running count of something, usually detail lines, when creating the XML.\u00a0 It\u2019s not good enough to know you have 3 detail lines, you want the detail lines to be numbered 1, 2, 3. You\u00a0need to do three things in the Text to XML Editor. 1. For the [&hellip;]<\/p>\n","protected":false},"author":75,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[58],"tags":[6],"_links":{"self":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/3992"}],"collection":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/users\/75"}],"replies":[{"embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/comments?post=3992"}],"version-history":[{"count":1,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/3992\/revisions"}],"predecessor-version":[{"id":3997,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/3992\/revisions\/3997"}],"wp:attachment":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/media?parent=3992"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/categories?post=3992"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/tags?post=3992"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}