Sc_actionbar macros on default edit and detail buttons

Hi,

does anyone know if the sc_actionbar macros for enable/disable and hide/show work on the default edit and detail buttons?
If this is possible, what are the button names to enable/disable or hide/show the buttons at a single record level?

Kind regards

I know that on the application INIT event of a grid you can do this:

sc_apl_conf (“application_name”, “lig_edit”, “off”);

This works as well (or so I am told)
echo “#bedit{ display:none !important;}”;

Thanks a lot nwdbs for your reply.

As I know and used so far the sc_apl_conf (“application_name”, “lig_edit”, “off”); is affecting the whole grid, not a single row. I need to enable/disable the edit and detail buttons singularly per row, depending on a given condition for each row.

So, what I’m looking for has to be applied in the onRecord event.

In the documentation of macro sc_actionbar there isn’t any reference to edit and detail buttons, so if you want to set the state of the buttons row by row, I suggest to hide the standard buttons, and make two custom link buttons and this way you can manage the state of the button, row by row.

Ciao Vincenzo.

Thanks for your statement. That’s true, the documentation has no reference to hide the standard buttons so my fear was that this is not possible. Before creating custom buttons I tried to ask in the forum but most probably the only way to do what I need is to hide the standard buttons and to create my own.

Grazie mille

1 Like