1 person found this helpful
Read up on “deferred instantiation”. It is not recommneded to reach down into the controls. It is better to have the controls get the information they need via events or databinding.
However, things with id attributes are accessed as variables of the document. No need to use getChildByName or loop through children.
this[“objid”] as NumericStepper
Thanks for your response.. I tried accessing it as
propagatedIDInput.value = int(markedObject.propagatedID); and
this.propagatedIDInput.value = int(markedObject.propagatedID)...
but either way gives my error " Trying to access property or method of null object reference"..don't know why but I am able to access the radiobuttons ( another formItem' child..see above) directly without any problems
Am I missing something here?
in which event u r accessing these object???
You are missing the part about deferred instantiation. Objects are not always created right away. That’s why it is better to have them pull their information instead of push it to them.
You were absolutely correct....the deffered instantiation was the causing the value to be passed to it....I just set the creationPolicy=all (which sort of defeats the purpose of deffered instantiation) ..it worked like a charm ...thanks very much