custom properties

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
sgagn0
Profound User
Posts: 41
Joined: Fri Aug 16, 2013 7:23 am
First Name: Sebastien
Last Name: Gagne
Company Name: Oceanex
Contact:

custom properties

Post 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"
}]
);
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: custom properties

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest