cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ga_2004
Helper I
Helper I

textinput in teams using gallery

I am having trouble to read a test value from Teams using powerapps. 

 

I cannot find the textinput.text property .

I am using Patch to add records to datatable on gallery . 

 

Patch(MDM_Contents,

Defaults(MDM_Contents),

{
ModuleName:txtModule.text,
Description:txtDescription.Value,
Content_Type:txtContent,
Contact:txtContact
}
);

Thanks

ga,

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Ga_2004 ,

 

If I understand correctly, you would like to use a button outside a Gallery to Patch all items of the Gallery into the data table.

 

So, you will need to use a ForAll function since gallery items are in a table then what you want to do is patch items into the data table one by one. The Formula in OnSelect of the button outside the Gallery would be:

ForAll(Gallery.AllItems, Patch(MDM_Contents, Defaults(MDM_Contents),{ModuleName:txtModule.Value,
Description:txtDescription.Value,Content_Type:txtContent.Value,Contact:txtContact.Value}))

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

4 REPLIES 4
v-jefferni
Community Support
Community Support

Hi @Ga_2004 ,

 

Could you please share more details about your scenario? Could you provide the layout of the app, including the gallery along with other controls? Where do you put the submit button, in or out of the gallery? 

 

Screenshots would help a lot understand your situation.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

Ga_2004
Helper I
Helper I

Hi Jeff, 

I have had used a Vertical Blank Gallery , I apparently don't have the screenshot as i discarded and used the default layout of the canvas to get around the problem to add records. 

 

I was trying to the Patch update on a Button to update the records. 

 

However the fact , I still do not know how to read the text value from the textbox control. 

 

If I have two text input control , I want to read one text from another also I did not manage to read it. 

 

Can you provide an example how this can be achieved in teams powerapps. 

Thanks .

ga, 

 

 

 

 

Hi @Ga_2004 ,

 

If I understand correctly, you would like to use a button outside a Gallery to Patch all items of the Gallery into the data table.

 

So, you will need to use a ForAll function since gallery items are in a table then what you want to do is patch items into the data table one by one. The Formula in OnSelect of the button outside the Gallery would be:

ForAll(Gallery.AllItems, Patch(MDM_Contents, Defaults(MDM_Contents),{ModuleName:txtModule.Value,
Description:txtDescription.Value,Content_Type:txtContent.Value,Contact:txtContact.Value}))

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

Ga_2004
Helper I
Helper I

Thanks Jeff, 

I will try this out. 

I have an issue with the combo box. I have logged it if possible could you help with it. 

ga, 

 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,337)