Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics RMS (Archived)

Receipt XML repeat function

(0) ShareShare
ReportReport
Posted on by 90

Is there a way I can call a method x amount of times. Such as in a for loop.

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Receipt XML repeat function

    Original:

    <DOCUMENT>

         <CALL>   "PrintCreditCardSlip"      </CALL>

         <CALL>   "PrintHeader"              </CALL>

         <CALL>   "PrintTransactionType"     </CALL>

         <CALL>   "PrintCustomerData"        </CALL>

         <CALL>   "PrintTransactionComment"  </CALL>

         <CALL>   "PrintDropPayout"          </CALL>

         <CALL>   "PrintAccountPayment"      </CALL>

         <CALL>   "PrintTransactionDetails"  </CALL>

         <CALL>   "PrintTransactionTotals"   </CALL>

         <CALL>   "PrintVATAnalysis"         </CALL>

         <CALL>   "PrintDiscounts"           </CALL>

         <CALL>   "PrintBarcode"             </CALL>

         <CALL>   "PrintFooter"              </CALL>

      </DOCUMENT>

    Duplicate function calls to PrintFooter

    <DOCUMENT>

         <CALL>   "PrintCreditCardSlip"      </CALL>

         <CALL>   "PrintHeader"              </CALL>

         <CALL>   "PrintTransactionType"     </CALL>

         <CALL>   "PrintCustomerData"        </CALL>

         <CALL>   "PrintTransactionComment"  </CALL>

         <CALL>   "PrintDropPayout"          </CALL>

         <CALL>   "PrintAccountPayment"      </CALL>

         <CALL>   "PrintTransactionDetails"  </CALL>

         <CALL>   "PrintTransactionTotals"   </CALL>

         <CALL>   "PrintVATAnalysis"         </CALL>

         <CALL>   "PrintDiscounts"           </CALL>

         <CALL>   "PrintBarcode"             </CALL>

         <CALL>   "PrintFooter"              </CALL>

         <CALL>   "PrintFooter"              </CALL>

         <CALL>   "PrintFooter"              </CALL>

         <CALL>   "PrintFooter"              </CALL>

      </DOCUMENT>

  • izeko Profile Picture
    izeko 90 on at
    RE: Receipt XML repeat function

    hi. Thanks for the reply.

    can you give an example of this.

    thanks

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Receipt XML repeat function

    there is a loop function but it is a For Each kind of loop instead of a For X.

    The only why to do a for X is for if statements and repeating the same code multiple times.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,431 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,503 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans