VA FileMan V. 22.0 Programmer Manual Banner


 

Main Chapter Getting Started Manual Advanced User Manual

Classic VA FileMan API


IX^DIK: Reindex

Reindexing Quick Reference

Entry Point Reindexes Entries Reindexes Xrefs Executes Logic
EN^DIK 1 Some or all for 1 field KILL then SET
EN1^DIK 1 Some or all for 1 field SET
EN2^DIK 1 Some or all for 1 field KILL
ENALL^DIK All Some or all for 1 field SET
ENALL2^DIK All Some or all for 1 field KILL
IX^DIK 1 All KILL then SET
IX1^DIK 1 All SET
IX2^DIK 1 All KILL
IXALL^DIK All All SET
IXALL2^DIK All All KILL

IX^DIK reindexes all cross-references of the file for only one entry in the file. It executes first the KILL logic and then the SET logic. Reindexing occurs at all file levels at or below the one specified in DIK and DA.

Before reindexing, you should be familiar with the effects of all relevant cross-references that could be fired (including bulletins, triggers, and MUMPS-type).

Input Variables
DIK

If you are reindexing an entry at the top level of a file, set DIK to the global root of the file.

If you are reindexing only a subentry, set DIK to the full global root leading to the subentry, including all intervening subscripts and the terminating comma, up to - but not including - the IEN of the subfile entry to reindex.

DA

If you are reindexing an entry at the top level of a file, set DA to the internal entry number of the file entry to reindex.

If you are reindexing an entry in a subfile, set up DA as an array, where DA is the entry number in the subfile to reindex, DA(1) is the entry number at the next higher file level,...DA(n) is the entry number at the file's top level.

 


Reviewed/Updated: March 4, 2007