swingman:
Long shot: Are you able to switch off ‘servoy.ngclient.enableWebResourceOptimizer’ in your servoy-admin?
I had to switch this off to get one of my ng-client project to run.
Hi Christian,
thanks for you suggestion, which I tried, but sadly it didn’t help.
I also then tried turning off the ‘setContentSecurityPolicyHeader’, but also no help.
However, I then turned off the TiNG Client launch in Dev. prefs. (quit), relaunched & then launched NG client and it works better!
The ‘+/-’ icons have appeared when grid is in grouping mode and the svySig events are now firing (although I’ve obviously made an error in my code to save the signatures back in to my image field
foundset.site_manager_sig = utils.base64ToBytes(elements.sig_site_manager.getDataUrl("image/png"));
which is throwing an
ERROR com.servoy.j2db.util.Debug - Illegal base64 character 3a (Form Context: mobilePlotQCR)
but I can play with that…)
However (I like/dislike that word), the grouping grids are throwing another error when I try to expand a grouped row
ERROR org.sablo.BrowserConsole - Error: ag-Grid: cannot get grid to draw rows when it is in the middle of drawing rows. Your code probably called a grid API method while the grid was in the render stage. To overcome this, put the API call into a timeout, eg instead of api.refreshView(), call setTimeout(function(){api.refreshView(),0}). To see what part of your code that caused the refresh check this stacktrace.
http://localhost:8183/aggrid/lib/ag-grid-enterprise.js:12742:66
Error: ag-Grid: cannot get grid to draw rows when it is in the middle of drawing rows. Your code probably called a grid API method while the grid was in the render stage. To overcome this, put the API call into a timeout, eg instead of api.refreshView(), call setTimeout(function(){api.refreshView(),0}). To see what part of your code that caused the refresh check this stacktrace.
This might also explain why when it was running in TiNG some rows would not expand (there would be a ‘flicker’, but nothing would expand, but another row in same grid/foundset would expand/display… (but no error like above was displayed in Servoy debug console).
So… it seems like most of my problems are due to TiNG, which is very frustrating as I was trying to have this new project as my first TiNG one.
And now that I have switched to NG, some of the things don’t look the same as they did in TiNG (but I will play with the size/positions etc. if needed to fix)
There was still an error in the Safari inspector
[attachment=0]Screenshot of Safari (17-03-2023, 12-47-33).png[/attachment]
which is to do with the svySig (& smart doc editor)…
I hope the above might now helps someone at Servoy to work out what might be going wrong???
Thanks