3. Add Column for My Notes
You will import the current solution and use this to start your work. You will also add a column to a table and modifying the app to use it. You will also configure and test the Power Platform CLI.
In Exercise 3 you will add a new column My Notes to the topic table and update the PriortZ Admin application.
3.1 Add a column for My Notes​
Expand Tables and select the PrioritZ Topic table.
Click + New and select Column.
- Enter My Notes for Display name, select Plain text for Data type.
Click Save.
🚨 Note: Do not navigate away from this page.
3.2 Update the admin app​
Make sure you are still in the PrioritZ solution.
Select Apps and click to open the PrioritZ Admin application.
Select the Add Topic Screen.
Click + Insert and select Text input.
- Rename the text input Notes textbox.
- Place the Notes textbox between the Details control and the Respond by label.
Select Notes textbox.
Change the HintText value of the Notes textbox to My notes.
Remove the Default text.
Change the Mode to TextMode.MultiLine.
- Select Save topic icon.
- Replace the OnSelect formula of the Save topic icon with the formula below. 🤖 Note: The patch creates the new row in the Dataverse table.
Set(newTopic,Patch('Prioritz Topics',Defaults('Prioritz Topics'),{'My Notes': 'Notes textbox'.Text,Topic:'Topic name textbox'.Text,Details:'Topic details textbox'.Text,'Respond By':'respond by date picker'.SelectedDate,Photo:AddTopicImage.Image}));ForAll(colAddChoices,Patch('Prioritz Topic Items',Defaults('Prioritz Topic Items'),{Choice:ThisRecord.choice,'PrioritZ Topic':newTopic,Photo:ThisRecord.photo}));Back()
Select the View Topic Screen.
Click + Insert tab and select Text label.
Rename the label you just added Notes label.
Change the Text value of the Notes label to 'Topics gallery'.Selected.'My Notes'
- Rearrange the controls and move the Notes label between the details label and topic items gallery.
- Select the Home Screen and click Preview the app.
Click +.
Enter Test notes for Topic, Testing the notes for Details, Some notes here for My notes, select Response by date, and click Tap or click to add a picture.
Select any photo from your machine.
Type Choice One and click Tap or click to add a picture.
Select any photo from your machine.
Click + choice.
Add couple more choices with images.
Click Save.
🤖 Note: The new topic should be saved, and you should be navigated back to the list of topics.
Click to open the topic you just created.
- The notes should now be shown.
Close the app preview.
Click Publish.
- Select Publish this version and wait for the publishing to be completed.
🤖 Note: You may close the app designer.