398
Views
9
Comments
Solved
Refresh form after Pop_Editor_Close
Question

I have a TaskDetail screen. The Task has a column CompletedDescription and there is a static entity TaskStatus, when the TaskStatus is "Completed" it appears in the TaskDetail form a button "Add Description".  When this "Add Description" button is clicked it should appear a popup with only one input for the user to insert a description for the CompletedDescription Task column.


To achieve this:


In the TaskDetail screen there is:

 - an input parameter "TaskId"

- a preparation with an aggregate "GetTaskById". 

- a form that has the button "Add Description"  with the destination property with the name of the screen created with the popup content, "AddDescription" and the TaskId as a parameter.

- a Popup_Editor next to the "Add Descripton" button with LinkOrButton property "AddDescripton.Id" and the destination property of the Poup_Editor is a screen action "UpdateTaskStatus" that is a server action to update Task status based on some button clicks. 


In the web screen "AddDescription" there is:

-  an input parameter "TaskId"

- a preparation with an aggregate "GetTaskById"

- a form with only a text input for the user enter a description and a "Update" button. This save button has a screen action "Update". In this screen action there is a UpdateTask entity action and then a Popup_Editor_Close.


This is working but don't seem very correct because the AddDescription web screen, that is only needed to show the content of the popup, has the input parameter TaskId but also the preparation to get the current Task, however, in the TaskDetail screen there is already a preparation to get the current Task. And also there is an issue, after the Pop_Editor_Close I want to refresh the form of the TaskDetail screen, however in the "Update" screen action of the AddDescription web screen is not possible to access the form of the TaskDetail web screen. Do you know how to properly achieve this?

2020-09-11 18-53-44
Stacey Levine
Solution

If you want to do an action after the popup, you have to use the notify widgets that are deprecated, but still useable. The pop-up sends a notifiy message. On the page itself you can read the message and do whatever action you want.

2020-07-21 19-28-50
Rajat Agrawal
Champion

Hi,

You can use Notify  or Popup_Editor_Notify in the popup to send the argument from Popup to parent screen and you can read message by using NOTIFYGETMESSAGE action on the popup widget destination..




Thanks,

Rajat Agrawal

UserImage.jpg
OsCaR_

Thanks, but it seems that it's not possible to add the Deprecated_Notify to the "Update" action of the "Add Description" screen. It appears a blocked symbol, do you know why?

2020-07-21 19-28-50
Rajat Agrawal
Champion

OsCaR_ wrote:

Thanks, but it seems that it's not possible to add the Deprecated_Notify to the "Update" action of the "Add Description" screen. It appears a blocked symbol, do you know why?


You can use Notify action, did you face any problem in using it..


Thanks,

Rajat Agrawal

UserImage.jpg
OsCaR_

Thanks, but the Notify don't appear only the Deprecrated_Notify, however, is not possible to add the Deprecated_Notify in the screen because it appears a block icon.

2020-07-21 19-28-50
Rajat Agrawal
Champion

OsCaR_ wrote:

Thanks, but the Notify don't appear only the Deprecrated_Notify, however, is not possible to add the Deprecated_Notify in the screen because it appears a block icon.

You need to do manage dependencies in your espace and you need to select Notify action from system, then it will start appearing on your search.


Thanks,

Rajat Agrawal

2020-07-21 19-28-50
Rajat Agrawal
Champion

2020-09-11 18-53-44
Stacey Levine

Make sure that you add a reference to the actions. You should have no problem using them. Please note that this screenshot is from OutSystems 11.

2020-07-21 19-28-50
Rajat Agrawal
Champion

In Outsystems 11, you can use events to notify.


Thanks,

Rajat Agrawal

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.