In the app I am developing I want to enter or search data from a main screen..If the data is not already in the file, I want to add a record to the main screen. Once done I want to add records to the child tables, and have set a toolbar to call those forms to deal with the details. Like the main screen if the record exists I simply want to populate the form(s) with existing data. If the record does not exist I want to add a new record to the child table forms (details). For my example I have a business (master) with applicant for details.
To this point I have tried action scripts, but it only works is the data is in the child table, otherwise presents a no records found. I would like in the case to see and add new record with the primary key of the business table being loaded into the foreign key of the applicant (child table).
Now admittedly I am new to Xbasic and confess I am still struggling with it. I have search the message board believing this must have been answered a thousand times but cannot locate a thread. I have searched the wiki but have not found the answer.
I have looked at AlphaSports, but it appears they have a customer and new customer forms. It appears it uses more of a manual process.
I have tried to code it in Xbasic but really have not come to grasp the way to reference controls on the various forms I have created. It appears you cannot reference objects until they are loaded memory. I would like to call the form and pass the value to it as it loads, as it returns whether or not there are matching records react accordingling.
If there is a thread, or search words I should use, or a place to look in the wiki I would appreciate being pointed in the right direction.
If I sound confused ... well I am ... I may have give up on A5 and go back to VB.Net. I am spending so much time searching for information I am getting little coding done. :(
To this point I have tried action scripts, but it only works is the data is in the child table, otherwise presents a no records found. I would like in the case to see and add new record with the primary key of the business table being loaded into the foreign key of the applicant (child table).
Now admittedly I am new to Xbasic and confess I am still struggling with it. I have search the message board believing this must have been answered a thousand times but cannot locate a thread. I have searched the wiki but have not found the answer.
I have looked at AlphaSports, but it appears they have a customer and new customer forms. It appears it uses more of a manual process.
I have tried to code it in Xbasic but really have not come to grasp the way to reference controls on the various forms I have created. It appears you cannot reference objects until they are loaded memory. I would like to call the form and pass the value to it as it loads, as it returns whether or not there are matching records react accordingling.
If there is a thread, or search words I should use, or a place to look in the wiki I would appreciate being pointed in the right direction.
If I sound confused ... well I am ... I may have give up on A5 and go back to VB.Net. I am spending so much time searching for information I am getting little coding done. :(
Comment