[Helma-user] how to use _extends and _prototype
Julian Tree
julian.tree at gmail.com
Sat Aug 12 14:46:30 CEST 2006
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.
More information about the Helma-user
mailing list