I have "*Persona*" Bizobj defined with VirtualField "*FullName*":
        self.DataStructure = (
                ("Id", "I", True, "Persona", "Id"),
                ("Codigo", "C", False, "Persona", "Codigo"),
                ("CUIT", "C", False, "Persona", "CUIT"),
                ("Nombre", "C", False, "Persona", "Nombre"),
                ("Apellido", "C", False, "Persona", "Apellido"),
                ("CondIVAId", "I", False, "Persona", "CondIVAId"),
                ("CondIVA", "C", False, "condiva", "CondicionIVA"),
*                ("FullName", "C", False, None, "FullName"),*
        )
...
    def afterInit(self):
        super(Persona, self).afterInit()
        self.addJoin('condiva',
                     'condiva.Id = Persona.CondIVAId',
                     'left')
*        self.VirtualFields = {'FullName': self.getFullName}*


Now I have "*Proveedor*" Bizobj from which I'd like to reference *Persona.Fullname*:
        self.DataStructure = (
                ("Id", "I", True, "Proveedor", "Id"),
                ("PersonaId", "I", False, "Proveedor", "PersonaId"),
                ("LetraId", "I", False, "Proveedor", "LetraId"),
                ("CuentaId", "I", False, "Proveedor", "CuentaId"),
("ConcptoImputac", "C", False, "Proveedor", "ConcptoImputac"),
*                ("Nombre", "I", False, "Persona", "FullName"),*
                ("Letra", "I", False, "Letra", "Letra"),
                ("Cuenta", "I", False, "cuenta", "Nombre"),
        )
...
    def afterInit(self):
        super(Proveedor, self).afterInit()
*        self.addJoin('persona',**
**                     'persona.Id = Proveedor.PersonaId',**
**                     'left')*
        self.addJoin('letra',
                     'letra.Id = Proveedor.LetraId',
                     'left')
        self.addJoin('cuenta',
                     'cuenta.Id = Proveedor.CuentaId',
                     'left')

and I get the following error message (this is datanav) :
2013-11-22 15:17:55 - ERROR - Ejecución en la base de datos falló con respuesta: DBQueryException encountered in execute(): no such column: Persona.FullName

It would be nice to be able to access the VirtualField directly instead of having to define it again in this Bizobj.



--- StripMime Report -- processed MIME parts ---
multipart/alternative
 text/plain (text body -- kept)
 text/html
---
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to