perform an action with run button

Hi, I’m new on scriptcase and I’m a little lost in the platform.
I need to update a field (in a grid app) with a run button and send mail once upon a field was updated.

I look in a sample proyect, that’s appears very easy, I foun a grid app, thats perform a discount of a 5% in a all selectd fields. But I doesn’t found the code thats made this discount. I just see a code in the Scriptinit event thats change the color of the fields updated.

So, In which part of the application I have to put the code that permit me upon doing click in the button, toupdate a field and to send a mail? and How can I do this actions?

Thanks in advance.

Regards,

Marcelo

Re: perform an action with run button

You can create a PHP button and add the coded under there. If you need a live update, then you can JS buttons and do the same.

Create the function in JS and then call the function under the JS button.

Regards,
Scott.

Re: perform an action with run button

OK, thanks.
So, I can write any function I want in php or javascript, associated to the button, right?

Re: perform an action with run button

Yes.

Regards,
Scott.

Re: perform an action with run button

The idea of Scott is very nice,

regarding our sample base, you can check all the tutorials in the website to help you more.