I have a case that requires complex validation of multiple Fields in a File. I thought this may be a good use for a Trigger instead of putting logic in a Server Module.
I can't find where that describes how you put a Trigger on a File NOT on a Field.
This doc states that its possible.
http://docs.lansa.com/14/en/lansa015/co ... 2_0010.htm
But when you follow the doc trail down, I don't see how you apply the Trigger to the File itself. It does link to a tutorial exerciseRules and triggers can be defined in both field and table definitions.
http://docs.lansa.com/14/en/lansa095/co ... 1_0355.htm
that has you review File level triggers, but nothing is mentioned regarding one.
EDIT
To clarify I am looking to create a LANSA Trigger not a Database Trigger. I am trying
EDIT
Am I reading this correctly? You SHOULD NOT DO ANY I/O on File IN THE TRIGGER?
http://docs.lansa.com/14/en/lansa015/co ... c10135.htm
If you can't read the File while executing a trigger, then this whole thing is pointless and my only option is to put the logic in the server module.Do not do any I/O to the table with which the trigger is linked. Attempting such I/O directly, or indirectly, may cause a recursive call to the table Object Access Module. Do not attempt to use *DBOPTIMIZE to circumvent this rule. Such attempts will cause the table cursor of the active Object Access Module to become lost or corrupted.