Create a popup window for UI Action button to close similar tasks with matching Short Description

Nishant26
Tera Contributor

Hi All,

 

I have a requirement where I need to provide a "prompt"/"Popup" Window when the user closes the order task through UI Action Button on the form, below are the requirements details.

 

1. If there are multiple Order Tasks with same "short description" associated with a Customer Order, when the user close complete one of those tasks, then I need to display the following options to the user.

a. Close All Similar Order Tasks

b. Close This One Order Tasks

c. Cancel

 

1(a) If the user selects "close all similar Order Tasks" THEN it should close all similar Order Tasks.

 

1(b) If the user selects “Close Just This Order Task” then it should close only that task.

 

1(c) If the user selects “Cancel” THEN remove the display and take the user back to how the screen previously was.

 

Please let me know how to proceed further.

 

Thanks!

13 REPLIES 13

Hi @Nishant26 

Right click and click on Inspect, then click on the UI Action button. And give me the screenshot of the error in browser console.

Thanks,
Anvesh

Hi Anvesh, 

 

I have attached the screenshot for your reference.

 

Thanks.

@Nishant26 share screen shot of your UI Action entire page and script.

Thanks,
Anvesh

Hi Anvesh,

 

I have attached screen shots for UI Action for your reference.

 

Nishant26_0-1696481424456.png

 

 

Nishant26_1-1696481568702.png

 

Thanks.

@Nishant26 You are missing var in line 4, it should be, its my mistake too.

 

var dlg = new dialogClass('order_task_close_confirm_form');

 

Thanks,
Anvesh