Default display for MASingleOptionDescription

View: New views
4 Messages — Rating Filter:   Alert me  

Default display for MASingleOptionDescription

by Dario Trussardi-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi 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 MASingleOptionDescription

by Bany, Michel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Does your NazionalityModel implement #displayString ?

From: smallwiki-bounces@... [mailto:smallwiki-bounces@...] On Behalf Of Dario Trussardi
Sent: lundi, 14. avril 2008 18:56
To: smallwiki@...
Subject: Default display for MASingleOptionDescription

Hi 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 MASingleOptionDescription

by Dario Trussardi-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi 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 MASingleOptionDescription

by Bany, Michel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi Dario,
 
> For you, this it's a valid solution ?
I have used #optionsAndLabels: a few times, works fine.
 
Michel.
 


From: smallwiki-bounces@... [mailto:smallwiki-bounces@...] On Behalf Of Dario Trussardi
Sent: mardi, 15. avril 2008 18:38
To: Magritte, Pier and Related Tools ...
Subject: Re: Default display for MASingleOptionDescription

Hi 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