« Return to Thread: MAMultilpleOption vs. MAToManyRelation

Re: MAMultilpleOption vs. MAToManyRelation

by Lukas Renggli-2 :: Rate this Message:

Reply to Author | View in Thread

> I could work around by creating a new description class and  
> corresponding
> MAStringWriter subclass then setting the reference attribute to it:
>
> MASingleOptionDescription  new
>     label: 'Label' ;
> reference: MAMyStringDescription new;
> selectorAccessor: #myAccessor;
>         options: [WAPersonManager persons]asDynamicObject;

What I would use here is the description of persons, given that the  
options are instances of Person:

        ...
        reference: Person description;
        ...

> To make this work out of the box, maybe 'asString' should be added to
> MaStringWriter >> visitStringDescription:

I agree, the latest commit includes your suggestion.

Cheers,
Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch


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

 « Return to Thread: MAMultilpleOption vs. MAToManyRelation