sc_btn_display("Button_Name","on/off")
|
|
Activate toolbars buttons on the application in execution time.
Button_Name: Is the variable name that contains the name of the button to be activated/deactivated.
Buttons Name (Grid):
group displays the "Group By" button in the grid.
Buttons Name
|
Description |
| first |
Goes to the first page of the grid. |
| back |
Goes to the previous page of the grid. |
| forward |
Goes to the next page of the grid. |
| last |
Goes to the last page of the grid. |
| filter |
Displays the "Filter" button. |
| pdf |
Generates colored PDF. |
| det_pdf |
Generates a detailed PDF. |
| pdfbw |
Generates black and white PDF. |
| xls |
Generates the XLS. |
| xml |
Generates the XML. |
| csv |
Generates the CVS. |
| rtf |
Generates the RTF. |
| word |
Generates the Word. |
| json |
Generates the JSON. |
| print |
Displays the "Print" button in the grid. |
| det_print |
Displays the "Print" button in detail. |
| summary |
Displays the "Summary" button in the grid. |
| new |
Displays the "New" button. (if the application has a link for it, or if the form is running in the grid iframe) |
| insert |
Displays the "Include" button of the form. (only for forms running in grid´s iframe) |
| update |
Displays the "Update" button of the form. (only for forms running in grid´s iframe) |
| delete |
Displays the "Delete" button of the form (only for forms running in grid´s iframe) |
| qsearch |
Displays the "Quick Search" button in the grid. |
| dynsearch |
Displays the "Dynamic Search" button in the grid. |
| gridsave |
Displays the "Save Grid" button in the grid. |
| sel_col |
Select columns button |
| sort_col |
Sort Button |
Buttons Name (Form):
Buttons Name
|
Description |
| first |
Goes to the first page of the form. |
| back |
Goes to the previous page of the form. |
| forward |
Goes to the next page of the form. |
| last |
Goes to the last page of the form. |
| new |
Displays the "New" button on the form, if it's off the form will starts in insertion mode. |
| insert |
Displays the "Include" button of the form. |
| update |
Displays the "Update" button of the form. |
| delete |
Displays the "Delete" button of the form. |
| copy |
Displays the "Copy" button of the form. |
| qsearch |
Displays the "Quick Search" button of the form. |
| pdf |
Generates PDF file from a form. |
| print |
Open the form in print mode. |
| dynsearch |
Displays the "Dynamic Search" button in the grid. |
Buttons Name (Control):
Buttons Name
|
Description |
| ok |
Displays the "Ok" button on the control. |
| exit |
Displays the "Exit" button on the control. |
| facebook |
Displays the "Facebook" button on the control. |
| twitter |
Displays the "Twitter" button on the control. |
| google |
Displays the "Google+" button on the control. |
| paypal |
Displays the "PayPal" button on the control. |
OBS. Remember that the button's name must be lowercase.
Ex. 1: sc_btn_display ('new', 'off');
Ex. 2: Using a local variable as second paramenter
$var = "off"; sc_btn_display ('new', $var);
Ex. 3: If we use variables or fields ({Fields} or [Global_Variables]) as parameters its not allowed the use of the quotes or single quotes. sc_btn_display ({variavle_button}, 'off');
|
Macro Scope
|
calendar application
|
chart application
|
Grid application
|
Search application
|
Form application
|
Control Form
|
Menu application
|
Tree menu
|
ReportPDF application
|
allMacros onAfterDelete onAfterInsert onAfterUpdate onInit onLoadAll onRefresh onValidate onValidateFailure onValidateSuccess
|
allMacros onInit
|
onInit
|
allMacros
|
allMacros onAfterDelete onAfterDeleteAll onAfterInsert onAfterInsertAll onAfterUpdate onAfterUpdateAll onInit onLoadAll onNavigate onRecord onRefresh onValidate onValidateFailure onValidateSuccess
|
allMacros onInit onLoadAll onRefresh onValidate onValidateFailure
|
allMacros
|
allMacros
|
allMacros
|
|