Results 1 to 7 of 7

Thread: Where and how could I put the date to "german" in a WebApp (js)

  1. #1
    Senior Member
    Join Date
    Feb 2012
    Location
    Germany, near Jena and Weimar
    Posts
    119

    Where and how could I put the date to "german" in a WebApp (js)

    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?

  2. #2
    Lianja MVP
    Join Date
    Dec 2012
    Location
    Croatia, Zagreb
    Posts
    1,099
    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.

  3. #3
    Senior Member
    Join Date
    Feb 2012
    Location
    Germany, near Jena and Weimar
    Posts
    119
    Ok. And where can I put it? In section.init() ?
    Puno Hvala!
    Georg

  4. #4
    Lianja Team chris.mavin's Avatar
    Join Date
    Feb 2012
    Location
    London UK
    Posts
    29
    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

  5. #5
    Senior Member
    Join Date
    Feb 2012
    Location
    Germany, near Jena and Weimar
    Posts
    119
    I see. Thank you! Georg
    But in WebView (report) it's displayed ok (e.g. "German")...

  6. #6
    Lianja Team chris.mavin's Avatar
    Join Date
    Feb 2012
    Location
    London UK
    Posts
    29
    Quote Originally Posted by gcjm View Post
    I see. Thank you! Georg
    But in WebView (report) it's displayed ok (e.g. "German")...
    No problem Georg,

    the WebView report is generated server side using a dynamic server page which is why it can display an alternative date format to ANSI.

  7. #7
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    5,769
    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us