To enable or disable buttons and functions in a custom form based on user responsibilities, define a parameter with a naming convention of (Application Top)_(Form Name)_(Button/Function Name), check this parameter in the WHEN_NEW_FORM_INSTANCE trigger using Fnd_Function.Test, and set the button's property to false if the user does not have access. Responsibilities can then be used to exclude specific functions.
To enable or disable buttons and functions in a custom form based on user responsibilities, define a parameter with a naming convention of (Application Top)_(Form Name)_(Button/Function Name), check this parameter in the WHEN_NEW_FORM_INSTANCE trigger using Fnd_Function.Test, and set the button's property to false if the user does not have access. Responsibilities can then be used to exclude specific functions.
To enable or disable buttons and functions in a custom form based on user responsibilities, define a parameter with a naming convention of (Application Top)_(Form Name)_(Button/Function Name), check this parameter in the WHEN_NEW_FORM_INSTANCE trigger using Fnd_Function.Test, and set the button's property to false if the user does not have access. Responsibilities can then be used to exclude specific functions.
How to enable/disable button/function in a custom form
Depends on responsibility security
Attach APPCORE.pll (Intern it will automatically link other related .pll)
Define parameter (naming convention can be followed) (Application Top)_(Form Name)_(Button/Function Name)
Copy Trigger from APPSTAND.fmb
WHEN_NEW_FORM_Instance PRE_FOME WHEN_WINDOW_CLOSE
Add following to WHEN_NEW_FORM_INSTANCE
If Not Fnd_Function.Test((Application Top)_(Form Name)_(Button/Function Name)') Then Set_Item_Property('Blockname.ACTION',Displayed,Property_False); End If; System Admin Application Function
Define function (Application Top)_(Form Name)_(Button/Function Name) ,
select type=SUBFUNCTION , attach original form name. Add the function name in related menu Exclude function from Responsibility definition.