Page 1 of 1

custom properties

Posted: Tue Apr 22, 2014 11:58 am
by sgagn0
Is there a way to add multiple properties at the same time (same instance of pui.addCustomProperty)?
I tried to following and it did not work.
pui.addCustomProperty([{
name: "weekNumbers",
type: "boolean",
help: "blabla help",
controls: ["ocx_calendar"],
category: "ocx_generalDisplay"
},
{
name: "events",
type: "long",
help: "blabla2 help",
controls: ["ocx_calendar"],
category: "ocx_generalDisplay"
}]
);

Re: custom properties

Posted: Tue Apr 22, 2014 12:26 pm
by Scott Klement
I'm pretty sure that pui.addCustomProperty() doesn't accept an array. Of course, you could create an array in a variable, and then call pui.addCustomProperty() in a loop... Or just call pui.addCustomProperty() repeatedly, passing a different object every time.