cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

PowerApps to create a Spreadsheet for data collection

Hi,

 

I was wondering if there is a way to use the Gallery template to create a spreadsheet with columns. This spreadsheet would then be distributed among users to input fields such as regio, industry, product (descriptive variables) and sales targets (numeric variables). 

 

I would also like to be able to include business rules for each column field such as:

  1. 20 geographic regions
  2. 15 industries
  3. No decimal in numeric data

I am new to PowerApps; therefore, any feedback on my query would be much appreciated.

 

Samata

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi @Anonymous ,

Could you please share a bit more about your scenario?

Do you want to configure the Gallery control as a Editable Grid spreadsheet?

 

If you want to configure  the Gallery control as a Editable Grid spreadsheet within an app, please check and see if the following video would help in your scenario:

https://www.youtube.com/watch?v=O2WqhRTUhyw

https://www.youtube.com/watch?v=41Mpgn7svLs

 

If you also want the each column Text box in your Gallery to match the conditions that you mentioned, please take a try with the following workaround:

For the first and second condition, you could consider add two Dropdown controls within your Gallery to list the 20 available geographic regions and 15 industries. Set the Items property of the Dropdown1 to following (force users to select value from the available options) :

["Region1", "Region2", "Region3", ...., "Region20"]

set the Items property of the Dropdown2 to following:

["Industry1", "Industry2", "Industry3", ....]

When you want to reference the selected value/option from above Dropdown boxes, please use the folllowing formula:

Dropdown1.Selected.Value
Dropdown2.Selected.Value

 

For your third condition, I think the IsMatch function could achieve your needs. Please consider set the OnChange property of each Column field Text Box (TextInput1, TextInput2, TextInput3, ...) in your Gallery to following:

If(
   IsMatch(TextInput1.Text, "\d+\.\d+"),
   Notify("The number value type could not contain decimals", NotificationType.Error);Reset(TextInput1)
)
If(
   IsMatch(TextInput2.Text, "\d+\.\d+"),
   Notify("The number value type could not contain decimals", NotificationType.Error);Reset(TextInput2)
)
If(
   IsMatch(TextInput3.Text, "\d+\.\d+"),
   Notify("The number value type could not contain decimals", NotificationType.Error);Reset(TextInput3)
)

...

...

 

Please consider take a try with above solution, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support
Community Support

Hi @Anonymous ,

Could you please share a bit more about your scenario?

Do you want to configure the Gallery control as a Editable Grid spreadsheet?

 

If you want to configure  the Gallery control as a Editable Grid spreadsheet within an app, please check and see if the following video would help in your scenario:

https://www.youtube.com/watch?v=O2WqhRTUhyw

https://www.youtube.com/watch?v=41Mpgn7svLs

 

If you also want the each column Text box in your Gallery to match the conditions that you mentioned, please take a try with the following workaround:

For the first and second condition, you could consider add two Dropdown controls within your Gallery to list the 20 available geographic regions and 15 industries. Set the Items property of the Dropdown1 to following (force users to select value from the available options) :

["Region1", "Region2", "Region3", ...., "Region20"]

set the Items property of the Dropdown2 to following:

["Industry1", "Industry2", "Industry3", ....]

When you want to reference the selected value/option from above Dropdown boxes, please use the folllowing formula:

Dropdown1.Selected.Value
Dropdown2.Selected.Value

 

For your third condition, I think the IsMatch function could achieve your needs. Please consider set the OnChange property of each Column field Text Box (TextInput1, TextInput2, TextInput3, ...) in your Gallery to following:

If(
   IsMatch(TextInput1.Text, "\d+\.\d+"),
   Notify("The number value type could not contain decimals", NotificationType.Error);Reset(TextInput1)
)
If(
   IsMatch(TextInput2.Text, "\d+\.\d+"),
   Notify("The number value type could not contain decimals", NotificationType.Error);Reset(TextInput2)
)
If(
   IsMatch(TextInput3.Text, "\d+\.\d+"),
   Notify("The number value type could not contain decimals", NotificationType.Error);Reset(TextInput3)
)

...

...

 

Please consider take a try with above solution, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (9,065)