|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Default display for MASingleOptionDescriptionHi All,
i have CantonModel with some
descriptions
One of it is based on
MASingleOptionDescription where options are object from other model
NazionalityModel.
NazionalityModel have some description
too.
My question is : how i can define the label display
in CantonModel relative to NazionalityModel ?
For now it display the NazionalityModel's
description with low priority.
But i need to display other data.
How i can do it ?
Thanks,
Dario _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
|
|
RE: Default display for MASingleOptionDescriptionDoes your
NazionalityModel implement #displayString ?
_______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
|
|
Re: Default display for MASingleOptionDescriptionHi Michel,
i have work on my problem.
I implement the #displayString but it d'ont solve
my question.
( #displayString isn't call when
rendering )
I have solved my problem with
#optionsAndLabels:
^MASingleOptionDescription new
reference:
.....
optionsAndLabels: .............. For you, this it's a valid solution ?
Thanks,
Dario
_______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
|
|
RE: Default display for MASingleOptionDescriptionHi
Dario,
> For you, this it's a valid solution
?
I have
used #optionsAndLabels: a few times, works fine.
Michel.
_______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
| Free Forum Powered by Nabble | Forum Help |