PDA

View Full Version : Traversing the LOM



hmischel@diligentsystems.com
2013-08-20, 16:40
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

barrymavin
2013-08-21, 08:37
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.



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

barrymavin
2013-08-21, 20:58
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.

hmischel@diligentsystems.com
2013-08-21, 23:11
Fantastic - exactly what I was looking for.

Thanks!

Herb

cyrilbaskir
2013-08-22, 18:42
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.

HankFay
2013-08-22, 20:15
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

yvonne.milne
2013-08-23, 05:53
For further information:

Working with the Lianja Object Model (http://www.lianja.com/resources/blog/39-coding-tips/129-working-with-the-lianja-object-model)

Regards,

Yvonne

cyrilbaskir
2013-08-23, 20:51
OIC. Thanks for the info.