I'm developing an entire application with client-side framework.
My case is when I do "mygrid.refreshData()" does nothing.
Follows specification of my develop practice:
1.- Populate all object (dataSource, Grid, Tree, etc) by Restful (servlet)
2.- That's mean, I´m using async + await fetch.
3.- Something I found is for all things works I've to add all objects in async functions. It maybe no necessary but the app is working so.
4.- There are calls async functions subsequent.
5.- I've defined clientOnly:true. I've treated to define false, but autoFetchData:true (in the grid control), change to true.
6.- I've defined autoFetchData:false, then do myWind.show(), grid appears without records.
7.- I've an append in the saveData event on a DynamicForm, no to the grid, directly to database by Restful.
8.- After insert the record follow grid.refreshData and gives the follow error:
*13:45:01.097:MUP1:WARN:Log:TypeError: _2 is undefined
Stack from error.stack:
Canvas.refreshData() @ js/isomorphic/system/modules%20deobf/Core.js:40552:22
saveData() @ js/Components.js:281:26
anonymous() @ js/isomorphic/system/modules%20deobf/Core.js line 734 > Function:3:27
FormItem._fireStandardHandler() @ js/isomorphic/system/modules%20deobf/Forms.js:13795:24
FormItem.handleClick() @ js/isomorphic/system/modules%20deobf/Forms.js:13813:23
CanvasItem._createCanvas/_2.handleActivate() @ js/isomorphic/system/modules%20deobf/Forms.js:18042:55
StatefulCanvas.handleClick() @ js/isomorphic/system/modules%20deobf/Foundation.js:1922:21
Class.invokeSuper() @ js/isomorphic/system/modules%20deobf/Core.js:2614:27
Class.Super() @ js/isomorphic/system/modules%20deobf/Core.js:2542:21
CanvasItem._createCanvas/_2.handleClick() @ js/isomorphic/system/modules%20deobf/Forms.js:18034:27
[c]EventHandler.bubbleEvent() @ js/isomorphic/system/modules%20deobf/Core.js:22030:34
[c]EventHandler.handleClick() @ js/isomorphic/system/modules%20deobf/Core.js:20791:21
EventHandler._handleMouseUp() @ js/isomorphic/system/modules%20deobf/Core.js:20633:37
[c]EventHandler.handleMouseUp() @ js/isomorphic/system/modules%20deobf/Core.js:20568:21
[c]EventHandler.dispatch() @ js/isomorphic/system/modules%20deobf/Core.js:22715:21
anonymous() @ js/isomorphic/system/modules%20deobf/Core.js line 734 > Function:3:123
EventHandlerNonNull*isc_c_EventHandler_captureEvent() @ js/isomorphic/system/modules%20deobf/Core.js:22742:13
[c]EventHandler.captureEvents() @ js/isomorphic/system/modules%20deobf/Core.js:22795:14
unnamed() @ js/isomorphic/system/modules%20deobf/Core.js:23707:22
Core.js:12567:36
13:45:01.097
Remember, the error appears when I defined autoFetchData:false.
If defined to true the error not appear.
At the end, I do the refreshData in a standard function called by async function.
The question is, is possible to do a refreshData with the version of client-side?
Are there some parametrize that I've to do?
My unique alternative is to do my own method to refresh grids?.
(I think using async functions with Restful as I did everything)
Well, I hope I have sent you everything necessary to understand my case.
If more information is required, don´t hesitate to request it.
Hugs.
My case is when I do "mygrid.refreshData()" does nothing.
Follows specification of my develop practice:
1.- Populate all object (dataSource, Grid, Tree, etc) by Restful (servlet)
2.- That's mean, I´m using async + await fetch.
3.- Something I found is for all things works I've to add all objects in async functions. It maybe no necessary but the app is working so.
4.- There are calls async functions subsequent.
5.- I've defined clientOnly:true. I've treated to define false, but autoFetchData:true (in the grid control), change to true.
6.- I've defined autoFetchData:false, then do myWind.show(), grid appears without records.
7.- I've an append in the saveData event on a DynamicForm, no to the grid, directly to database by Restful.
8.- After insert the record follow grid.refreshData and gives the follow error:
*13:45:01.097:MUP1:WARN:Log:TypeError: _2 is undefined
Stack from error.stack:
Canvas.refreshData() @ js/isomorphic/system/modules%20deobf/Core.js:40552:22
saveData() @ js/Components.js:281:26
anonymous() @ js/isomorphic/system/modules%20deobf/Core.js line 734 > Function:3:27
FormItem._fireStandardHandler() @ js/isomorphic/system/modules%20deobf/Forms.js:13795:24
FormItem.handleClick() @ js/isomorphic/system/modules%20deobf/Forms.js:13813:23
CanvasItem._createCanvas/_2.handleActivate() @ js/isomorphic/system/modules%20deobf/Forms.js:18042:55
StatefulCanvas.handleClick() @ js/isomorphic/system/modules%20deobf/Foundation.js:1922:21
Class.invokeSuper() @ js/isomorphic/system/modules%20deobf/Core.js:2614:27
Class.Super() @ js/isomorphic/system/modules%20deobf/Core.js:2542:21
CanvasItem._createCanvas/_2.handleClick() @ js/isomorphic/system/modules%20deobf/Forms.js:18034:27
[c]EventHandler.bubbleEvent() @ js/isomorphic/system/modules%20deobf/Core.js:22030:34
[c]EventHandler.handleClick() @ js/isomorphic/system/modules%20deobf/Core.js:20791:21
EventHandler._handleMouseUp() @ js/isomorphic/system/modules%20deobf/Core.js:20633:37
[c]EventHandler.handleMouseUp() @ js/isomorphic/system/modules%20deobf/Core.js:20568:21
[c]EventHandler.dispatch() @ js/isomorphic/system/modules%20deobf/Core.js:22715:21
anonymous() @ js/isomorphic/system/modules%20deobf/Core.js line 734 > Function:3:123
EventHandlerNonNull*isc_c_EventHandler_captureEvent() @ js/isomorphic/system/modules%20deobf/Core.js:22742:13
[c]EventHandler.captureEvents() @ js/isomorphic/system/modules%20deobf/Core.js:22795:14
unnamed() @ js/isomorphic/system/modules%20deobf/Core.js:23707:22
Core.js:12567:36
13:45:01.097
Remember, the error appears when I defined autoFetchData:false.
If defined to true the error not appear.
At the end, I do the refreshData in a standard function called by async function.
The question is, is possible to do a refreshData with the version of client-side?
Are there some parametrize that I've to do?
My unique alternative is to do my own method to refresh grids?.
(I think using async functions with Restful as I did everything)
Well, I hope I have sent you everything necessary to understand my case.
If more information is required, don´t hesitate to request it.
Hugs.
Comment