
Announcements
Hi All,
I have created a screed with picture of my building as background. I have created a button on each room. When selecting the Button I have created a variable. On second Screen I have a galary with searcher, calling the variable. I can then edit the record in the galary from there.
This all works well but I would need to hardcode each button with the appropriate variable information individually.
Is there a way I can connect/link the button to my records avoid the hardcoding?
Hope this makes sence am a complete novice to powerapps.
Thanks
Hi @Emwee ,
You can use a collection that stores all information you want.
ClearCollect(
ColMyRooms,
{
Name: "Bedroom",
ID: 1,
Link: "https://mybedroom.com"
},
{
Name: "Kitchen",
ID: 2,
Link: "https://mykitchen.com"
},
{
Name: "Living Room",
ID: 1,
Link: "https://myhallroom.com"
}
)
Now you can use buttons and simply add the formula
Launch(Lookup(ColMyRooms, ID = 2, ThisRecord.Link))
Hope this helps