
Hi guys,
how can I add comments or notes in Electronic Reporting code?
In X++, we can use // or /* */ to add comments in the code without affecting execution. However, this does not work in Electronic Reporting. Is there an alternative way to document logic or add notes within ER formulas and mappings?
Are there any best practices or workarounds to include comments in ER formulas?
Thank you
While ER does not support traditional comments (like // or /* */ in X++), there are several effective workarounds for documenting your logic:
1. Use the "Comment" element in your ER configuration to add notes and explanations.
2. Name formulas and variables descriptively to convey the logic.
3. Consider external documentation to describe complex logic.
4. Use Labels for internal documentation and referencing within formulas or mappings.
By combining these strategies, you can keep your ER logic well-documented and easier to maintain
Thanks, Ramesh
If this was helpful, please check the "Does this answer your question?" box and mark it as verified.