Hello,
I am making an app that does.. well, a lot of stuff, but right now Im somewhat stuck with this problem.
I am trying to make a list of items "owned" by a name (string).
I have this collection:
item 1
item 2
item 3
...
What I want to do is to insert a column with all the same name, like this:
itemID ownerID
item 1 bob
item 2 bob
item 3 bob
... ...
I was hoping to achieve this with something like this:
ClearCollect(itemownerList,
ShowColumns(VelgDP.AllItems, "itemID")
);
//And then I had hoped one of these 2 would do the trick. But they don't even work.
AddColumns(itemownerList, "ownerID", "bob");
ForAll(itemownerList, { ownerID: "bob"} );
Is there any way at all to simply set all values in a column to a set string or string variable?
This woule be easier if it was a Lookup from another collection or something, but this seems so simple that it's not possible..
At first i thought this ( https://powerusers.microsoft.com/t5/Building-Power-Apps/Adding-a-column-and-filling-with-same-value-to-a-collection/td-p/2188600 ) problem sounded similar, but his solution is nothing like my problem as what he actually wanted is to fill a collection from a list.
Any help for this seemingly simple problem?