Hi all,
as I did not find proper solution for my problem in thread named Active link tables, sets and Record list-combo box, I am sending a small example.
Please, I ask anyone who works with Active link tables and maybe
with Firebird databases to answer on this question:
I work with Alpha Five V9 Platinum edition.
Why A5 prompts me for argument value when opening form frmFIRCARS ?
As attachement I am sending:
- APPTEST2.ZIP (this is APPTEST.FDB Firebird 2.1 database, dialect 3)
- APPTEST.ZIP (this is application files)
Create folder named AAA (or wih some other name). In that drive copy these files.
Extract all files from APPTEST.ZIP.
Create System DSN ODBC data source named APPTEST. It must point to APPTEST.FDB.
Open this application (APPTEST) in Alpha Five.
I have three tables:
Accfir (table of firms)
Cartyp (table of car types, where each firm has its one list of car types. This is mandatory,
I can not make table this on list of car type for all firms).
Fircar (table of cars which one firm bought)
I have one set:
SetFirmCars (this set links Fircar table as parent and Cartyp as lookup table).
See link definitions for tables Cartyp and Fircar. They have WHERE clauses based on arguments.
When starting application, I first open form frmFIRMSELECT. Please select firm named
SAMPLE FIRM 2. When I select firm 2 I put its ID value in global variable pFIRREC.
After that, it opens form frmFIRCARS (based on set), prompting for argument value.
Why, because I open that form with command FORM.view("frmFIRCARS","","","","",mArgs)
where I pass value for argument.
Please see OnPush event code on Select button in frmFIRMSELECT form.
If it is impossible to solve this with A5 designed forms, is it possible to solve it with
xBasic created dialogs ? I need small example, but for situation I have in my case.
Thanks,
Dordije.
as I did not find proper solution for my problem in thread named Active link tables, sets and Record list-combo box, I am sending a small example.
Please, I ask anyone who works with Active link tables and maybe
with Firebird databases to answer on this question:
I work with Alpha Five V9 Platinum edition.
Why A5 prompts me for argument value when opening form frmFIRCARS ?
As attachement I am sending:
- APPTEST2.ZIP (this is APPTEST.FDB Firebird 2.1 database, dialect 3)
- APPTEST.ZIP (this is application files)
Create folder named AAA (or wih some other name). In that drive copy these files.
Extract all files from APPTEST.ZIP.
Create System DSN ODBC data source named APPTEST. It must point to APPTEST.FDB.
Open this application (APPTEST) in Alpha Five.
I have three tables:
Accfir (table of firms)
Cartyp (table of car types, where each firm has its one list of car types. This is mandatory,
I can not make table this on list of car type for all firms).
Fircar (table of cars which one firm bought)
I have one set:
SetFirmCars (this set links Fircar table as parent and Cartyp as lookup table).
See link definitions for tables Cartyp and Fircar. They have WHERE clauses based on arguments.
When starting application, I first open form frmFIRMSELECT. Please select firm named
SAMPLE FIRM 2. When I select firm 2 I put its ID value in global variable pFIRREC.
After that, it opens form frmFIRCARS (based on set), prompting for argument value.
Why, because I open that form with command FORM.view("frmFIRCARS","","","","",mArgs)
where I pass value for argument.
Please see OnPush event code on Select button in frmFIRMSELECT form.
If it is impossible to solve this with A5 designed forms, is it possible to solve it with
xBasic created dialogs ? I need small example, but for situation I have in my case.
Thanks,
Dordije.
Comment