[Helma-user] how to use _extends and _prototype
Hannes Wallnoefer
hannesw at gmail.com
Sat Aug 12 14:57:27 CEST 2006
Strange, this works for me (not with your exact setup, but also with
an extended type). Are you sure you are trying this on a Shop object,
not a Company object?
hannes
2006/8/12, Julian Tree <julian.tree at gmail.com>:
> Maybe someone can tell me the prefered way to do this in helma
>
>
> I have one table Called Company,
>
> The company can be either a Shop or Agency
> depending on the column called
> type == 'shop'
> type = = 'agency'
>
> Company/type.properties
> -----------------------------------
> _db = filepressdb
> _table = company
> _id = company_id
> _idgen = company_company_id_seq
> _name = company_name
> creator = creator
> modifier = modifier
> contact_name = contact_name
> company_name = company_name
>
>
> Shop/type.properties
> -----------------------------------
> _extends = Company
> newJobs = collection(Job)
> newJobs.local = company_id
> newJobs.foreign = job_shop_id
> newJobs.accessname = job_id
> newJobs.order = job_id DESC
>
>
>
>
>
> Now when I try to access newJobs
>
> shop.newJobs -> undefined
>
>
> if I put the newJobs definition in Company/type.properties, then I can
> access it just fine.
> _______________________________________________
> Helma-user mailing list
> Helma-user at helma.org
> http://helma.org/mailman/listinfo/helma-user
>
More information about the Helma-user
mailing list