Italiano
Instant Developer Foundation Documentation
  • Release notes
  • Version 21.5.8300
  • New features

IDE: BeforeSave and OnValidate event parameters

link

Description

Two new value lists were created respectively for the Phase parameter of the BeforeSave event and the Reason parameter of the OnValidate event.

The constants in the value lists make it easier to read the code because the value is descriptive instead of simply numerical.

Features involved

Writing the verification and save code in Document Oriented classes.

Notes

  • Improvement related to improvement proposal PRP000600.
  • Updating libraries does not change the code. Therefore, BeforeSave and OnValidate events that are already implemented will not be changed, except to update the type of the corresponding parameters.
  • The warning 1288 - The value is not contained in the corresponding value list ([ENUM]) is not generated for new value lists if the value used in the comparison expressions is contained in the new value list. In other words, if we write:
     
       if (Phase == 0) 
    
    the system does not generate the warning if the value 0 is contained in the BeforeSavePhases value list. This is to avoid generating an excessive number of warnings for the code that is already present in projects developed with previous versions of Instant Developer.

Changed on: 24/05/2022 / From version: 21.5.8300

See also

  • Before Save (event)
  • On Validate (event)
  • Before Save Phases (value list)
  • Validate Reasons (value list)

Is this article helpful?

Thank you for your feedback!

Need more help?

Check out the forum