Caption on entity fields

Posts   
 
    
GizmoTN76
User
Posts: 36
Joined: 22-Oct-2007
# Posted on: 01-Mar-2008 19:17:01   

Ok, I've got a stupid question that I'm sure has probably been asked before, but why is there a caption on the TypedView field and not the entity field?

I know you can add custom properties to entities in the designer and refresh them from the db etc. but it would be really nice to be able to just specify a caption inline in the designer that would exist on the field so that you can deal with captions polymorphically. IE if I have a validation message it's nice to be able to include the field name with the field error in a friendly way so that I can make that logic generic. "FieldX is required". I've pondered trying to go the route of dealing with the custom properties in the db for sql server but if I remember correctly oracle doesn't have native support for those and it would be much nicer to just be able to walk through the designer and set them quickly for everything similar to the way TypedViews work.

I guess my question is, why was this skipped in the designer, and is there any easy way to accomplish this sort of ability?

goose avatar
goose
User
Posts: 392
Joined: 06-Aug-2007
# Posted on: 01-Mar-2008 22:19:20   

I think the best way would be writing a plugin for the designer and work with the custom properties or modify the templates.

GizmoTN76
User
Posts: 36
Joined: 22-Oct-2007
# Posted on: 01-Mar-2008 22:24:51   

Are there any good examples for extending the designer in a similar fashion?

I guess the next question would be if that effort would end up being in vain once 3.0 ships (isn't the designer changing drastically in 3.0?)

goose avatar
goose
User
Posts: 392
Joined: 06-Aug-2007
# Posted on: 01-Mar-2008 22:25:49   

Please download the SDK and the source code from the customer area in order to read the code of the shipped in plugins.

See this thread for a simple example: http://llblgen.com/tinyforum/Messages.aspx?ThreadID=6900