Adding custom property
-
- 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
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.
-
- 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
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.
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.
-
- 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
Sorry, I should've specified but i do indeed mean the translation dictionnary.
- 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
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.
-
- 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
Ok, Thank you both for your help.
Who is online
Users browsing this forum: No registered users and 0 guests