LLBLGen GUI Templates - Add custom properties plugin

Posts   
 
    
daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 02-Feb-2008 20:03:49   

Hi all.

I'm using a modified version of the 'LLBLGen GUI Templates' released by Frans. I'm working in a project with a lot of entities (+100), so I decided to write a plugin (a modification of the 'Add Custom Properties Plugin') to bulk-set some properties used by the templates:

**LabelText ** If you check this option. LabelText will be added to field's custom properties. The value used will be the FieldName split by its Pascal/Camel casing. For example, if some entity field name is CustomerName, the LabelText will become '_Customer Name_'.

**DescriptiveField ** Sometimes we have a general descriptive field name in a lot of entities. For example 'Name' (Product.Name, Customer.Name, Category.Name, Supplier.Name, etc.). If you check this option and type your common DescriptiveField name, the property will be added to that entities which contains such fieldName . This doesn't add the property if the fieldname isn't present.

**UseLookupDropDownList ** If you check this option, a UseLookupDropDownList custom property is added to fields that are the (m) part of an (m:1) relation and the FK is single-field.

So, I post the zipped code here. I hope it would be helpful for someone else wink

Cheers,

Attachments
Filename File size Added on Approval
LLLBLGen_GUITemplates_CustomPropertiesPlugin_02022008.zip 15,273 02-Feb-2008 20:04.34 Approved
David Elizondo | LLBLGen Support Team
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39774
Joined: 17-Aug-2003
# Posted on: 17-Feb-2008 16:42:01   

Thanks David!

I've added this to the templates section of v2.5, as it's perhaps otherwise overlooked simple_smile

Frans Bouma | Lead developer LLBLGen Pro