Here is my code from Bizobj. Do I use only one Bizobj . or do I create
another Bizobj for the child reord.
DoctorBizobj.addChild(doctorSpecialityizobj)
I edit the object for tthe speciality_fk for name and source point to child
field and record.
=========================================
class DoctorBizobj(dabo.biz.dBizobj):
def afterInit(self):
self.DataSource = "doctor"
self.KeyField = "pkid"
self.addFrom("doctor")
self.addField("name")
self.addField("fk_speciality")
self.addField("pkid")
self.LinkField = "fk_speciality"
def validateRecord(self):
"""Returning anything other than an empty string from
this method will prevent the data from being saved.
"""
ret = ""
# Add your business rules here.
return ret
Jacek Kałucki wrote:
>
> Użytkownik jvandal napisał:
>> I have a master record with a field containing the key of a detail
>> record.
>> When I show the master record I want to display the title of the detail
>> record instead of the key value. I am confused . Its not the same as a
>> dropdown list . I only want the value automatically displayed
>>
>
> Add appropriate join clause to your bizobj, to get detail title from
> child table.
>
> --
> Regards
> Jacek Kałucki
>
> _______________________________________________
> Post Messages to: [email protected]
> Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
> Searchable Archives: http://leafe.com/archives/search/dabo-users
> This message: http://leafe.com/archives/byMID/[email protected]
>
>
--
View this message in context:
http://old.nabble.com/have-master-record-with-key-of-detail-record--tp27168374p27170505.html
Sent from the dabo-users mailing list archive at Nabble.com.
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]