jamar
9 years agoIdeator III
Changing property of a tick box
Hello,
Hope someone can help me, as I am not sure what is going wrong on what is a simple thing.
I have a form (PR) that has a Boolean tick box (trl_on_hold) that is set as disabled on the form (so it can be seen but not changed by the users)
I am trying to create a method to tick the box when the method runs. It will run as part of a workflow task (i.e. on vote it will tick the box). I have it created as a server-side method
I have tried all the below but all give me errors . I'm new to development on ARAS. Can anyone see what I have done wrong, or point me in the right direction. I know in regular c# you can change the value with onhold = !onhold.
Try 1
bool holder = true;
this.getProperty("trl_on_hold", "");
this.setProperty("trl_on_hold", holder);
return this;
Try 2
Item pr = this.newItem("PR","edit");
pr.setProperty("trl_on_hold","1");
pr = pr.apply();
return pr;
Try 3
Item pr = this.newItem("PR","edit");
pr.setPropertyAttribute("trl_on_hold","is_null","1");
pr = pr.apply();
return pr;
Thanks in advance