Beans and designTimeProperties

Questions and answers on developing, deploying and using plugins and JavaBeans

Beans and designTimeProperties

Postby robrecht » Mon Feb 10, 2014 1:36 pm

Hi,

I'm using the servoy treeview bean but I am missing the designTimeProperties ...?
This causes errors in my solution since I am looping through all the elements of a form, and I'm checking whether there is a designTimeProperty or not.
Is there a way to check if a bean has this property, or maybe a way to check if an element is a bean so I can skip those elements?

Thanks
Robrecht
robrecht
 
Posts: 99
Joined: Wed Aug 01, 2012 4:30 pm

Re: Beans and designTimeProperties

Postby mboegem » Mon Feb 10, 2014 2:10 pm

robrecht wrote:Is there a way to check if a bean has this property, or maybe a way to check if an element is a bean so I can skip those elements?


this should work:
Code: Select all
if('getDesignTimeProperty' in forms.myForm.elements.myTreeView) {
     // does exist, now read and process it
}
Marc Boegem
Solutiative / JBS Group, Partner
Servoy Specialist
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer

Image
User avatar
mboegem
 
Posts: 1750
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam

Re: Beans and designTimeProperties

Postby robrecht » Mon Feb 10, 2014 5:54 pm

Thanks Marc, that's it!
robrecht
 
Posts: 99
Joined: Wed Aug 01, 2012 4:30 pm


Return to Plugins and Beans

Who is online

Users browsing this forum: No registered users and 11 guests

cron