--- Kevin Toppenberg <[EMAIL PROTECTED]> wrote: > (Hit the send button prematurely, I'll finish here) > > > 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
Fileman allows you to create what are called MUMPS cross-references. For most cross-references, Fileman generates the code to be executed when a record is edited for you (the SET logic, KILL logic, and for new style cross-references the WHOLE KILL). When you insert an entry, the set logic is executed, when you delete an entry, the kill logic is exercuted, and when you edit a field, the kill logic is executed first, then the set logic. New style cross-references add another couple of twists, including the option of allowing record level, rather than field level, execution. But I digress. If for some reason you want to implement a more complicated constraint, or otherwise do special processing when you maintain the index, you can select make the cross-reference a MUMPS cross-reference (but you must be a programmer to do this), then you can specify the code to be executed yourself. Other than that, the concept is the same: when the field is edited, first the kill logic is executed and then the set logic, and it does, well whatever you design it to do. For example, I once created a cross-reference that maintained a map, so that I could find the first unused IEN above a given value (in constant time). I know that sounds crazy, but it's what I was asked to do. Other more prosaic actions might include recording $H, updating another field, firing off a message, etc. === Gregory Woodhouse <[EMAIL PROTECTED]> "It is foolish to answer a question that you do not understand." --G. Polya ("How to Solve It") ------------------------------------------------------- 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&kid=110944&bid=241720&dat=121642 _______________________________________________ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members