Advanced ADVPL MVC Customization
Extends standard TOTVS Protheus MVC routines using Entry Points to add custom grids, cascading triggers, and advanced validations.
This skill provides expert guidance for developers to customize standard TOTVS Protheus MVC modules without altering original source code. It covers the implementation of complex UI/UX enhancements like nested grids (parent-child-grandchild), cascading field triggers, and multi-layered validations using specific Entry Points such as *STRU and *MOD. By leveraging safe state management with FWSaveRows and structured error handling, it enables robust extensions for critical ERP functions like contract management, billing, and purchasing while maintaining compatibility with standard Protheus updates.
Key Features
0113 GitHub stars
02Cascading field triggers with FWSaveRows/FWRestRows state management
03MATXFIS fiscal calculation integration within MVC triggers
04Advanced multi-level grid integration (Father-Son-Grandson hierarchy)
05Standard routine customization via *STRU and *MOD Entry Points
06Cross-grid validations that preserve original TOTVS business logic
Use Cases
01Enforcing complex, conditional record locking based on custom status fields in standard masters
02Adding custom detail grids to standard Sales Order (MATA440) or Contract (CNTA300) screens
03Implementing real-time fiscal calculations and tax simulations during MVC data entry