Hi Hassen,
First, I always use 0,n cardinality instead of 1,n for the master.
1,n means that the master record always has to have at least one slave record.
I can't think of any damage if a master record is hanging around without a slave.
It's impossible to add two records simultaneously, so you always have to switch off integrity checking. This is not the case for 0,n
Second, the A.autoID=hSetIDAuto line is wrong. hSetIDAuto is a constant that should only be used as a parameter in the h-functions.
You don't have to supply the autoID, as it is calculated by the hyperfile engine automatically.
So:
HAdd(A) // the autoID is calculated and stored
B.numeric=A.autoID
HAdd(
If you cannot change the analysis:
HAdd(A,hIgnoreIntegrity)
B.numeric=A.autoID
HAdd(
Regards,
Piet
Edited 2 time(s). Last edit at 03/24/2009 10:10PM by Piet van Zanten.