Button to create a sub-file

This forum is for application developers who are integrating HanDBase into their solutions via the HanDBase API (HAPI) or other means. It's also a great place to discuss runtime development.

Button to create a sub-file

Postby Jeepeehell22 » Thu Jul 12, 2012 10:12 am

Hi everybody!

supposing a database A, with fields Date and Time , and a parent link pointing a database B, with children link field and a "when created/now" Time field., and a calculated field (Time in B - Time in A= time)
what to put in an added button in the A database form so to
-create a new sub-file in Database B
- at the same time have the result of calculated field

(What use?, well having a road /waypoint checking, so the A database is for the journey and the B is for waypoints)

Thanx much
Posts: 1
Joined: Thu Jul 12, 2012 7:13 am

Re: Button to create a sub-file

Postby Brian_Houghton » Fri Jul 13, 2012 7:24 am


Thanks for posting. You can use relationships to establish a parent/child connection between records of two databases. Once set up, you can follow the relationship from the parent to the child by either pressing the label of the field or clicking the button associated with it if using custom forms. When in the child database, create a new record and you will see that the related field is populated with the value from the parent.
Kind Regards,
Brian Houghton, DDH Software
Posts: 2248
Joined: Wed May 20, 2009 8:30 am

Return to HanDBase - Developers

Who is online

Users browsing this forum: No registered users and 2 guests