Results 1 to 8 of 8

Thread: Traversing the LOM

  1. #1

    Traversing the LOM

    I thought I recalled seeing this posted somewhere, but cannot locate it.

    How would I list out all the elements in the LOM?

    Thanks

    Herb

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,385
    Blog Entries
    22
    It would seem that there is no method to traverse the items in a section other than by Lianja.getElementByID() which is a bit of an oversight.

    I will add in:

    .count
    .item( nExp )

    and while i'm at it I will do the same for pages so you can traverse the App like this.

    Code:
    for i=1 to Lianja.count
        oPage = Lianja.item( i )
        for j=1 to oPage.count 
            oSection = oPage.item( j )
            for k=1 to oSection.count
                oFormitem = oSection.item( k )
            endfor
        endfor
    endfor
    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
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,385
    Blog Entries
    22
    That functionality has now been added in as described earlier in the thread and will be available to MVPs in the windows/beta folder soon.
    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

  4. #4
    Fantastic - exactly what I was looking for.

    Thanks!

    Herb

  5. #5
    Quote Originally Posted by hmischel@diligentsystems.com View Post
    I thought I recalled seeing this posted somewhere, but cannot locate it.

    How would I list out all the elements in the LOM?

    Thanks

    Herb
    Hey Herb

    What does LOM stand for?
    http://www.acronymfinder.com/LOM.html shows lots of definitions (like leader of men!). None seem to fit.

  6. #6
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,198
    Quote Originally Posted by cyrilbaskir View Post
    Hey Herb

    What does LOM stand for?
    http://www.acronymfinder.com/LOM.html shows lots of definitions (like leader of men!). None seem to fit.
    Lianja Object Model

  7. #7
    Lianja Team yvonne.milne's Avatar
    Join Date
    Feb 2012
    Location
    Berkshire, UK
    Posts
    1,930
    For further information:

    Working with the Lianja Object Model

    Regards,

    Yvonne

  8. #8
    OIC. Thanks for the info.

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