that was so intuitive that I can not believe I didn't just stumble across it. 
It creates a little weird syntax. I was expecting:

creativeBriefTable.newFlagBooleanColumn("isfiled", false, false);

what i got was:

creativeBriefTable.newFlagBooleanColumn("isfiled", false, 
er.extensions.foundation.ERXValueUtilities.booleanValue("false"));

Obviously, it is just fine, just a little wordy.

Thank you,

Ted


--- On Wed, 4/18/12, Chuck Hill <[email protected]> wrote:

> From: Chuck Hill <[email protected]>
> Subject: Re: Entity Modeler, attributes default value for migrations
> To: "John Huss" <[email protected]>
> Cc: "Theodore Petrosky" <[email protected]>, "WebObjects-Dev Mailing List 
> List" <[email protected]>
> Date: Wednesday, April 18, 2012, 5:05 PM
> Hand edit? 
> Eeew!   :-P
> 
> Select the property and then the User Info tab in the
> Properties inspector.  Click where it says (0 items)
> and hit Enter.  Edit the name and value.
> 
> 
> Chuck
> 
> 
> On 2012-04-18, at 1:07 PM, John Huss wrote:
> 
> > You have to add it manually into the userInfo
> dictionary by editing by model with a text editor.  For
> example, for the ATTRIBUTE called "deleted":
> > 
> > ...
> >         {
> >         
>    columnName = "scp_deleted"; 
> >         
>    name = deleted; 
> >         
>    prototypeName = intBoolean; 
> >         
>    userInfo = {default = 0; }; 
> >         
>    width = 1; 
> >         }
> > ...
> > 
> > On Wed, Apr 18, 2012 at 2:33 PM, Theodore Petrosky
> <[email protected]>
> wrote:
> > When I create an attribute in Entity Modeler, and
> create the migrations, it does a beautiful job.
> > 
> > creativeBriefTable.newFlagBooleanColumn("isfiled",
> false);
> > 
> > and I know I can add a default value here
> > 
> > creativeBriefTable.newFlagBooleanColumn("isfiled",
> false, false);
> > 
> > problem is that if I go back and alter the schema and
> recreate the migration, I must remember to add in the
> default selector(s).
> > 
> > I don't see in EM where I could put in a default value
> (or I am blind).
> > 
> > Is there a place to put in a default value in Entity
> Modeler so the migrations it creates include the default
> value?
> > 
> > Ted
> >  _______________________________________________
> > Do not post admin requests to the list. They will be
> ignored.
> > Webobjects-dev mailing list      ([email protected])
> > Help/Unsubscribe/Update your Subscription:
> > https://lists.apple.com/mailman/options/webobjects-dev/johnthuss%40gmail.com
> > 
> > This email sent to [email protected]
> > 
> > _______________________________________________
> > Do not post admin requests to the list. They will be
> ignored.
> > Webobjects-dev mailing list      ([email protected])
> > Help/Unsubscribe/Update your Subscription:
> > https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
> > 
> > This email sent to [email protected]
> 
> -- 
> Chuck Hill         
>    Senior Consultant / VP Development
> 
> Practical WebObjects - for developers who want to increase
> their overall knowledge of WebObjects or who are trying to
> solve specific problems.    
> http://www.global-village.net/gvc/practical_webobjects
> 
> 
> 
> 
> 
> 
> 
> 
> 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to