sc_actionbar_show("button_name")

This macro displays the action bar button, hidden using the sc_actionbar_hide macro

This macro can be used for any type of button (link or ajax) on the action bar.

Parameter definition

Parameter Syntax Description
button_name

It is not possible to use variables. The button name must be informed using double quotes or single quotes.

 

Example
sc_actionbar_show("ajax_btn");

This parameter is mandatory.

We must inform the name of the action bar button that will be displayed.

 

Exemplos


 

Example 1: Basic macro usage

sc_actionbar_show("button_name");

 

Example 2: Showing the order detail link button if there are any records to show.

// Example created in the onRecord event of the query using the order and orderdetail table
// If there are no items in the order, the button will not be displayed

$query = "SELECT count(*) FROM OrderDetails WHERE OrderID =" . {OrderID}; sc_lookup(ds, $query); if ({ds[0][0]} <> 0) {
//Exemplo de utilização da macro sc_actionbar_enable sc_actionbar_show("button_name"); } else { sc_actionbar_hide("button_name"); }