cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

The community will undergo maintenance on October 16th at 10:00 PM PDT and will be unavailable for up to one hour.

Apply for each loop

DM_10148696
3-Visitor

Apply for each loop

Hi all,

How to get the output in string from infotable in loop, based on index values.

 

 

Thank you

 

1 REPLY 1
DanZ
15-Moonstone
(To:DM_10148696)

I understand that you are asking how to access the data of individual rows of a infotable when using forEach()? Basically you do it like for any other object.

 

// Assume your infotable "myInfoTable" has the following columns:
// id, username, age

myInfoTable.rows.toArray().forEach(row => {
    // The "row"-object contains the information for the individual row
    logger.info("id: " + row.id);
    logger.info("username: " + row.username);
    logger.info("age: " + row.age);
});

 

Announcements


Top Tags