Results 1 to 4 of 4

Thread: Working with Third Party libraries

  1. #1
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    5,792

    Working with Third Party libraries

    Lianja 5 has simplified and improved the way you work with third party libraries.

    You specify the additional file path for third party libraries in the App Settings like this:

    Name:  Screen Shot 2019-08-25 at 11.03.55 AM.jpg
Views: 164
Size:  131.9 KB

    As can be seen in the above screenshot, you can separate your code up into server side code and client side code and have it auto included when you deploy your app.

    Server side code can be written in Lianja/VFP or Python.

    You can seamlessly call server side functions from the client (desktop, web or mobile) using exports.conf.
    https://www.lianja.com/doc/index.php/Exports.conf

    Alternatively you can call server side code using Lianja.evaluate().
    https://www.lianja.com/doc/index.php/Lianja

    These screenshots demonstrate how to call server-side functions from the client.

    The thirdpartylibs directory/file structure.

    Name:  Screen Shot 2019-08-25 at 10.19.58 AM.jpg
Views: 161
Size:  26.8 KB

    Name:  Screen Shot 2019-08-25 at 10.19.05 AM.jpg
Views: 156
Size:  22.4 KB

    Name:  Screen Shot 2019-08-25 at 10.19.18 AM.jpg
Views: 163
Size:  21.0 KB

    Name:  Screen Shot 2019-08-25 at 10.19.44 AM.png
Views: 156
Size:  49.8 KB

    Call functions from the App Builder IDE.

    Name:  Screen Shot 2019-08-25 at 11.04.49 AM.jpg
Views: 161
Size:  28.1 KB

    Name:  Screen Shot 2019-08-25 at 11.05.07 AM.jpg
Views: 160
Size:  28.9 KB

    Call functions from the web client.

    Name:  Screen Shot 2019-08-25 at 10.20.49 AM.jpg
Views: 157
Size:  41.1 KB
    Last edited by barrymavin; 2019-08-25 at 09:36.
    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

  2. #2
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    1,965
    Hi Barry,

    Perfect!

    thanks,

    Hank

  3. #3
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    1,965
    Even more perfect: in the help window at the bottom of the properties dialog, there is this text:

    Name:  AtDirJSInclude8-26-2019 1-11-21 PM.png
Views: 97
Size:  2.9 KB


    This is very, very handy. For example, I have a couple of JS functions that keep controls in a canvas section together as a group but centered in the Canvas section as the page, I will explore other uses.

    Hank

  4. #4
    Senior Member
    Join Date
    Feb 2012
    Posts
    1,223
    This is very cool, Thanks Barry!

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