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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to get a value of ...
Power Apps
Unanswered

How to get a value of a textbox inside a container inside a gallery

(1) ShareShare
ReportReport
Posted on by 8

I have 2 galleries, each with a textbox and label.  The only difference between them is that the one on the right has a container holding the label and text input, the other does not as you can see from the attached screenshot.

 

Galleries.jpg

 

I have a label underneath each attempting to sum the values entered in each text box.  The label under the left gallery (without the container) has the formula of Sum(ForAll(Gallery1.AllItems, Value(TextInput4.Text)),Value). And as you can see, the total is correct.

 

The label under the containerized gallery uses the exact same formula Sum(ForAll(Gallery4.AllItems, Value(TextInput3.Text)),Value), however as you can see the total is wrong.

 

So, is it possible to get the values out of the textboxes inside the container in the gallery?  Is there some method to do this I haven't found yet, or is this just not possible?

 

I was using containers inside the galleries to get them to look and function a little better, so I would like to get this to work if possible.  Otherwise I will have to modify my galleries to remove the containers (but I would really rather not). 

 

Thank you in advance to everyone who has a look, and thank you again to the community as a whole for their excellent support.

Aaron

Categories:
I have the same question (0)
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @avankosky It is not possible to refer to controls within a container. So your second approach will not work.

    In the first approach, the formula can be without the ForAll,

    Sum(Gallery4.AllItems, ThisRecord.TextInput3.Text)

     

    Please remember to give a 👍 and accept my solution as it will help others in the future.

  • michaeldanieal Profile Picture
    on at

    Have you found a solution to this as of  now?

  • ProyectosMaer Profile Picture
    2 on at

    Yo aplique la formula 'Sum' directo al valor del ítem dentro del contenedor de la galería:

    Sum(Gallery1.AllItems; Value(Unidades_Column.Text))

     

    ProyectosMaer_0-1719085567360.png

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard