Using Follow-ups

We have facilitated the users of our application to send feedback to the development team. However, we have not implemented an option for the team to receive follow-up information about their feedback yet.

There are several possibilities to return follow-up information to the user. The least appealing would be to create a new APEX account for the user so he can look into Team Development himself.

Another option would be to return an e-mail whenever a follow-up is produced.

A third option that we will explain further in this recipe is to build a page using built-in APEX views.

Getting ready

Make sure that the environment created in the previous recipe on 'Using Feedback' is available.

How to do it…

In the first place, we have to create some follow-up.

  1. Go to Team Development.
  2. Navigate to the Feedback section and select the Feedback tab on the overview.
  3. Go to the Expanded view.
  4. Press the Follow up button on the Feedback entry.
  5. In the Enter follow up text area, enter We have added more information.
  6. Press Create Follow Up.

Now, we have to communicate this new information to the user.

First, we'll build a simple Interactive Report to show all feedback given by the current user.

  1. Go to the Enterprise Application in the Application Builder.
  2. Press Create Page.
  3. Select Report and press Next.
  4. Select Interactive Report and press Next.
  5. Name the Page and Region Feedback Overview and press Next.
  6. Select Use an existing tab set and create a new tab within the existing tab set from the Radio Group and enter the New Tab Label Feedback.
  7. Press Next.
  8. Use the following query in the SQL Statement area:
    select feedback_id
    , feedback_number
    , feedback
    , public_response
    from apex_team_feedback
    where logging_apex_user = :APP_USER
    

    [1346_12_01.sql]

  9. Change Link to Single Row View to No and press Next.
  10. Press Finish.

We now have a page that will show some information about the logged feedback that the application user has added.

Now, we'll create a page to show the follow-ups for this feedback.

  1. Go to the Enterprise Application in the Application Builder.
  2. Press Create Page.
  3. Select Report and press Next.
  4. Select Interactive Report and press Next.
  5. Name the Page and Region Feedback follow-up and press Next.
  6. Select Use an existing tab set and reuse an existing tab within that tab set from the radio group and press Next.
  7. Select the Feedback tab from the pulldown list and press Next.
  8. Use the following query in the SQL Statement area (change P7 if your page has another ID).
    select follow_up
    from apex_team_feedback_followup
    where feedback_id = :P7_FEEDBACK_ID
    

    [1346_12_02.sql]

  9. Change Link to Single Row View to No and press Next.
  10. Press Finish.
  11. Press Edit Page.
  12. Right-click on the feedback follow-up region and select Create Page Item.
  13. Select Hidden and press Next.
  14. Name it P7_FEEDBACK_ID (or change the page number according to what your situation might be) and press Next.
  15. Set Value Protected to No and press Next.
  16. Press Create Item.

Now, we just have to link the two pages together.

  1. Go to the Feedback Overview Page in the Application Builder.
  2. Right-click on the Feedback Overview region and select Edit Report Attributes.
  3. Press on the pencil icon next to FEEDBACK_ID.
  4. Scroll down to the Column Link section.
  5. Enter #FEEDBACK_ID# into the Link Text (or use the shortcut under the text item).
  6. Make sure target is set to Page in this Application and enter 7 (or the number of your page) into the Page field.
  7. In the item list set Name to P7_FEEDBACK_ID and Value to #FEEDBACK_ID# for item 1.
  8. Press Apply Changes Twice.
  9. Run the Feedback Overview Page logging in as the user that entered the feedback earlier in the recipe.
How to do it…

As we can see, the feedback we entered in the recipe Using Feedback in this chapter is shown.

Press the link on the Feedback_Id column to see the next page.

How to do it…

And there we have it. This is a very simple page, but it can be expanded much further.

How it works

Application Express in general and Team Development in particular offer some built-in views to select information directly from the database. Two of those views have been shown here: apex_team_feedback and apex_team_feedback_followup.

Besides the columns that we have used in the example, much more information can be gathered to use to our advantage.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.224.56.29