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 / An array formed with a...
Power Apps
Answered

An array formed with a subarray value

(0) ShareShare
ReportReport
Posted on by 11

Good morning,

I will briefly explain my problem. I'm using a gallery to collect data.

 

And on the "onSelect" of a button I use someting like :

ClearCollect(CollectionNeeded; ShowColumns(Gallery.AllItems; "new_name";"new_nombre"))

 

And it works, but I want to add some number, and I don't manage how to do it.

In each Item of my Gallery, I've inserted a "textInput".

 

But if I write : ClearCollect(CollectionNeeded; ShowColumns(Gallery.AllItems; "new_name";"new_nombre","textInput"))

 

In my Collection, the last object is not the value of my Input, but an array with ["Text" ; "HintText"; Acess....]

So my question, how to make appear the "Text" of my TextInput ?

(As the column labels are between " ", I cannot write : "TextInput.Text", it returns an error)

I've tried yet a lot of unsuccessful things, so if you have some Ideas,... Thank you !

Sabrina 

Categories:
I have the same question (0)
  • Sienna Profile Picture
    1,532 on at
    Hi Sabrina
    Any chance to make some pictures what would explain what exactly you are trying to do.
    Thanks
  • Sabvalbra Profile Picture
    11 on at

    Thank you Sienna for answering me so quickly !

    (I'm sorry, but I cannot manage to add a picture... :-(, Darg and Drop doesn't work, copy paste neither and when I click on a picture, I don't know what to put in Source, Image description and Dimensions... )

     

    The Idea, is I have my product entity from Dynamics and I import it through a Gallery.

    So I have my list of products in a gallery with 2 fields shown on the screen : The name of the product and the number of the product : "new_name", "new_nombre".

     

    I want my customer to write a number inside the rectange of each product to tell me how many of each product he wants ("numberOfItems" that is a "textInput" field in PowerApps.

     

    And then I would like to create an array with ["new_name"; "new_number" ; "NumberOfItems"]


    But when I do that with the command :
    ClearCollect(CollectionNeeded; ShowColumns(Gallery.AllItems; "new_name";"new_nombre","NumberOfItems"))

    The last column ("NuberOfItems") it's not just the entered number, it looks like an array. And when I click on it. I have more data like "Text", "Default", "HintText".

    I hope it is clearer now...

  • Verified answer
    Mike8 Profile Picture
    1,330 on at

    Hello Sabvalbra,

    Could you try this and let me know if it works..

    ClearCollect(CollectionNeeded, ForAll(Gallery.AllItems,{new_name:new_name,new_number:new_number,NumberOfItems:TextInput.Text}))

  • Sabvalbra Profile Picture
    11 on at

    Yes Mike8,

    It works ! 🙂

    Thanks a lot ! Thank you ! 🙂

     

     

  • Mike8 Profile Picture
    1,330 on at

    🙂

  • CU28111156-0 Profile Picture
    32 on at

    it does not work for  me 😞 

    Whatever I do, still arrays in defined columns. Any help ?

    screen2.png
    screen3.png
    screen1.png
  • Mike8 Profile Picture
    1,330 on at

    Hello TOPDHI,

    What is different in your case?
    Can you please give some information on what you need to do?

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard