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.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
105 views
Enable Disable Button in A Custom Form
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.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2
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.