with flash remoting;
myService.deleteDelivery('#APPLICATION.dsn#',id.text,'#deleter#'
,'#APPLICATION.dsn2#',reason.text,extDelNo.text,unit_no.text,product_code.text, shipped_date.text);
id, reason,extDelNo, unit_no, product_code and shipped_date
are flash textboxes. When I call the remoting I get the error
''IntID, a required parameter was not passed in''; This corresponds
to the id.text value. If I hardcode a number then it is passed. The
same with the other text controls. I thought that I could use the
text property of the control and pass that.
I have declared the control names to place then in _root.
var reasons = reasons;
var id = id;
etc...
I know that they have a value as I can see them .
How can i grab the values of these controls and pass them in
the getURL function call? Thanks.
Control Value not Seen in getURL
you can make an absolute reference with _root :
ie. :
_root.id.text or _root.id
or relative :
this.id.text of _parent...id.text (depende el depth of the
control in the movie)
RegardsControl Value not Seen in getURL
Sojovi,
Thanks for the help. When I run the following code just
before the remoting call ''alert(_root.id.text);'' I still get
nothing in the alert box. I can see the value in id on my flash
form.
Any other ideas?
Again, thanks for the assist.
Are you using instance name o variable names for the textbox
in Flash ?
Is in the root level or inside another movieclip ?
_root.id should work... try with the test de movie and view
the objects to see the path to the object.
Regards
Sojovi,
I found the problem. The controls that I was attempting to
use for their text value were of the type ''hidden''. Apparently the
''hidden'' control has no such property. I couldn't find how to get a
hidden control's value. I ended up putting the values into a
textbox and hiding them. The .text property was then passed just
fine.
Again, thanks for the help. It got me thinking.
Mark
I can't find the actual documentation, but to access the
value of a hidden field just drop the dot text part.
IE
A cfinput type=''text'' - controlName.text
A cfinput type=''hidden'' - controlName
Ken
No comments:
Post a Comment