cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1213
Views
6
Helpful
1
Replies

Finesse SampleGadget Not Ready Reason codes.

Hey.

Im playing with the Samplegadget, and need to find out have to go not ready with and reasoncode.

The button works perfect without reasoncodes, but not with reasoncodes

This is from the .js file (made the function myself)

    setUserStateNotready: function (ReasonCode) {
        user.setState(states.NOT_READY, ReasonCode);
    },

And this is my call from the .xml file

onClick="finesse.modules.SampleGadget.setUserStateNotready(1);

Have also tried with

onClick="finesse.modules.SampleGadget.setUserStateNotready("1");


with no luck.


Please advise


Regards

Thomas

Please rate helpful posts and if applicable mark "Accept as a Solution".
Thanks, Thomas G. J.
1 Accepted Solution

Accepted Solutions

Found the solution

    setUserStateNotready: function (ReasonCode) {
        rc = { id: ReasonCode };
        user.setState(states.NOT_READY, rc);
Please rate helpful posts and if applicable mark "Accept as a Solution".
Thanks, Thomas G. J.

View solution in original post

1 Reply 1

Found the solution

    setUserStateNotready: function (ReasonCode) {
        rc = { id: ReasonCode };
        user.setState(states.NOT_READY, rc);
Please rate helpful posts and if applicable mark "Accept as a Solution".
Thanks, Thomas G. J.