Results 1 to 7 of 7

Thread: Directories

  1. #1
    Senior Member
    Join Date
    Apr 2012
    Location
    United Kingdom
    Posts
    516

    Directories

    Not sure if this is already possible so wanted to check before submitting an ER ticket.

    As far as I can see at the moment when I create a new app I get the default library location as:

    Data directory C:\Lianja\data\
    Apps directory C:\Lianja\apps\
    Library directory C:\Lianja\library\

    Lianja creates a folder in the data director matching the name of the database and the database and tables etc are placed in that.

    Is it possible to have a default folder that is added to library and apps so that library files and apps for the project are kept in there, if one wants to set that at the project level.

    At the moment for every app I create I have to go in and set these by hand. I would think most uses would want to have the apps and files for a particular project in a main folder for the project itself rather than in the root of library folder C:\Lianja\library\

    For a new project names aims I want to have

    Apps directory C:\Lianja\apps\aims\
    Library directory C:\Lianja\library\aims\

    By default for every app I create for the project

    I assume that if I use C:\Lianja\library\aims\ then Lianja will also see and other library folders in C:\Lianja\library\?

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    5,971
    That’s not possible David. This directory structure is required to translate easily to web and mobile. You can add your apps and files into a project and open that. I’m not going to hack about with the product at this stage and make any major changes like that you are suggesting. Sorry.
    Last edited by barrymavin; 2020-10-26 at 10:47.
    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
    Apr 2012
    Location
    United Kingdom
    Posts
    516
    Hi Barry,

    Yes I understand not wanting to mess with it at this stage.

    I see that under C:\Lianja\library\ there are folder such as icons, images, which my app can access I assume

    With my library pointing to C:\Lianja\library will the app see a folder I create in there and the files in it or do I have to keep everything in the C:\Lianja\library directory for library files?

    If so then could I leave the path as C:\Lianja\library and then make a directory named aim and have all my prgs in there from my vfp app as I have hundreds of them and it makes life easier if they are in one place?

    In the docs it says:

    "Evaluate expression. In the LianjaWebFramework, business procedures in custom libraries on the server can also be called.
    To call a procedure in a library, prefix the procedure name with the library name and '::'
    var result = Lianja.evaluate("mylib::myproc()");
    The expression can include a scripting language prefix to indicate the target language, i.e. : 'javascript:', 'php:', 'python:'. If none is specified, Lianja/VFP scripting is used."

    If I can't change the library directory from C:\Lianja\library then what is the mylib part of mylib::myproc refering to?

    Same for the apps directory can I leave it as C:\Lianja\apps\ and just put a folder in there and put my apps in by hand?

    I see that when installed Linaja has it's demo apps inside folders in there, does the system put them there for you or was it done by hand?

    It just make life a lot easier if thins are in their own folders.

  4. #4
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,011
    Hi David,

    Are you familiar with thirdparty libs? There are 2 settings on the app object, one for editor searching and the other for "additional application path". I have a thirdpartylibs\psplib directory, etc.

    Hank

  5. #5
    Senior Member
    Join Date
    Apr 2012
    Location
    United Kingdom
    Posts
    516
    Thanks Hank

    Just what I need by the looks of it for all the psplib stuff and I'll make one for aims as well.

    I'll also try one for my prgs for my system as there are hundreds of prg files I need to move over from my old vfp system to Lianja for my project.

    is that what the mylib stands for?

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

    create an app in the GUI. You can then add all your files into it.

    You ask me how dix the files get there. I built apps and put them there.

    I think you need to start with that. You can drag external files from explorer into the app files tree.

    Build apps the Lianja way following best practices and it will run in the web as you stated was your objective.
    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

  7. #7
    Senior Member
    Join Date
    Apr 2012
    Location
    United Kingdom
    Posts
    516
    Thanks Barry,

    I'll use the thirdparty lib folder for my prgs and leave the rest the normal Lianja way so it works without having to mess about. I'll just prefix app names with the app prefix such as aim_mainegg

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