How to call UI action in another UI action

Mani22
Kilo Contributor

Hi All,

I have a requirement on change request that Fill Out Risk Assessment and Execute Risk Calculation do it in one step

I have done the below work which is not worked properly 

1) Made 'Execute Risk Calculation' to bussiness rules in change properties 

   Result: Its worked when change is publish but not working in case of resubmit the 'Fill Out Risk Assessment' UI action when change is in new state

2) add "gsftSubmit(null, g_form.getFormElement(), "execute_risk_calculation");" in "Fill Out Risk Assessment" end of the script

  Result : Change form got hung and  nothing is returned 

  As per the google link gsftSubmit(null, g_form.getFormElement() only work in Madrid  Patch 5

 

Please advise how to full fill this request 

 

Thanks in Advance 

1 ACCEPTED SOLUTION

Nitesh Balusu
Giga Guru

Since you want two scripts two run at the same time, why don't you also add'Execute Risk Calculation' Ui action script in a script include and call the script include from the Fill out risk calculation UI Action. That'll make your job easier.

Achieves the same result.

View solution in original post

4 REPLIES 4

Harsh Vardhan
Giga Patron

you can use first ui action "Action name" field value in second UI Action to trigger it. 

Could you please provide the syntax . I have included below syntax in end of the frist UI Action .

 

2) add "gsftSubmit(null, g_form.getFormElement(), "execute_risk_calculation");" in "Fill Out Risk Assessment" end of the script

  Result : Change form got hung and  nothing is returned 

  As per the google link gsftSubmit(null, g_form.getFormElement() only work in Madrid  Patch 5

Nitesh Balusu
Giga Guru

Since you want two scripts two run at the same time, why don't you also add'Execute Risk Calculation' Ui action script in a script include and call the script include from the Fill out risk calculation UI Action. That'll make your job easier.

Achieves the same result.

Thank you Nitesh. I will try it