Develop Powerapps from the Scratch - Series3/3
Hi All,
Here again with the final series 3. You can check out my
previous series to contextually understand this one.
All Right letโs get STARTED
Data source
Product
|
Title aka Review Title
|
Review Description
|
Rating
|
Product 1
|
P1-Review 1
|
Long textโฆ
|
5
|
Product 1
|
P1-Review 2
|
Long textโฆ
|
4
|
Product 1
|
P1-Review 3
|
Long textโฆ
|
2
|
Product 2
|
P2-Review 1
|
Long textโฆ
|
4
|
Product 2
|
P2-Review 1
|
Long textโฆ
|
1
|
Product 3
|
P3-Review 1
|
Long textโฆ
|
5
|
Product 3
|
P3-Review 2
|
Long textโฆ
|
1
|
Product 3
|
P3-Review 3
|
Long textโฆ
|
3
|
Product 3
|
P3-Review 4
|
Long textโฆ
|
5
|
View Review Screen
Add a new screen and rename it to โscreenViewReviewโ or you
can โduplicateโ the existing screen and delete the unwanted controls
In case if you choose the new screen. Please design it as
per our existing screen. You can refer the series1
post for the same
Configure View Review screen
Add below control to configure
- HTML Control โ to show description
- Rating control โ to show given rating
- Back Shape โ Navigate back to home screen
Review Title
Select the top โtextboxโ and enter the below formula to
APPEND the selected โReview Titleโ
Note:
TemplateGallertList1 is the items collection from the previous screen. Please
refer series 2 to know more.
Review Description
Then select the HTML control and configure to
show the โReview Descriptionโ
Note: We can
alternatively use the two textboxโs to map the โReview Descriptionโ. HTML
control was my preferences. Refer here for couple of other examples.
Rating
Select the rating control and map the โRatingโ
column for the selected item. Also change the โReadOnlyโ and โTooltipโ property
as needed.
Go Back
Select the back button and write a navigate in the formula
box
Navigate(screenName,
ScreenTransition)
Now, Go to HOME
screen and navigate the select value
Select the go button from the โscreenHomeโ and
configure Navigate option as shown below
Run the Application


Design screen to add new review
Go to insert->Forms=>Edit
Once data source is configured. Select the โEdit Formโ and
add the columns.
Click on the highlighted icon to add the columns.
Select
rating โdatacardโ to and click โUnlockโ to edit its properties (same for any
other control) and set โDefaultโ property to 0
Select โreview Descriptionโ column and configure it to
support โMultiLineTextโ
Change the โTitleโ to โReview Titleโ. Do the same unlocking
process and edit the โTextโ property to โReview Titleโ
All right, we are all set to add a new reviewโฆ Nope. Still we
need to do two major things โProduct column is missing โPRODUCTSโ we need to
add review for a specific product and โSubmit/Cancelโ form.
Now add the โProduct columnโ from the right pane
Then unlock the card and add the source to drill down the
available โProductsโ.
Also select the card and DRAG it to the top of
the Form
Submit/Cancel
Add two control of your choice (anything control which has
onselect property).
If(SubmitForm(Form2),Navigate(screenHome,ScreenTransition.Fade);ResetForm(Form2))
It does two things:
a.
Save the form after successful validation are
default based on โRequiredโ property.
b.
Navigate back to the Home screen on successful
form submit.
Select cancel and add the following
ResetForm(Form2);Navigate(screenHome,ScreenTransition.Fade)
It does two things:
a.
Clears the screen values to its control default
b.
Navigate back to the home screen.
Note: We can unlock/select
the respective card and mark it as โRequiredโ by enabling the property from the
right pane for any control.
Linking to add review form
Go to the โHomeโ screen and add new icon or button to
navigate to the new review form
NewForm(Form2);Navigate(screenAddReview,ScreenTransition.Fade)
Run the app
Thatโs all Folks.. Now we have come to the end of this
Develop Powerapps from the scratch series.
You can find my previous series on the below:
Thank you!
Regards
Nice work. thanks for the detailed explanations!
ReplyDeleteThank you! Jose.
Delete