Reintroduce process_record
Hooks for ListView in SuiteCRM 8
#596
Labels
Type:Missing Feature
Feature in a previous version, not in the current
Feature
Feature Request: Reintroduce
process_record
Hooks for ListView in SuiteCRM 8Summary
In SuiteCRM 7, the
process_record
logic hook allowed developers to dynamically process each record displayed in the ListView. This feature was particularly useful for adding or modifying data dynamically at runtime for fields that are eithernon-db
or calculated. However, in SuiteCRM 8, theprocess_record
hook does not work in the ListView, specifically for modules such asAOS_Quotes
.Context
The
process_record
hook in SuiteCRM 7 provided a critical capability for developers to:This hook was commonly used in scenarios such as:
Issue in SuiteCRM 8
In SuiteCRM 8:
process_record
hook is not invoked when retrieving records for the ListView.process_record
logic.Example Use Case
In
AOS_Quotes
, a developer may need to dynamically populate a field such asyour_non_db_field
in the ListView. In SuiteCRM 7, the followingprocess_record
logic hook would achieve this:With the hook implementation:
This no longer works in SuiteCRM 8 due to the architectural changes.
Impact
Lost Customization Capability:
Increased Development Complexity:
Regression from SuiteCRM 7:
Proposed Solution
To address this issue, the following enhancements could be made to SuiteCRM 8:
process_record
hooks in the ListView by integrating a hook system into the GraphQL resolver for ListView data.non-db
fields in a way compatible with the new architecture.Benefits of Reintroducing the Feature
Request to the SuiteCRM Community
We request the SuiteCRM team to consider reintroducing this feature or providing an alternative mechanism to achieve the same functionality in SuiteCRM 8. Maintaining parity with SuiteCRM 7's customization capabilities will ensure a smoother upgrade path and better adoption of SuiteCRM 8 by the community.
The text was updated successfully, but these errors were encountered: