Hi!
When I save FNCGrid settings in VCL and then try to load these settings in a Web Core application I get this error:
ERROR
Uncaught [object Object] |
FMessage::Name expected FHelpContext::0
FJSError::Error: Name expected
FStack::Error: Name expected
at Object.Create$1 (http://localhost:8000/SeguimientoWeb/SeguimientoWeb.js:3446:23)
at Object.Create$2 (http://localhost:8000/SeguimientoWeb/SeguimientoWeb.js:58550:41)
at c.$create (http://localhost:8000/SeguimientoWeb/SeguimientoWeb.js:337:19)
at Object.DoPeek (http://localhost:8000/SeguimientoWeb/SeguimientoWeb.js:58685:36)
at Object.NextPeek (http://localhost:8000/SeguimientoWeb/SeguimientoWeb.js:58616:97)
at Object.HasNext (http://localhost:8000/SeguimientoWeb/SeguimientoWeb.js:59127:23)
at Object.ReadSingleObject$1 (http://localhost:8000/SeguimientoWeb/SeguimientoWeb.js:61477:27)
at Object.ReadObject (http://localhost:8000/SeguimientoWeb/SeguimientoWeb.js:61936:20)
at Object.Read$1 (http://localhost:8000/SeguimientoWeb/SeguimientoWeb.js:61955:12)
at Object.LoadSettingsFromStream (http://localhost:8000/SeguimientoWeb/SeguimientoWeb.js:62091:16)
at http://localhost:8000/SeguimientoWeb/SeguimientoWeb.js [58685:11]
It all starts where I call LoadSettingsFromStream
. I save them with AppearanceOnly = True
, encoding is Ok, used streams are ok, I can verify the saved contents on both platforms, but the error is always there.
I compared saved settings of a "native" Web Core FNC Grid and a VCL FNC Grid, and the only thing I noticed was that for every Font
structure, VCL version has the properties Orientation
,Pitch
& Quality
, which are not present in web version.
"Font": {
"$type": "TFont",
"Charset": 1,
"Color": "#000000",
"Height": -12,
"Name": "Segoe UI",
"Orientation": 0,
"Pitch": 0,
"Quality": 0,
"Size": 9,
"IsFMX": false,
"Style": 0
},
May it be the problem ? I thought I could exclude them using CanSaveProperty
event , but subproperties don't fire this event, only 1st level properties.