Skip to main content

Notifications

Microsoft Dynamics RMS (Archived)

Receipt XML repeat function

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,900 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,297 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans