PLEASE NOTE: This Tech Tip applies to 4D Web 2.0 Pack v11 Release 2 (11.2)
When creating a DCS, make sure to call the method DAX_Dev_DCS_SetSelection. This method creates the selection that will be sent to the front end and will need to be called within the Dax_DevHook_DCS_SetSelection method. This is a requirement even if the DCS will contain no records. If this is the case then pointers to empty arrays will need to be passed as parameters for the call to DAX_Dev_DCS_SetSelection.
For example, assuming you create a DCS view with one text field, you will need to initialize the selection with no records by executing the following code.
Omitting the call to DAX_Dev_DCS_SetSelection will result in the following error message: “4DAF error (code: Internal4DError): A system error has occurred. Please inform the system administrator.”
For the latest information the 4D Ajax Framework please see the Daxipedia: