Hey guys
looking for a way to remove the add button after either single insert or entry exists.
I did find another article on displaying a message but I really need to remove the add button instead.
Any help would be appreciated
thanks
Hey guys
looking for a way to remove the add button after either single insert or entry exists.
I did find another article on displaying a message but I really need to remove the add button instead.
Any help would be appreciated
thanks
There’s a macro to ‘hide’ the button. In the onload you can test for existance of the record and decide to show or hide the button. In the onafterinsert you can do the same.
See sc_btn_display(“Button_Name”,“on/off”)
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.
pdfbw Generates black and white PDF.
xls Generates the XLS.
xml Generates the XML.
cvs Generates the CVS.
rtf Generates the RTF.
word Generates the Word.
print Displays the “Print” button in the grid.
summary Displays the “Summary” button in the grid.
new Displays the “New” button. (if the application has 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.
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 its 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.
Buttons Name (Control):
Buttons Name
Description
ok Displays the “Ok” button on a control.
exit Displays the “Exit” button on a control.
OBS. Remember that the buttons name must be lowercase.
thats great thx very much gonna give that a go
did the folowing:
if ({xtra_entry_id} == ‘_blank’) // Display field
{
sc_btn_display(“new”, ‘on’);
}
else // Hide field
{
sc_btn_display(“new”, ‘off’);
}
Worked a treat!
Thanks Albert great help!
I need this button. sc_btn_download(“aducom_post”, ‘learn_from_the_master_on’ );
'm using the function sc_btn_display (‘pdf’, ‘off’), in the onload event, but when use in the event onafterinsert, sc_btn_display (‘pdf’, ‘on’); does not show the PDF button actually anything that does not run in the event priate onafterinsert