(Hit the send button prematurely, I'll finish here) On 3/23/06, Kevin Toppenberg <[EMAIL PROTECTED]> wrote: > On 3/23/06, Greg Woodhouse <[EMAIL PROTECTED]> wrote: > > > > The OPTION file provides a nice example of a whole file > > cross-reference: > > > > Subfile #19.01 > > > > Traditional Cross-References: > > > > AD REGULAR WHOLE FILE (#19) > > Field: ITEM (19.01,.01) > > 1)= S ^DIC(19,"AD",$E(X,1,30),DA(1),DA)="" > > 2)= K ^DIC(19,"AD",$E(X,1,30),DA(1),DA) > > > > You can see here that, instead of just the IEN (DA) below the index > > entry, there are two subscripts, the first is the IEN in the containing > > file (DA(1)), and the second is the IEN in the subentry (DA). For a > > sub-subfile, you'd have DA(2), then DA(1) and finally DA, etc. > > > > To make this a little more concrete, suppose you know option number 10 > > is DIEDIT and you want to find all menus containing it. You can just > > consult the cross-reference: > > > > >D ^%G > > > > Device: Right margin: 80=> > > > > Global ^DIC(19,"AD",10 -- NOTE: translation in effect > > ^DIC(19,"AD",10,19,1)= > > ^DIC(19,"AD",10,515,1)= > > ^DIC(19,"AD",10,3393,1)= > > OK, so this is saying that IEN 10 can be found in the following places: > record 19, and in subfile IEN 1 > record 515, subfile IEN 1 > record 3393, subfile IEN 1 > > Is this right? If so, that should work nicely. > > I looked more at the index on the subfile .01 "AC" in the VA PRODUCT > file. Whereas your example above shows: > > 1)= S ^DIC(19,"AD",$E(X,1,30),DA(1),DA)="" > > 2)= K ^DIC(19,"AD",$E(X,1,30),DA(1),DA) > the AC index for VA PRODUCT shows: Node 1: D ING^PSNXREF Node 2: D KING^PSNXREF
So apparently a cross reference is "called" by Fileman and the resulting code does not necessarily result in data being put into a "AC" node etc. Thanks Kevin ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members