You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@isis.apache.org by james agada <ok...@gmail.com> on 2013/09/22 16:40:59 UTC
Choosing fields to display in a derived collection
How do I choose which fields to display in a derived collection or decide
which properties I can display when I am displaying the objects in a
collection?
Re: Choosing fields to display in a derived collection
Posted by james agada <ok...@gmail.com>.
OK. I will try with this. It is a feature I think makes sense and I will
raise a ticket. If I have enough skills I could implement too -:)
On Sun, Sep 22, 2013 at 4:11 PM, Dan Haywood
<da...@haywood-associates.co.uk>wrote:
> It's a good question.
>
> You can use @Hidden(Where.PARENTED_TABLES). Also,
> @Hidden(Where.REFERENCES_PARENT) is good for link associations (resolving
> many-to-many associations.
>
> However, it isn't possible to do any more fine-tuning than this.
>
> One capability that NakedObjects.NET has is the ability to specify the
> columns in an annotation on the collectino, eg:
>
> public class Order {
>
>
> @TableView("Product, Quantity, NumberInStock")
> public SortedSet<OrderLine> getDetails() { ... }
> }
>
> If this is a feature that appeals, then raise a new JIRA ticket. (And
> then, implement a patch :-)
>
> Cheers
> Dan
>
>
>
> On 22 September 2013 15:40, james agada <ok...@gmail.com> wrote:
>
> > How do I choose which fields to display in a derived collection or decide
> > which properties I can display when I am displaying the objects in a
> > collection?
> >
>
Re: Choosing fields to display in a derived collection
Posted by Dan Haywood <da...@haywood-associates.co.uk>.
It's a good question.
You can use @Hidden(Where.PARENTED_TABLES). Also,
@Hidden(Where.REFERENCES_PARENT) is good for link associations (resolving
many-to-many associations.
However, it isn't possible to do any more fine-tuning than this.
One capability that NakedObjects.NET has is the ability to specify the
columns in an annotation on the collectino, eg:
public class Order {
@TableView("Product, Quantity, NumberInStock")
public SortedSet<OrderLine> getDetails() { ... }
}
If this is a feature that appeals, then raise a new JIRA ticket. (And
then, implement a patch :-)
Cheers
Dan
On 22 September 2013 15:40, james agada <ok...@gmail.com> wrote:
> How do I choose which fields to display in a derived collection or decide
> which properties I can display when I am displaying the objects in a
> collection?
>