How to call user defined method/function when click on command button....?

rated by 0 users
This post has 5 Replies | 2 Followers

Top 500 Contributor
Posts 4
Points 80
Revansidh Posted: Mon, May 25 2009 2:18 AM

I have already writien one method. Now I want to call this method....!

This method should be called when I clicked on any command button.

I already called this method on field event i.e. Click.. But I is not working ...!

So How I call this call this method on any field event.....!

Thank you.....

Top 25 Contributor
Posts 86
Points 1,295
tstickel replied on Mon, May 25 2009 2:48 PM

I assume that you wrote the method in Javascript and that you set-up the onClick field event on the appropriate Form definition.

After checking the above steps, you must either logoff Innovator and log back on to ensure you are using the latest definition of the Form (or easier: go to Tools on the main Innovator tool bar and select Admin and then Clear Client Form Cache).  If you do not do this, then Innovator will continue to run with the previous definition of the Form.

If that doesn't fix the problem then I would add a "debugger;" statement at the beginning of your method.  That would invoke the Windows script debugger when the method is called.

Terry Stickel, PDM Consultant

TStickel Consulting

Sanibel, Florida

  • | Post Points: 20
Top 500 Contributor
Posts 4
Points 80
Revansidh replied on Tue, May 26 2009 1:44 AM

Thank you !

for the quick response for my problem...! My Problem is solved now....

But If I want to call the method that written into C# language. Then what is procedure for calling the method that written into other than javascript language.

Thank you,

  • | Post Points: 20
Top 75 Contributor
Posts 15
Points 240

I have the same problem.I can't call server method on button click ( Field Event).if is it possible what is the procedure for calling server event on button click.

Top 50 Contributor
Posts 26
Points 310
Sachin replied on Tue, Dec 6 2011 10:18 PM

Hello,

You can't call server side methods directly from a button.

You need to call a Client Side method and then call the server side method as a Generic Method from the Client method.

See the Programmers handbook for generic methods.

Regards,

Sachin

  • | Post Points: 20
Top 75 Contributor
Posts 15
Points 240

Thanks for reply. I found syntax that calling server event in js is item.applyMethod("methodname",body)


**Btw sorry for my english.. 

Page 1 of 1 (6 items) | RSS