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:
I am new to PowerApps; therefore, any feedback on my query would be much appreciated.
Samata
Solved! Go to Solution.
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,
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,
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
User | Count |
---|---|
207 | |
186 | |
70 | |
37 | |
34 |
User | Count |
---|---|
349 | |
277 | |
121 | |
78 | |
59 |