/* tr-c-his.p - Create trigger for history-code */ TRIGGER PROCEDURE FOR CREATE OF history-code. /* Include Commons */ {common.i} /* Assign an ID, creation info and any initial defaults */ ASSIGN history-code.primary-key = NEXT-VALUE(primary-misc) history-code.cre-date = TODAY history-code.cre-time = STRING(TIME, "HH:MM:SS") history-code.cre-user-name = menu-user history-code.upd-date = TODAY history-code.upd-time = STRING(TIME, "HH:MM:SS") history-code.upd-user-name = menu-user. /* Go back */ RETURN.