Menu

View only super class instances

Ciro
2013-03-17
2013-03-23
  • Ciro

    Ciro - 2013-03-17

    Hi,

    How I can display in "List view" (Detail, List, Both) only the super class instances.

    For sample:

    public class A {}

    public class B extends A {}

    In the "List view" of A class, I don't want to appear the instances of B class.

     
  • Javier Paniza

    Javier Paniza - 2013-03-20

    Hi Ciro,

    define a base condition in your tab asking for the type, in that way:

    @Tab(baseCondition="TYPE(e) = A")
    

    Help others in this forum as I help you.
    Need more help? Get OpenXava professional support.

     
  • Ciro

    Ciro - 2013-03-23

    Thanks Javier!!!

    Works! View only the superclass in Tab. =D

     

    Last edit: Ciro 2013-03-23

Log in to post a comment.