inn.applyMethod() doesnot work at all :(:(:(

Former Member
Former Member

I am trying to call server method(C#) from client method(Javascript) but applyMethod() doesnot work at all......... :(

var ctx = this.document.thisItem;

var inn = ctx.getInnovator();

var branches = inn.applyMethod("SFT_LoadBranchesServer","<source_id>"+document.thisItem.getID()+"</source_id>"

Parents
  • Hi Mrunal

    Could you please provide what error are you getting ?. I'm able to run the server method using below. Are you getting getID() value in your code?

    var inn = document.thisItem.getInnovator();

    var itemid = document.item.getAttribute("id");

    var body = "<itemId>" + itemid + "</itemId>";

    var voteRes = inn.applyMethod("ServerMethodName", body);

Reply
  • Hi Mrunal

    Could you please provide what error are you getting ?. I'm able to run the server method using below. Are you getting getID() value in your code?

    var inn = document.thisItem.getInnovator();

    var itemid = document.item.getAttribute("id");

    var body = "<itemId>" + itemid + "</itemId>";

    var voteRes = inn.applyMethod("ServerMethodName", body);

Children