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
Solved! Go to Solution.
Found the solution
setUserStateNotready: function (ReasonCode) { | |
rc = { id: ReasonCode }; | |
user.setState(states.NOT_READY, rc); |
Found the solution
setUserStateNotready: function (ReasonCode) { | |
rc = { id: ReasonCode }; | |
user.setState(states.NOT_READY, rc); |