04-09-2015 06:10 AM
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.
04-10-2015 06:21 AM
Found the solution
setUserStateNotready: function (ReasonCode) { | |
rc = { id: ReasonCode }; | |
user.setState(states.NOT_READY, rc); |
04-10-2015 06:21 AM
Found the solution
setUserStateNotready: function (ReasonCode) { | |
rc = { id: ReasonCode }; | |
user.setState(states.NOT_READY, rc); |
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide