Passing on arrays to HTML/JS

by P. Andreas Schmidt, IVE

Version 2 (June 27, 2022)

Download (81 downloads)

Based on my experience when developing my RSS news flow (check out: https://llamalab.com/automate/community/flows/42617) I wanted to share this show case flow to illustrate some ways of dealing with passing on variables to the html view. Simple text variables isn't a biggie, but arrays or dictionaries are different, since they'll be passed on as text strings.
This flow helps to find solutions how to split those into arrays or dictionaries (even complexer ones with arrays or dictionaries inside a dictionary).
Hope this helps you for any flow you're working on.

Updates:
V2: Now in JS there's an actual dictionary object created with the keys and values (rather than just running through the data passed on and displaying it). This is displayed a second time by forEach-ing through it.

5.0 average rating from 1 reviews

5 stars
1
4 stars
0
3 stars
0
2 stars
0
1 star
0
Reports
0

Rate and review within the app in the Community section.