Skip to main content

3. Add Column for My Notes

LAB SCENARIO

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​

  1. Expand Tables and select the PrioritZ Topic table.

  2. Click + New and select Column.

Lab-01 Image

  1. Enter My Notes for Display name, select Plain text for Data type.

Lab-01 Image

  1. Click Save.

  2. 🚨 Note: Do not navigate away from this page.

3.2 Update the admin app​

  1. Make sure you are still in the PrioritZ solution.

  2. Select Apps and click to open the PrioritZ Admin application.

Lab-01 Image

  1. Select the Add Topic Screen.

  2. Click + Insert and select Text input.

Lab-01 Image

  1. Rename the text input Notes textbox.

Lab-01 Image

  1. Place the Notes textbox between the Details control and the Respond by label.

Lab-01 Image

  1. Select Notes textbox.

  2. Change the HintText value of the Notes textbox to My notes.

Lab-01 Image

  1. Remove the Default text.

  2. Change the Mode to TextMode.MultiLine.

Lab-01 Image

  1. Select Save topic icon.

Lab-01 Image

  1. 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()

Lab-01 Image

  1. Select the View Topic Screen.

  2. Click + Insert tab and select Text label.

  3. Rename the label you just added Notes label.

  4. Change the Text value of the Notes label to 'Topics gallery'.Selected.'My Notes'

Lab-01 Image

  1. Rearrange the controls and move the Notes label between the details label and topic items gallery.

Lab-01 Image

  1. Select the Home Screen and click Preview the app.

Lab-01 Image

  1. Click +.

  2. 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.

Lab-01 Image

  1. Select any photo from your machine.

  2. Type Choice One and click Tap or click to add a picture.

Lab-01 Image

  1. Select any photo from your machine.

  2. Click + choice.

Lab-01 Image

  1. Add couple more choices with images.

  2. Click Save.

Lab-01 Image

  1. 🤖 Note: The new topic should be saved, and you should be navigated back to the list of topics.

  2. Click to open the topic you just created.

Lab-01 Image

  1. The notes should now be shown.

Lab-01 Image

  1. Close the app preview.

  2. Click Publish.

Lab-01 Image

  1. Select Publish this version and wait for the publishing to be completed.

🤖 Note: You may close the app designer.