Remove the OK button

Is there a way that SC is able to remove the OK button after the clicking of some button events…

I made a calculation to display perform some maths in my form, and when I the calculations is completed, instead of displaying the proper value on the form, it is redirected to another page showing the OK button.

Another example is I tried to have a button to display the encrypted value in another field.
I have field1 and field2, where field1 is the string to keep the encryption source and field2 is supposed to displayed the encrypted value after pressing the “ENCRYPT” button. However, instead, after clicking the “ENCRYPT” button, it went to another page displaying the “OK” button. Pressing the “OK” button returns to the same page with no value in field1 and field2.

Any help would be grateful

GT

You must use global variables to set if you use buttons ‘just for processing’. Then execute a sc_redir to the same application and use the globals to fill you form. Other option: use onbeforeinsert, onvalidate etc. to do your processing.

So, there is no way of escaping this “OK” button page. Thanks Albert!

gt

Yes there is, but you need to apply the sc_redir.

Albert, I do processing with a button in my detail records.
I then want to redir back to the header , but instead it displays the header form where the detail should be.
in otherwords it is directing the detail form to run te header

You can also javascript “clickit”. I think it is called nmgp_bok…if so try this…or find the element name in Chrome f12. It needs to be an Event.

var clickit = document.getElementsByName(‘nmgp_bok’);
var doit = clickit[0].click();