CREATING DATA ACTIONS

Creating Actions for Dashboard Screen

In this learning content, we will analyze the action needs on the Web Dashboard screen and create the necessary actions. First, we will create the custom action that shows the user information in the Header and then we will create the idea listing action on the Dashboard screen by preparing two actions that feed the summary information of the ideas.

In this learning content, we will analyze the action needs on the Web Dashboard screen and create the necessary actions.

When we examine the Dashboard screen, there is an area in the Header that shows the information of the logged-in user.
A special action is needed for this field.

When we examine the rest of the screen, there is a binary card structure containing summary information for the ideas. To feed this summary structure with dynamic data, we will create two different custom actions that work within the same logic.

Finally, a listing action is required for the idea list on the screen. We have already created this action in the previous learning content, Select Action. For this reason, we do not need to create this action again. You can view the relevant action in the Custom Actions panel on the left side.

If you are ready, let's start creating actions.

First of all, let's create a custom action that provides a listing function according to the username, that is, the e-mail address of the logged-in user for the action that allows the profile information in the Header to be displayed.

  1. Open the Custom Actions panel on the left side and click on the + icon next to the Managed DB statement.
  2. Select Select Action from the drop-down menu.
  3. Name your action.
  4. Select the Personnel table through the Choose Source field.
  5. Use the Fields field to add the ID, Fullname, PersonnelImage, and Title fields, as well as the default Email.
  6. Select the Personnel table in the Filter field, then select the email column and leave the default is equal to selected.
  7. Then click on the symbol picker on the far right and select Current Username in the Default category.
  8. This will use the username of the logged-in user, i.e. the e-mail address, to retrieve that person's information from the personnel table.

Now let's create the actions that will be included in the binary card structure, which will give the number of all ideas and the number of ideas created by the logged-in user.

  1. Let's start with the number of all ideas. Create a new Select Action using the Custom Actions panel.
  2. Name the action and select the Idea table.
  3. Select Id in the Field field and select the Count function.
  4. In the Alias field, name TotalIdea and create the action by clicking the Create button.
  5. Now let's continue with the action that will give the total number of ideas created by the logged-in user.
  6. Create and name a new Select Action.
  7. Select the Idea table and associate it with the Personnel table.
  8. Select Id in the Fields field and select the Count function.
  9. In the Alias field, name TotalUserIdea.
  10. Delete the Field for the Personnel table.
  11. Then select the Personnel table in the Filter field, then select the email column, and leave the default is equal to selected.
  12. Then click on the symbol picker on the far right and select Current Username in the Default category. Click on the Create button.
  13. For the GalleryView structure that lists the recently added ideas, we will use the action we created in the Select Action content from the previous learning content.
    Therefore, there is no need for an additional action.

With this process flow, we have created the necessary actions for the Dashboard screen of the I Have an Idea Web application. We are waiting for you to create the necessary actions for the Dashboard screen in the mobile application.

In this learning content, we will analyze the action needs on the Web Dashboard screen and create the necessary actions. First, we will create the custom action that shows the user information in the Header and then we will create the idea listing action on the Dashboard screen by preparing two actions that feed the summary information of the ideas.

In this learning content, we will analyze the action needs on the Web Dashboard screen and create the necessary actions.

When we examine the Dashboard screen, there is an area in the Header that shows the information of the logged-in user.
A special action is needed for this field.

When we examine the rest of the screen, there is a binary card structure containing summary information for the ideas. To feed this summary structure with dynamic data, we will create two different custom actions that work within the same logic.

Finally, a listing action is required for the idea list on the screen. We have already created this action in the previous learning content, Select Action. For this reason, we do not need to create this action again. You can view the relevant action in the Custom Actions panel on the left side.

If you are ready, let's start creating actions.

First of all, let's create a custom action that provides a listing function according to the username, that is, the e-mail address of the logged-in user for the action that allows the profile information in the Header to be displayed.

  1. Open the Custom Actions panel on the left side and click on the + icon next to the Managed DB statement.
  2. Select Select Action from the drop-down menu.
  3. Name your action.
  4. Select the Personnel table through the Choose Source field.
  5. Use the Fields field to add the ID, Fullname, PersonnelImage, and Title fields, as well as the default Email.
  6. Select the Personnel table in the Filter field, then select the email column and leave the default is equal to selected.
  7. Then click on the symbol picker on the far right and select Current Username in the Default category.
  8. This will use the username of the logged-in user, i.e. the e-mail address, to retrieve that person's information from the personnel table.

Now let's create the actions that will be included in the binary card structure, which will give the number of all ideas and the number of ideas created by the logged-in user.

  1. Let's start with the number of all ideas. Create a new Select Action using the Custom Actions panel.
  2. Name the action and select the Idea table.
  3. Select Id in the Field field and select the Count function.
  4. In the Alias field, name TotalIdea and create the action by clicking the Create button.
  5. Now let's continue with the action that will give the total number of ideas created by the logged-in user.
  6. Create and name a new Select Action.
  7. Select the Idea table and associate it with the Personnel table.
  8. Select Id in the Fields field and select the Count function.
  9. In the Alias field, name TotalUserIdea.
  10. Delete the Field for the Personnel table.
  11. Then select the Personnel table in the Filter field, then select the email column, and leave the default is equal to selected.
  12. Then click on the symbol picker on the far right and select Current Username in the Default category. Click on the Create button.
  13. For the GalleryView structure that lists the recently added ideas, we will use the action we created in the Select Action content from the previous learning content.
    Therefore, there is no need for an additional action.

With this process flow, we have created the necessary actions for the Dashboard screen of the I Have an Idea Web application. We are waiting for you to create the necessary actions for the Dashboard screen in the mobile application.

Files

Yardımcı kaynaklar

Glossary