how to disable link button !!

Hello,

Can anyone know how to disable by programming an existing Link button in form application.

I have already try sc_btn_display (‘cap_DETAIL’, ‘off’) but not working

Thanks in advance
Nac

This link is not a button, when is a link, it has properties and can be disabled:

Click this link and disable property: Allows you to change automatically during update.

Thanks alvagar for answering, but my problem is that :

  • in my form application I have a field named "Customer nr " with a link configurated .
  • in some cases this field must be a label field, only displaying, but the link button remain active !!! if you have an ajax events associated, your label field change

So, I think there must be a solution to make link inactive when the associated field is disabled

Thanks
Nac

Try and play with sc_link macro

sc_link (Column, Application, Parameters, “Hint”, “Target”, Height, Width) This macro dynamically creates or modifies links between grid applications and other applications.

I knew this makro but, my links are already made so I tried to found a solution without changing my code.

I think I have to do that :slight_smile:

Thanks Giu

I think you can have a variable type flag for know if you can change this value or not when event ajax is fired.