Problem should be closed only when the Ptask and Change request associated are closed

Siva Jyothi
Tera Contributor

Hi Experts,

We have a complete UI Action on the Problem Form, when it is clicked it should throw an alert if the associated Ptask is active and also it should throw one more alert saying associated Change request is active. 

In the UI Action I'm able to glide only one table and populate the alert but I'm not sure how we can glide two table and check the conditions and throw different alerts.

Can anyone please guide me on this.

Thanks in Advance,

Lakshmi.

2 REPLIES 2

chrisperry
Giga Sage

Hi there,

Can you please share the code you already have for your UI action?

If this answer is helpful please mark correct and helpful!

Regards,

Christopher Perry

If this answer is helpful please mark correct and helpful!

Regards,
Chris Perry

Rajkumar Sakth2
Tera Expert

If they are on the form as a reference field, you can get their status thorugh g_form.getReference() and deny form submission from client side validation itself.

If they are on related list, you can have a display BR to capture them in scartchpad variable and validate from client-side.

Otherwise, in the UI action at server Side, you can put "setAbortAction(true)" to deny form submission and show "Invalid Update" message.