AUTO.NEW.CONTENT ROUTINES - mathisi-io/t24dev GitHub Wiki
Auto New Content Routines
Used to automatically populate content of a field when a record is opened.
Requirements
The bank would like to have account MNEMONIC automatically generated and populated for all newly created accounts using the version ACCOUNT,MTD.NEW.AC
. Your assignment is to adapt this version based on these business requirements. Mnemonics are to be generated in this format: AAAANNNNAA
Solution
- Create a subroutine
- Create a record in PGM.FILE of type
S
, define product(e.gEB
) andAPPL.FOR.SUB
(e.g AC) - Define
AUTOM.FIELD.NO
- Add our routine in
AUT.NEW.CONTENT
prefixed by@