I'm trying to use frontCall localStorage with GDC as the frontend but I always get the error "front End function could not be found" during runtime.
My code goes as following:
Quote
call ui.Interface.frontCall("localStorage", "setItem", [keyID,keyValue], [])
or:
Quote
call ui.Interface.frontCall("localStorage", "getItem", [keyID], [keyValue])
Am I doing something wrong? According to the manual localStorage should work on all frontends.
My FGL version is 3.10.18 and GDC is 3.10.11.
Thank you!
A search on "localStorage" in the Issue Tracker reveals https://4js.com/support/issue/?product=GDC&stat=&fixed_in=&words=localStorage&Search=Search
Clicking on https://4js.com/support/issue/?id=GDC-03980 suggests that there was an issue if the function wasn't in lower case i.e setItem vs setitem.
I'd suggest amending your code setItem -> setitem etc or upgrade to GDC 3.10.18 and see if resolved
Reuben
I did search, but I did it for product FGL and that was my error.
Thank you Ruben, this has solved my problem.
Its working fine now!