web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :

Canvas App - Loop Example

ZePowerDiver Profile Picture Posted by ZePowerDiver 279 Most Valuable Professional

Coming from the "developer" world, coding with loops for me is just basic ABCs. When I was faced with a situation where I needed to process the equivalent in a Canvas App, I just couldn't find anything close to a "For While", "Loop until" or similar type of function or code.

 

So, I figured the best approach would be to build a sample screen where I'd demonstrate the way to get this working for any "Citizen Developer" to be able to implement such a feature when they come in need of processing a functionality multiple times in a row.

 

More details in my blog: https://powerdiver.blogspot.com/2019/07/loop-in-canvas-app-dive-in-from.html

 

 

2019-07-26_11-04-39.png

Categories:

Comments

  • lawrence_sproul Profile Picture lawrence_sproul 4
    Posted at
    Canvas App - Loop Example

    Looping is now easier you can use Loop or Sequence. Here is an example to make a simple times table for fives from 1 to 10 in a collection:

    ClearCollect(colSeq, ForAll(Sequence(10,1,1),{Number: ThisRecord.Value, Calculation: "5 X " & ThisRecord.Value & " = " & ThisRecord.Value * 5}));

  • ZePowerDiver Profile Picture ZePowerDiver 279 Most Valuable Professional
    Posted at
    Canvas App - Loop Example

    Here's the actual App.