Hi,
I am having difficulty creating new columns in a collection, which is a calculation of another existing field in a collection.
I am successfully creating the collection with an OnChange on a text field.
The textfield called (tst_inp) contains values such as : 0000-0800; 0900-1200; 2200-2400;
So I start by cereating the collection tst_gal with:
ClearCollect(tst_gal, Split(tst_inp_csb,";"));
So using the input example above the tst_gal would contain 3 rows
| Value |
| 0000-0800 |
| 0900-1200 |
| 2200-2400 |
Now I would like to loop over the 3 rows and extract the number values So I did the following:
ForAll(
tst_gal,
AddColumns(
AddColumns(
tst_gal,
"firstVal",First(MatchAll(ThisRecord.Value,"\d+"))),
"secondVal",Last(MatchAll(ThisRecord.Value,"\d+")))
)
However when I check the collections, the tst_gal collection does not show the new columns "firstVal" and "secondVal". There are no syntax errors of course.
What am I doing wrong? Thanks you.
What am I doing wrong.