Hej
I am currently working on an app that should generate some price estimates. It is pretty simple, the user check a checkbox on the different components they need, and then press a bottom that gets them to the next page where they can see an estimated total price for the products that has been selected. Is it possible, and what formula should I use?
I have put a screen shot of the test page.
Solved! Go to Solution.
Hi @Anonymous,
I could think out the following sicenario:
For example, we have a SharePoint custom list, have two fields, one for Porduct name and other for the price.
Then under One Screen, we have build the check box for the Products, make sure each Products name could match the one under SharePoint list,
then, add a button, sepcify the Onselect property with the formula below:
Navigate(Screen2,ScreenTransition.None)
Under the screen2, add a text box, sepcify the Text property with the following formula:
If(Checkbox1.Value=true, LookUp(Pricing,Title=Checkbox1.Text).Price) + If(Checkbox2.Value=true, LookUp(Pricing,Title=Checkbox2.Text).Price) + If(Checkbox3.Value=true, LookUp(Pricing,Title=Checkbox3.Text).Price) + If(Checkbox4.Value=true, LookUp(Pricing,Title=Checkbox4.Text).Price)
EXplanation for the sum, each if function first checks the checked status of each checkbox, if checked, then lookup the datasource to find the proper record, add the ".Price" to return the proper price for each products.
the ' + ' then would sum all the value together.
Regards,
Michael
Hi @Anonymous,
I could think out the following sicenario:
For example, we have a SharePoint custom list, have two fields, one for Porduct name and other for the price.
Then under One Screen, we have build the check box for the Products, make sure each Products name could match the one under SharePoint list,
then, add a button, sepcify the Onselect property with the formula below:
Navigate(Screen2,ScreenTransition.None)
Under the screen2, add a text box, sepcify the Text property with the following formula:
If(Checkbox1.Value=true, LookUp(Pricing,Title=Checkbox1.Text).Price) + If(Checkbox2.Value=true, LookUp(Pricing,Title=Checkbox2.Text).Price) + If(Checkbox3.Value=true, LookUp(Pricing,Title=Checkbox3.Text).Price) + If(Checkbox4.Value=true, LookUp(Pricing,Title=Checkbox4.Text).Price)
EXplanation for the sum, each if function first checks the checked status of each checkbox, if checked, then lookup the datasource to find the proper record, add the ".Price" to return the proper price for each products.
the ' + ' then would sum all the value together.
Regards,
Michael
Thank you., it looks correct. I will have a look at it.
BR,
User | Count |
---|---|
134 | |
132 | |
97 | |
75 | |
74 |
User | Count |
---|---|
206 | |
197 | |
70 | |
60 | |
52 |