Results 1 to 8 of 8

Thread: Traversing the LOM

  1. #1
    Senior Member
    Join Date
    Feb 2012
    Posts
    1,237

    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
    6,083
    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
    6,083
    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
    Senior Member
    Join Date
    Feb 2012
    Posts
    1,237
    Fantastic - exactly what I was looking for.

    Thanks!

    Herb

  5. #5
    Lianja MVP
    Join Date
    May 2012
    Posts
    399
    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,044
    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,471
    For further information:

    Working with the Lianja Object Model

    Regards,

    Yvonne

  8. #8
    Lianja MVP
    Join Date
    May 2012
    Posts
    399
    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