dulux-oz
May 8th, 2014, 10:09
Hi Guys,
I've been beating my head against the proverbial brick wall for a couple of hours now, and I still can't get this to work.
I've got a WindowReferenceControl Node in the DB. I want to get either: (a) the actual string value in the <recordname> tag, or (b) the node that the <recordname> tag references.
I've tried all of the following to no effect (usually an error message along the lines of "attempt to call field '[whatever]' (a nil value)".
oNode.getChild("mylink").getType() gives "windowreference"
oNode.getChild("mylink").getValue() gives the <class> but not the <recordname> info
oNode.getChild("mylink").getTargetDatabaseNode() gives an error
oNode.getChild("mylink").getChild("recordname") gives NIL
oNode.getChild("mylink").isEmpty() gives an error
Help!
Please!
:p
Cheers
I've been beating my head against the proverbial brick wall for a couple of hours now, and I still can't get this to work.
I've got a WindowReferenceControl Node in the DB. I want to get either: (a) the actual string value in the <recordname> tag, or (b) the node that the <recordname> tag references.
I've tried all of the following to no effect (usually an error message along the lines of "attempt to call field '[whatever]' (a nil value)".
oNode.getChild("mylink").getType() gives "windowreference"
oNode.getChild("mylink").getValue() gives the <class> but not the <recordname> info
oNode.getChild("mylink").getTargetDatabaseNode() gives an error
oNode.getChild("mylink").getChild("recordname") gives NIL
oNode.getChild("mylink").isEmpty() gives an error
Help!
Please!
:p
Cheers