Domen Dolar - 2020-08-18

There are 4 steps how to create custom button:

1: Create element on the block or form with type button

2: Create Link with the code that button will trigger when it is pressed
In this part link can open new form, trigger your custom javscript code, ... In our example will trigger code to go on previous page (history.go(-1)). We will also disable spinner. Spinner is set to all buttons by default in RASD. On JAVACSRIPT element you can use #GC# kode to input generated code by RASD into ypur link.

3: Connect link to new created button

4: Set value to be visible in the name of the button

Here you set value presented in button. On select block (SQL is behind) this value shoul be set on POST_SELECT trigger like PMYBUTTON := 'My button value';. Default values is set only to new rows on block.

and the result is....

Semple on DEMO page

 

Last edit: Domen Dolar 2020-08-18