Magritte question

sop soptwo sop2 at hotmail.fr
Sat Sep 8 02:54:22 MEST 2007




> From: ramon.leon at allresnet.com
> To: smallwiki at 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

_________________________________________________________________
Téléchargez gratuitement l'économiseur d'écran Les Simson Le film !
http://specials.divertissements.fr.msn.com/lessimpsonlefilm/economiseur.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20070908/5226052a/attachment.html


More information about the smallwiki mailing list