> From: ramon.leon@allresnet.com
> To: smallwiki@iam.unibe.ch
> Subject: RE: Magritte question
> Date: Fri, 7 Sep 2007 14:19:31 -0700
>
> ct: Magritte question
> >
> > Hi,
> >
> > First of all, please excuse me if it's a stupid question, I'm
> > a newbie with Magritte.
> >
> > Is there a way to add conditions do descriptions "on the
> > fly"? For example I have an object with descriptions, and
> > when I do asComponent addValidatedForm, I would like to add a
> > condition to a description, but this time only.
> >
> > Cheers,
> >
> > Sop
>
> buildEditorFor: aModel
> ^(aModel description
> addCondition:[:memento | ];
> asComponentOn: aModel)
> addValidatedForm;
> yourself

Thanks, I Tried this :

buildEditorFor: anItem
(anItem description
addCondition: [:item | (Item repository contains: [:each | each id = item id) not];
asComponentOn: anItem)
addValidatedForm;
yourself

It seems to work fine, but the condition dosen't disappear until the session expires.
What am I missing ?
>
> Ramon Leon
> http://onsmalltalk.com
>
>
> _______________________________________________
> SmallWiki, Magritte, Pier and Related Tools ...
> https://www.iam.unibe.ch/mailman/listinfo/smallwiki


Besoin d'un e-mail ? Créez gratuitement un compte Windows Live Hotmail et bénéficiez d'un filtre antivirus gratuit ! Windows Live Hotmail