Case Ticket Action Widget Conditions

daggupati
Tera Contributor

Hi,

I am looking to update Case Ticket Action widget. In that widget it will show "Accept" or "Reject" button only if state is "Resolved" or "Awaiting Info". We created new field in the Case called "Customer Input" field type is true/false. So we want to display Accept or Reject button only if that check box (Customer Input) is checked. Remaining process is same If they Accept it will go to State Closed if they Reject it will go to Open.

 

I tried to update the if condition in HTML and Client controller but it is not working

find_real_file.png

find_real_file.png

find_real_file.png

Thanks!

10 REPLIES 10

daggupati
Tera Contributor

Hi,

Any Other idea. 

 

Thanks

Did you try printing the value on the View?

{{c.data.u_customer_input}}

 

That would help to see if the variable on the client side has got the updated value.

In the Serverside script i put gs.addInfoMessage(). It is returning the value

find_real_file.png

daggupati
Tera Contributor

Is there any changes i need to made? I tried to put {{c.data.u_customer_input}} it is not displaying anything

You should debug the code. I'd recommend you to add {{c.data}} to see the exact data returned from the server. You can additionally hold Ctrl key pressed and open context menu of the widget (use right mouse click with holding Ctrl key). Then you can choose "Log to console: $scope.data" and examine the console log (press F12 and choose console). Probably you works not with the table, which has u_customer_input field or you made some typing error? One can find such problem only during debugging. In the same way you can add debugger; statement in the code of client controller, open Developer Tools of Chrome, and reload the page. You will be able debug client code and examine all real values returned from the server.