I'm stuck again.
This time I am trying to build a data-entry form for my invoice application. I have a Customer table with default values for each customer: address, tax jurisdiction, terms, etc., and an Invoice table including the same fields (and more). I want a way to pick a record from the Customer table and copy its fields into the corresponding fields in the Invoice table. I can then edit the default values to suit the needs of a specific invoice.
I have two sticking points. First, I don't know the best use of controls to accomplish this. I've figured out that I want a Combo Box showing all the CustName fields from the Customer table (there aren't too many). But should I use a Record List-Combo Box, or a Record List-Edit Combo Box? And should I have the Combo Box be the data entry field for CustName on the Invoice form, or a button alongside the data entry field, or something else?
Next, I can't figure out how to get the Combo Box to cause multiple fields to get copied. I'm guessing I need to include some Xbasic running off an event of the control like OnPush. But I don't know how to reference the Customer table record selected by the Combo Box, or if that is even possible.
As always, I'm grateful for any help, and realize I'm asking pretty basic questions. All I need is to be pointed in the right direction. I've already made a lot of progress in learning Alpha Five.
Thanks,
-jimc
This time I am trying to build a data-entry form for my invoice application. I have a Customer table with default values for each customer: address, tax jurisdiction, terms, etc., and an Invoice table including the same fields (and more). I want a way to pick a record from the Customer table and copy its fields into the corresponding fields in the Invoice table. I can then edit the default values to suit the needs of a specific invoice.
I have two sticking points. First, I don't know the best use of controls to accomplish this. I've figured out that I want a Combo Box showing all the CustName fields from the Customer table (there aren't too many). But should I use a Record List-Combo Box, or a Record List-Edit Combo Box? And should I have the Combo Box be the data entry field for CustName on the Invoice form, or a button alongside the data entry field, or something else?
Next, I can't figure out how to get the Combo Box to cause multiple fields to get copied. I'm guessing I need to include some Xbasic running off an event of the control like OnPush. But I don't know how to reference the Customer table record selected by the Combo Box, or if that is even possible.
As always, I'm grateful for any help, and realize I'm asking pretty basic questions. All I need is to be pointed in the right direction. I've already made a lot of progress in learning Alpha Five.
Thanks,
-jimc
Comment