cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
694
Views
6
Helpful
1
Replies
Highlighted

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 all useful posts and mark as answer if it solves your issue

Best Regards
Thomas G. Johannesen
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Found the solution

    setUserStateNotready: function (ReasonCode) {
        rc = { id: ReasonCode };
        user.setState(states.NOT_READY, rc);
-----------------------------------------------------------
Please rate all useful posts and mark as answer if it solves your issue

Best Regards
Thomas G. Johannesen

View solution in original post

1 REPLY 1
Highlighted

Found the solution

    setUserStateNotready: function (ReasonCode) {
        rc = { id: ReasonCode };
        user.setState(states.NOT_READY, rc);
-----------------------------------------------------------
Please rate all useful posts and mark as answer if it solves your issue

Best Regards
Thomas G. Johannesen

View solution in original post

Content for Community-Ad