Skip to main content
May 15, 2006
Question

call to serverside func fails

  • May 15, 2006
  • 1 reply
  • 222 views
Call to serveside function returns "NetConnection.Call.Failed Failed to execute method".
I read livedoc thousands times and have no clue. Since main.asc loads another asc for components and
this asc is uneditable, I have to make this server-side func using Client.prototype.
Any tips from you fms developers who have gone thru this would be much appreciated!!!

My codes look like this:

Client-side:
this.nc("deleteFiles", new Res(), fileID);

Server-side:
load("uneditable.asc");

Client.prototype.deleteFiles = function(fileID){
...// codes to delete files on server
};
    This topic is closed to new replies. Start a new post to keep the conversation going.

    1 reply

    Hasan Otuome
    Participating Frequently
    May 25, 2006
    Question: is new Res() your responder or result object?

    Also, have you tried this syntax?

    nc.call("deleteFiles", {onResult : Delegate.create(this,doThisFunction)}, fileID);

    I'm using the Delegate class (mx.utils.Delegate) but that's the style I've been using in similiar situations. HTH...