Function is undefined

Former Member
Former Member
Hello all I have a form and I wanted to add a button to this form, I have a server side method and I choose this method as a button Click or button Focus event. I get the following error Event handler failed with message: 'func$FE48E619C551415A8C3F9D0023594694$_onfocus0' is undefined   Am I missing some steps? Thanks
Parents
  • Hello, It is not possible to use a server-side method with Form Events or Field Events. However, you can call a server-side method from within a JavaScript method using code like the sample below. aras.applyMethod("My Method", ''); The second argument can be used to pass in any arguments to the server-side method that you need. aras.applyMethod("My Method", "<myArg>My Arg's Value</myArg>"); You can then retrieve these arguments from within your server-side method with a line like below. this.getProperty("myArg"); Chris _____________________________________________ Christopher Gillis Aras Labs Software Engineer
Reply
  • Hello, It is not possible to use a server-side method with Form Events or Field Events. However, you can call a server-side method from within a JavaScript method using code like the sample below. aras.applyMethod("My Method", ''); The second argument can be used to pass in any arguments to the server-side method that you need. aras.applyMethod("My Method", "<myArg>My Arg's Value</myArg>"); You can then retrieve these arguments from within your server-side method with a line like below. this.getProperty("myArg"); Chris _____________________________________________ Christopher Gillis Aras Labs Software Engineer
Children
No Data