I can put a "set date to german" by the Console and it works ok in DeskView.
But how and where I must write it in Javascript UI?
I can put a "set date to german" by the Console and it works ok in DeskView.
But how and where I must write it in Javascript UI?
Hi gjcm,
You can use Lianja.execute(...)
See:
http://www.lianja.com/community/show...values-from-JS
and
http://www.lianja.com/community/show...rom-JavaScript
So, this should work:
Code:Lianja.execute("set date to german")
Last edited by josipradnik; 2015-04-27 at 09:02.
Ok. And where can I put it? In section.init() ?
Puno Hvala!
Georg
Hello Georg,
Dates in the Web Client are displayed in ANSI format so to be independent of the locale of the user.
The format is:
yyyy-mm-dd or yyyy-mm-dd hh:ii:ss
I see. Thank you! Georg
But in WebView (report) it's displayed ok (e.g. "German")...
Web and Mobile Apps are stateless. What this means is that you cannot guarantee a persistent connection between the Web client and the server. When requests are made by the browser these arrive on the server and are handled by worker processes based on their availability. Lianja uses connection pooling to optimize performance.
Not only does it use connection pooling for web requests it also uses ODBC connection pooling to handle Virtual Table access.
Therefore, executing a command like that only affects the server process that the command runs on. It has no effect on the client and the next Lianja.execute() may run in a completely different server context.
Chris has explained the use of ANSI dates and datetimes already in this thread.
Principal developer of Lianja, Recital and other products
Follow me on:
Twitter: http://twitter.com/lianjaInc
Facebook: http://www.facebook.com/LianjaInc
LinkedIn: http://www.linkedin.com/in/barrymavin
Bookmarks