Run Button On Grid

Hi,

I have created a run button on my grid to allow me to export individual (checked) rows in the grid to csv using PHPExcel. This all works fine except for the “Ok” button which is automatically created when any output is sent to the browser window.

So my simple question is… Is it possible to hide / remove the “Ok” button?

Regards,

Mike
TSM Limited

Re: Run Button On Grid

Hello,

You could try to use sc_exit(sel). Let me know on any advancements.

regards,
Bernhard Bernsmann

Re: Run Button On Grid

Hi Bernhard,

sc_exit(sel) does supress the ok button, but also exits the code and returns back to the grid. What I would like to achieve is some way of hiding the Ok button, but also keeping the output html on screen so that the user can make a choice. See image attached.

There must be some internal Scriptcase way of suppressing the Ok button, as sc_exit() seems to be able to do this. I would just like to do it without exiting the window. Any ideas?

Regards,

Mike

Screenshot.jpg

Re: Run Button On Grid

Hello,

You could try to grab its ID (using firebug for instance), and then hide it.

regards,
Bernhard Bernsmann

Re: Run Button On Grid

Hi Bernhard,

Thanks for the suggestion and sorry for the delay in my reply. I tried this already and could not find a way to make it work (if anybody else has let me know).

IMO, it would be a good addition for future versions of Scriptcase to have an option of supressing the Ok button. A simple enable / disable option. Just a thought…

Regards,

Mike
TSM Limited

Hi, too many years after the post :slight_smile: has anybody found a solution about this?