4DQuiz


Accessing Embedded Objects View from small screen devices!  

Accessing Embedded Objects

To access the "firstname" item in the "fields" Object, you would use:

$firstName:= OT GetString ($object;"fields.firstname")

This is what you would expect. But how would you access the "table" item in the embedded "dialog" object?

Embedded items are accessed using dot notation. Given an embedded object "foo", you access items within that object with the tag "foo.".

So, for example, to access the "table" item inside the "dialog" object defined above, you would use:

C_POINTER($table) OT GetPointer ($object;"dialog.table";$table)

If objects are nested more than one level deep, you just continue adding dots. So to access an item called "bar" inside an embedded object called "foo" inside an embedded object called "foobar", you would use "foobar.foo.bar".



Topics of Interest
Embedded Objects
 

Published date: Sun, 16 Jul 2006 06:40:53 GMT   → View XML Version

Edit this page now

© 2005 - 2006 4dquiz.com, All trademarks accepted. All Rights Reserved!
Site Index