web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Formatting an icon to ...
Power Apps
Answered

Formatting an icon to save the label value (of the same data card) into a collection

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am building an inspection app and do not want to use a dropdown function. I have a screen for each column that would be in the collection. There are screens with text inputs as well. I want the action of pressing "Next" icon to navigate (already figured out) and to save in the collection what that icon was selecting.

 

TumiBabedi_0-1596359541924.png

I do not know what I have done wrong in the formula. I have selected one show what I mean, hopefully I'm making sense.

Categories:
  • Verified answer
    ganeshsanap Profile Picture
    1,555 on at

    @Anonymous , Try using your formula like below:

     

    Collect(Inspection, {Building: 'Building 15_Label'.Text}); Navigate('Floor Screen', ScreenTransition.Fade)

     


    Please click Accept as solution if my post helped you solve your issue. This will help others find the correct solution easily. It also closes the item. If the content was useful in other ways, please consider giving it 👍

  • Florian_Kleinz Profile Picture
    227 on at

    Hello,

     

    what are the items of your gallery?

     

    Inside a gallery I would always use ThisItem so your collect would be:

    Collect(Inspection, {Building: ThisItem.Building}) // ThisItem.Building assumes that the column of the building label is populated by a column named building in your DataSource.

    You could easily collect the whole record

    Collect(Inspection, ThisRecord)

     

    I hope this helps.

     

    Best regards

  • ganeshsanap Profile Picture
    1,555 on at

    @Florian_Kleinz, By looking at the image attached to question, I think user is not using any gallery on the current screen to show the Building labels. So, user has to use 'Building 15_Label'.Text to get the text inside label.


    Please click Accept as solution if my post helped you solve your issue. This will help others find the correct solution easily. It also closes the item. If the content was useful in other ways, please consider giving it 👍

  • Florian_Kleinz Profile Picture
    227 on at

    Hi @ganeshsanap,

     

    you are right. Hell of an effort to patch every label individually, but your solution should work.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard