kRestrict +kCascade type link

Kem Tekinay ktekinay at mactechnologies.com
Mon May 30 15:19:04 CDT 2005


On 5/30/05 2:47 PM, Ruslan Zasukhin at sunshine at public.kherson.ua wrote:

> Here is important to think who is owner.
> 
> In your example Table1 is Owner.
> So Table2 cannot delete records from Table1.
> 
> CASCADE works into one direction only

Well, this might be in the docs somewhere, but you cannot create a cascading
many-to-many at all. My app won't even launch if I try.

This works:

  linkT1T2 = new VBinaryLink( "linkT1T2", tblT1, tblT2, EVLinkType.kMany,
     EVLinkType.kMany, EVOnDelete.kDefault )

This generates a VException on launch:

  linkT1T2 = new VBinaryLink( "linkT1T2", tblT1, tblT2, EVLinkType.kMany,
     EVLinkType.kMany, EVOnDelete.kCascade )


__________________________________________________________________________
Kem Tekinay                                                 (212) 201-1465
MacTechnologies Consulting                              Fax (914) 242-7294
545 Eighth Avenue, Suite 401                          Pager (917) 491-5546
New York, New York 10018                    http://www.mactechnologies.com

To join the MacTechnologies Consulting mailing list, send an e-mail to:
  mactechnologies_consulting-subscribe at yahoogroups.com





More information about the Valentina mailing list