Hi everyone,
I struggle a bit with creating a collection.
We pull out data from our construction software and want to paste the values into textinput fields.
Textinput field 1: (project numbers) 1-∞ Values: 19212-1;19212-2…(the amount of values can variate)
TextInput field 2: (Module names) 1-∞ Values: YV-111;YV-112;YV-113… (the amount of values can variate)
From that 2 Textinput fields I want to create a new table like this:
Projektnumber Modulenames
19212-1 YV-111
19212-1 YV-112
19212-1 YV-113
19212-2 YV-112
19212-2 YV-113
19212-2 YV-114
… …
ClearCollect(collectEKYV;AddColumns(Split(TextInput2.Text;";");"Modulenames";Result;"Projektnumber ";TextInput1.Text))
Thanks for your help.
Solved! Go to Solution.
I managed to come up with a solution by myself:
Don’t know whether it’s the best way to do it but it works for me.
Clear(coll1);;
ForAll(Split(TextInput1.Text;";");Collect(coll1;{Projektnummer:Result;Elementnamn:Split(TextInput2.Text;";")}));;
ClearCollect(coll2;Ungroup(coll1;"Elementnamn"))
/Hubert
I have to add with this funktion:
ClearCollect(collectEKYV;AddColumns(Split(TextInput2.Text;";");"Modulenames";Result;"Projektnumber ";TextInput1.Text))
I only can make it working with one value in "TextInput1" not several.
I managed to come up with a solution by myself:
Don’t know whether it’s the best way to do it but it works for me.
Clear(coll1);;
ForAll(Split(TextInput1.Text;";");Collect(coll1;{Projektnummer:Result;Elementnamn:Split(TextInput2.Text;";")}));;
ClearCollect(coll2;Ungroup(coll1;"Elementnamn"))
/Hubert
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
192 | |
45 | |
43 | |
38 | |
35 |
User | Count |
---|---|
262 | |
83 | |
81 | |
70 | |
69 |