Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: JS delegates callling VFP server side functions

Hybrid View

  1. #1
    Senior Member
    Join Date
    Jan 2014
    Posts
    369
    Yes sorry - one question per thread from now on.

    Will try to keep the idiot questions to a minimum.

    Thanks

    Simon

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,183
    Blog Entries
    22
    Quote Originally Posted by SpringBox View Post
    Hi Guys

    We are just getting to grips with using JS to call VFP servr side functions and got it to work in desktop preview mode but in Android tablet view mode it didnt work

    We are using :

    var result = Lianja.evaluate("serverside()");


    Is the syntax different if calling from a mobile device?

    Thanks in advance?

    Simon
    Make sure your server proc is not reliant on the data session in desktop. In other words it should be stateless and not assume a database and tables are open. That's a common mistake made. Use push/pop datasession.

    Run the app in a browser and from the JavaScript condole yiu can test your Lianja.evaluate() calls interactively.
    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

  3. #3
    Senior Member
    Join Date
    Jan 2014
    Posts
    369
    Thanks Barry

    Understood about the stateless nature of the mobile UI.

    So far these calls just flash up a messagebox so there is no data reliance yet.

    Any thoughts?

    Simon

  4. #4
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,183
    Blog Entries
    22
    Quote Originally Posted by SpringBox View Post
    Thanks Barry

    Understood about the stateless nature of the mobile UI.

    So far these calls just flash up a messagebox so there is no data reliance yet.

    Any thoughts?

    Simon
    You cannot "flash up a message box" on the server. You can't use any UI commands in server code.
    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