MADescription beHidden don't update model

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

MADescription beHidden don't update model

dtrussardi@tiscali.it
Hi,

i have a model with some descriptions.

One of it, descriptionMap, is set with beHidden property because i think to use it only for update the relative cache description into descriptionContainer.

The relative code is :

^( super descriptionContainer )
        addCondition:[ : memento|  

                 memento cache at: self descriptionOK

                         ifTrue: [ memento cache at: self descriptionMap put:  'xyz'.      true ]

                        ifFalse:[ false ].

                                ]
        labelled:  'Error is not ok;
        yourself



The cache is right update.

The problem is to update the model relative to the descriptionMap cache.

When confirm the form other instances model is right update but descriptionMap not.

Any idea?

Thanks,

        Dario



_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: MADescription beHidden don't update model

Lukas Renggli
I do not understand your question, but maybe the FAQ sheds some light on it?

    http://www.lukas-renggli.ch/smalltalk/magritte/faq

Lukas

On 25 March 2010 16:56, [hidden email] <[hidden email]> wrote:

> Hi,
>
> i have a model with some descriptions.
>
> One of it, descriptionMap, is set with beHidden property because i think to use it only for update the relative cache description into descriptionContainer.
>
> The relative code is :
>
> ^( super descriptionContainer )
>        addCondition:[ : memento|
>
>                 memento cache at: self descriptionOK
>
>                         ifTrue: [      memento cache   at: self descriptionMap put:  'xyz'.      true ]
>
>                        ifFalse:[ false ].
>
>                                ]
>        labelled:  'Error is not ok;
>        yourself
>
>
>
> The cache is right update.
>
> The problem is to update the model relative to the descriptionMap cache.
>
> When confirm the form other instances model is right update but descriptionMap not.
>
> Any idea?
>
> Thanks,
>
>        Dario
>
>
>
> _______________________________________________
> Magritte, Pier and Related Tools ...
> https://www.iam.unibe.ch/mailman/listinfo/smallwiki
>



--
Lukas Renggli
www.lukas-renggli.ch

_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki