How to Change state on request using button on custom table

Chaitanya Redd1
Tera Guru

Hello Team,

I have created new custom table in that I have added state field with below choices

New, In progress, On Hold, Resolved, Closed & cancelled. Here I have trying to add buttons on the form

Resolve, Reopen, cancel & close. I have tried to create Resolve button on the form button it's not changing the state field value I have written below script include and Script in ui action as well but didn't worked and I have checked state model it's fine.

 

find_real_file.png

find_real_file.png

 

find_real_file.png

Can anyone help me where I went wrong.

 

Thanks,

Chaitanya

1 ACCEPTED SOLUTION

It will appear as you are just changing the tranistion here and allowing the ticket to move to resolve state from new state.

You can check the condition in the ui action to appear in the states.

Can you try putting the condition in the ui action to appear in the new state. ti will work.as we are just changing the transition into the ui action condition

 

View solution in original post

11 REPLIES 11

Chander Bhusha1
Tera Guru

Hi Chaitany,

Have you defined any state flows or state models. or any script include where you have defined the state transition.

There you have to mention the transition from the states like from which states it should go to which states.

The error shows you are not doing the valid transition flow so make sure that the tansition is valid

 

Mark helpful and corrects.

Thanks,

CB 

Hello CB,

I have created State model which is showing fine there is no issue and coming script include please find below image and help me if I have made any mistakes in this

find_real_file.png

Thanks,

Chaitanya

Hi Chaitanya,

This is just the states definition. Have you define any state model or state transition or state flows.

Like from which state it should go to which state.

like we have for change state model.

 

Thansk,

Cb

 

find_real_file.png

Hi Chaitanya,

you have to define the entry state as well for the new. (That is why you were getting error)

since you are moving the state of resolved from new state.

And in resolved state the enter state is 2(i believe not new ).

so can you please update the entry condition in resolved to ( 1 or 2 ) i.e. New or any other state.

Make change here

 

 

Mark helpful and correct if it helps

Thanks,

CB