Adding custom property

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
mpilo0
Profound User
Posts: 49
Joined: Wed Jan 08, 2014 11:49 am
First Name: Michael
Last Name: Pilote
Company Name: Oceanex
Phone: (514) 875-8558
State / Province: Quebec
Country: Canada
Contact:

Adding custom property

Post by mpilo0 »

We're creating a widget from scratch, however we have a few problems because we want to bind a dictionnary field into the new property. When i create the new widget, i have my property who appears and everything, however i don't have the option to bind to a dictionnary field. I've read the documentation on pui.addCustomProperty and cannot find a way to do it. Please help.
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: Adding custom property

Post by Scott Klement »

Not exactly sure what you mean by "bind a dictionary field to a new property." Are you referring to the translation dictionary? Or something like a field reference file (data dictionary)? Or...?

Maybe you are just looking to set up your widget so that the default value of a property is bound to a particular field? If so, this would be done with the 'defaults' property on the pui.toolbox.add() API.
mpilo0
Profound User
Posts: 49
Joined: Wed Jan 08, 2014 11:49 am
First Name: Michael
Last Name: Pilote
Company Name: Oceanex
Phone: (514) 875-8558
State / Province: Quebec
Country: Canada
Contact:

Re: Adding custom property

Post by mpilo0 »

Sorry, I should've specified but i do indeed mean the translation dictionnary.
User avatar
David
Profound Logic Staff Member
Posts: 690
Joined: Fri Jan 04, 2008 12:11 pm
First Name: David
Last Name: Russo
Company Name: Profound Logic Software
Contact:

Re: Adding custom property

Post by David »

Sorry, the 'pui.addCustomProperty()' document needed an update -- I've done so now. If you pass a property "translate" set to true, the option will appear to translate your custom property.
mpilo0
Profound User
Posts: 49
Joined: Wed Jan 08, 2014 11:49 am
First Name: Michael
Last Name: Pilote
Company Name: Oceanex
Phone: (514) 875-8558
State / Province: Quebec
Country: Canada
Contact:

Re: Adding custom property

Post by mpilo0 »

Ok, Thank you both for your help.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests