You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@isis.apache.org by L Eder <ed...@gmail.com> on 2017/03/22 14:53:56 UTC

Derived property rendered in a 1:1 association

Hi members:

i have this:

Child class:
    String prop1;
    String prop2;

and

Parent class:
    private SortedSet<Child> collec = new TreeSet<Child>();
    public Parent add (final Child child) {...}

How can i have prop1 + prop2 rendered when add() is executed?
Currently is prop1 the one being, by default, rendered in the Add
dialog's child drop-down control.

Thanks in advance, Eder

Re: Derived property rendered in a 1:1 association

Posted by L Eder <ed...@gmail.com>.
Thank you people, you are correct. It worked as expected, Eder

2017-03-22 15:58 GMT-04:00, Kevin Meyer <ke...@kmz.co.za>:
> Thanks Jeroen,
> That's what I was going to suggest.
>
>
> On 22 March 2017 17:44:27 CET, Jeroen van der Wal <je...@stromboli.it>
> wrote:
>>Maybe change the title?
>>
>>public class Child {
>>    public String title() {
>>        return getProp1()+getProp2();
>>    }
>>    ....
>>}
>>
>>On 22 March 2017 at 15:53, L Eder <ed...@gmail.com> wrote:
>>
>>> Hi members:
>>>
>>> i have this:
>>>
>>> Child class:
>>>     String prop1;
>>>     String prop2;
>>>
>>> and
>>>
>>> Parent class:
>>>     private SortedSet<Child> collec = new TreeSet<Child>();
>>>     public Parent add (final Child child) {...}
>>>
>>> How can i have prop1 + prop2 rendered when add() is executed?
>>> Currently is prop1 the one being, by default, rendered in the Add
>>> dialog's child drop-down control.
>>>
>>> Thanks in advance, Eder
>>>
>
> --
> Sent from my Android device with K-9 Mail. Please excuse my brevity.

Re: Derived property rendered in a 1:1 association

Posted by Kevin Meyer <ke...@kmz.co.za>.
Thanks Jeroen,
That's what I was going to suggest. 


On 22 March 2017 17:44:27 CET, Jeroen van der Wal <je...@stromboli.it> wrote:
>Maybe change the title?
>
>public class Child {
>    public String title() {
>        return getProp1()+getProp2();
>    }
>    ....
>}
>
>On 22 March 2017 at 15:53, L Eder <ed...@gmail.com> wrote:
>
>> Hi members:
>>
>> i have this:
>>
>> Child class:
>>     String prop1;
>>     String prop2;
>>
>> and
>>
>> Parent class:
>>     private SortedSet<Child> collec = new TreeSet<Child>();
>>     public Parent add (final Child child) {...}
>>
>> How can i have prop1 + prop2 rendered when add() is executed?
>> Currently is prop1 the one being, by default, rendered in the Add
>> dialog's child drop-down control.
>>
>> Thanks in advance, Eder
>>

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Re: Derived property rendered in a 1:1 association

Posted by Jeroen van der Wal <je...@stromboli.it>.
Maybe change the title?

public class Child {
    public String title() {
        return getProp1()+getProp2();
    }
    ....
}

On 22 March 2017 at 15:53, L Eder <ed...@gmail.com> wrote:

> Hi members:
>
> i have this:
>
> Child class:
>     String prop1;
>     String prop2;
>
> and
>
> Parent class:
>     private SortedSet<Child> collec = new TreeSet<Child>();
>     public Parent add (final Child child) {...}
>
> How can i have prop1 + prop2 rendered when add() is executed?
> Currently is prop1 the one being, by default, rendered in the Add
> dialog's child drop-down control.
>
> Thanks in advance, Eder
>