all groups > macromedia flash flash remoting > december 2003 >
You're in the

macromedia flash flash remoting

group:

Time Entry Application: Is it really working?


Time Entry Application: Is it really working? Jens Hauser
12/7/2003 11:20:21 AM
macromedia flash flash remoting:
I have found the Time Entry Flash sample and it teaches You to build a
appliction on AS 2.0 with classes and forms.

I can´t get it to work after reading the installing instructions. I get the
following error:
Scene 1, Binding between constant(ID) and
application.dmTimeEntry.wscSaveTimeEntry.params.autoGenField: Location
'autoGenField' does not exist

I know that the Flash gateway is there and that the connection to the db is
working. I have tried to install the Flash Remoting Components to be able to
use the NetDebugger but it won´t work.

What can be wrong with the application?

My plan is to try to change it from using webservices to Flash Remoting and
remove the RDBMSResolver packets. I don´t even know what that is but it
looks like XML strings.



http://www.macromedia.com/devnet/mx/flash/articles/time_entry.html


Regards
Jens

Re:Time Entry Application: Is it really working? jeffcg2
12/7/2003 8:46:08 PM
Jens,

This would be the blind leading. But the error message looks like you have lost a binding.
Since that app runs for me this is what I see in the wscSaveTimeEntry component.
Under the Schema tab.
params:Object
datasource:String
deltaData:String
results:String

Under the Bindings tab.
params.datasource
params.autoGenField
params.deltaData
results

Highlight params.autoGenField
bound to is ID
click on it the > then the magnifying glass to open the Bound To window

Use constant value is checked with ID for the value.

From the error message it sounds like that is missing for you.

Jeff Craig


Jeff Craig
Re:Time Entry Application: Is it really working? teflon000
12/10/2003 9:17:00 AM
Jens, you're not alone.

I've also downloaded this app and set it up as instructed. I don't have the CF built in web server running on port 8500 so I've gone in and changed the WSDLURL to reflect my IIS web server and given it the appropriate address to find the cfc file.

However, I'm getting the same error as Jens has described above.

Jeff, looked over the settings as you suggested, and everything seems to be the same.


Any help would be great.

Thanks in advance.


Brendan

Re: Re:Time Entry Application: Is it really working? Jens Hauser
12/11/2003 11:23:31 AM
Yes, this i what I did before it got lost.
I have tried the suggested solution and some others but I can´t found out
what is missing.


Jens

"teflon000" <webforumsuser@macromedia.com> skrev i meddelandet
news:br6oac$27e$1@forums.macromedia.com...
[quoted text, click to view]
the CF built in web server running on port 8500 so I've gone in and changed
the WSDLURL to reflect my IIS web server and given it the appropriate
address to find the cfc file.
[quoted text, click to view]

Re: Re:Time Entry Application: Is it really working? teflon000
12/11/2003 4:23:39 PM
I was able to get this working last night. I'm still pretty green at this so please bear with me.

I narrowed the cause down to the fact that the URL of the Web service being called was getting changed. It only seemed to break the wscSaveTimeEntry web service connector. If I left everything the way it was and tried publishing or testing, it worked fine, but as soon as I changed that URL value, it would break the binding.

Solution: after the URL value is changed, remove the current 'params : autoGenField' binding and create a new one. Add the new binding, and check the 'use path expression' option and manually enter 'autoGenField' into the field provided. Set the values in the Bindings and Schema to match, and off you go. I found that you could leave the old binding for reference, until the new one is created, and then remove it.

I had this working with numeric IP addresses, as well as domain names references.

Only thing, if anyone knows why this solved the problem, please let me know. It's fixed, but I don't know why.

Jens, let me know if this works for you as well.


Brendan



Re: Re:Time Entry Application: Is it really working? Jens Hauser
12/12/2003 12:34:47 AM
It´s working!! THANK YOU! I don´t know why it is working. I am rather new to
all this with remoting, especially with the DBMSProcessor, delta packages
stuff. I would rather use normal cfc. I understand them better. I looked
through the cfc and it looks like the package in really a xml stream, parsed
by the cfc into insert, update and delete sql statements and at the same
time creates a new stream to send back. Clever.


-------------
This is how i did it:
But I did the other way around.
Changed the urls to IP instead of localhost
Added an 'autoGenField' field, String, under the Schema tab
Added a Params field named 'autoGenField' in the Bindingstab
Changed the direction to in/out
Clicked the little thing on the bound to
The popup comes with all the Components
Navigate to Application/ dmTimeEntry/ WebServiceConnector /
wscSaveTimeEntry/ params: Objects/ autoGenField: String
If the field is greyed out. Change the direction to in/out
Hit ok
Test the movie



Jens

"teflon000" <webforumsuser@macromedia.com> skrev i meddelandet
news:bra5mb$rs5$1@forums.macromedia.com...
[quoted text, click to view]
being called was getting changed. It only seemed to break the
wscSaveTimeEntry web service connector. If I left everything the way it was
and tried publishing or testing, it worked fine, but as soon as I changed
that URL value, it would break the binding.
[quoted text, click to view]
autoGenField' binding and create a new one. Add the new binding, and check
the 'use path expression' option and manually enter 'autoGenField' into the
field provided. Set the values in the Bindings and Schema to match, and off
you go. I found that you could leave the old binding for reference, until
the new one is created, and then remove it.
[quoted text, click to view]

AddThis Social Bookmark Button