For loop not looping
Hi I've been having this issue with a for loop not looping. I've got some ideas on why it's not working but I haven't been able to fix it. I'm not very familiar with calculations in Podio but I feel like I'm very close to my desired result.
Here's the situation I've got:
- In my Meetings App, I've got two relationship fields: Discussion Items and Decision Items. Both relationships link to the app Meeting Items.
- In the Meeting Items App, there is a field called "Way Forward" where we list the steps we're taking forward with a project.
- In my Meetings App, I'm trying to use a calculation field to get all of the steps in the "Way Forward" field in a list, organized by the Meeting Item they belong to.
Hopefully I've explained it well enough, but I can try elaborate if it's not clear.
Here's my code so far. It doesn't seem to loop, I believe because of the , but I've tried removing that which just lists all of the items and then lists all of the Ways Forward, but doesn't list them in an order that is meaningful to me.
var item = @All of Item Name;
var list = @All of Way forward:;
for (var i = 0; i < item.length; i++)
list != "" ? "" + "<strong>Item: </strong>" + item + "<br>" + "<strong>Agreed Action: </strong>" + list : "";
Ideally I would like the results of this code to print:
Item: Example Item
Agreed Actions: Action 1, Action 2, Action 3
Item: Example Item 2
Agreed Actions: Action 4, Action 5
I hope I've explained this well enough and I would really appreciate any help with the matter.
Thank you for taking the time to read this and thank you in advance for any help!
Please sign in to leave a comment.