81
Views
1
Comments
[OutSystems Data Grid] JavaScript error when using SetViewLayout
outsystems-data-grid
Reactive icon
Forge asset by OutSystems
Application Type
Reactive

Hi!


We found this error in production a few times. Do you know why this happens and is there a solution for it? We check if the config is not empty before calling the action.



Cannot assign a JavaScript undefined with value undefined to an output parameter of type Text Check the JavaScript node 'SetViewLayout' of the action 'SetViewLayout'. 

InvalidJavascriptType: Cannot assign a JavaScript undefined with value undefined to an output parameter of type Text Check the JavaScript node 'SetViewLayout' of the action 'SetViewLayout'.
    at u (https://x/scripts/OutSystems.js?_76la9RdS83d3gUNRay5qw:9:281)
    at Object.a [as from] (https://x/scripts/OutSystems.js?_76la9RdS83d3gUNRay5qw:8:29950)
    at https://x/scripts/OutSystemsDataGrid.controller.js?S5ervDmRwJgH9Hh6tDZ1AQ:10234:71
    at e.safeExecuteJSNode (https://x/scripts/OutSystems.js?_76la9RdS83d3gUNRay5qw:16:17635)
    at OutSystemsDataGridController.default.setViewLayout$Action (https://xscripts/OutSystemsDataGrid.controller.js?S5ervDmRwJgH9Hh6tDZ1AQ:10228:42)
    at https://x/scripts/WB_DataGridComponenten.controller.js?eUdL5JyNVOYzGxuinmeCbg:1107:63 


Kind regards,

Marjolein

2022-11-12 11-28-30
Gonçalo Martins
Staff

Hi @Marjolein Lemkes 

In order to be able to help you should provide a sample oml and an example of the data you're storing and passing to the client action SetViewLayout.
Without that and simply with that error we can't do much.

Cheers,
GM

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.