barrymavin
2014-08-03, 00:12
In Lianja v1.2, note that in a desktop App you can now extend the Lianja system object like this to pass data between apps. Try this from the console.
Lianja.mydata = object()
Lianja.mydata.name (http://lianja.mydata.name/) = "Barry"
declare mytable[10]
Lianja.mydata.mytable = mytable
Lianja.mydata.mytable[1] = "Lianja"
Lianja.mydata.mytable[2] = object()
Lianja.mydata.mytable[2].name = "Hello world"
? json_encode( Lianja.mydata )
? json_decode( json_encode( Lianja.mydata ) )
So in other words you can extend the Lianja system object with your own data that persists between each App that you open.
Lianja, unlike VFP reference counts the arrays and objects so they can be assigned into data structures as above.
There is some more functionality coming soon to share data across web and mobile apps but its not production ready. I will document it when it is completed to my satisfaction. This is to do with persisting data between sessions in localStorage and sessionStorage in Desktop, Web and Mobile Apps.
Lianja.mydata = object()
Lianja.mydata.name (http://lianja.mydata.name/) = "Barry"
declare mytable[10]
Lianja.mydata.mytable = mytable
Lianja.mydata.mytable[1] = "Lianja"
Lianja.mydata.mytable[2] = object()
Lianja.mydata.mytable[2].name = "Hello world"
? json_encode( Lianja.mydata )
? json_decode( json_encode( Lianja.mydata ) )
So in other words you can extend the Lianja system object with your own data that persists between each App that you open.
Lianja, unlike VFP reference counts the arrays and objects so they can be assigned into data structures as above.
There is some more functionality coming soon to share data across web and mobile apps but its not production ready. I will document it when it is completed to my satisfaction. This is to do with persisting data between sessions in localStorage and sessionStorage in Desktop, Web and Mobile Apps.