Results 1 to 8 of 8

Thread: Best way to handle a tree class for use on various sections

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

    Best way to handle a tree class for use on various sections

    I have a form in my VfP application that has a number of tabs and a tree view control on the left hand slide of it

    Name:  egg_form.png
Views: 91
Size:  140.5 KB

    In Lianja I'm thinking of having each of the current tabs as separate sections, I think that is the correct term.

    The tree view has a lot of code in it with many options the user can select to display the data in various formats.

    I'd need to have the tree view control on the left of each of the sections.

    What is the best way in Lianja to create the tree view so I can just drop it onto the section and have one base that I alter code in and still do it in a way that will work in the way Lianja want things to work. I know there are a lot of ways of doing things in Linaja, I want something that will work will desktop and web so I'm future proofed.

    My current Tree view control is based on an activeX control, in Linajs I want to use java script to get away from installing active x controls and all the issues that go with that
    Last edited by avianmanagement; 2022-03-21 at 08:38.

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    6,889
    Blog Entries
    18
    Hi David,

    You can still use tabviews just as you currently do.

    Have a look through the examples and you will discover the TreeView navigation example.
    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
    657
    Thanks Barry,

    I take another look at it.

    If I want to make any 'class' that i can drop onto forms how does one do that.

    For example my users have to enter dates for the laid between textboxs in the above image.

    When the enter the text box and type 88 it fills it with yesterday's date and the current time.

    If the type 99 it will fill it with todays date and time. This saves them a lot of time

    So I'll have to convert my existing class that I have in VFP not I guess a gadget so that I can drop it onto variosu forms.

    Is the gadget approach the best way to do that?

  4. #4
    Senior Member
    Join Date
    Apr 2012
    Location
    United Kingdom
    Posts
    657
    Quote Originally Posted by barrymavin View Post
    Hi David,

    You can still use tabviews just as you currently do.

    Have a look through the examples and you will discover the TreeView navigation example.
    Hi Barry,

    The reason I was looking at getting away form the tab view is that I will, I think, need to use canvas sections to get the precise layout I need, such as in the image below

    Name:  eggformweightpage.png
Views: 36
Size:  178.6 KB

    Can one lay stuff out like this on a tabview page, or can one even use canvas sections on them?

    The order and position of the controls on this page are critical as we have developed it over many years and refined it to that it's the best for the user when weighing eggs.

    I might move some of the information parts such as parent details shown on here to a side bar control on the right using rsp pages

  5. #5
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    6,889
    Blog Entries
    18
    Yes of course. You can design your app in separate sections and there is an option in the menu bar to “Create TabView from page”. This takes all sections and places them into their own tabs. At any time during development you can click the close x on a tab and it will be detached.
    Last edited by barrymavin; 2022-03-21 at 10:10.
    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

  6. #6
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    6,889
    Blog Entries
    18
    No, metatypes will handle that.
    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
    657
    Thanks Barry,

    I didn't realise that one could use canvas sections and then create tab views from them.

    If I can do that then my users will be very happy as they are used to this tab view interface.

    I'll have a play with some simple stuff to see hwo it works.

    Many thanks yet again

    David

  8. #8
    Senior Member
    Join Date
    Apr 2012
    Location
    United Kingdom
    Posts
    657
    Just tried that and it was incredibly easy to do.

    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