0% found this document useful (0 votes)
143 views

Oracle Forms Custom - PLL

The document describes using custom.pll to make a DFF field read only based on certain conditions. It provides an example where the Additional Absence Details DFF is made read only for two HR manager responsibilities, but remains editable for others. The custom.pll code checks the event, form, block and responsibility, and sets the field to read only if the conditions are met. Developers must compile, generate the .plx file, and log out of the application for the changes to take effect.

Uploaded by

hisham476
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
143 views

Oracle Forms Custom - PLL

The document describes using custom.pll to make a DFF field read only based on certain conditions. It provides an example where the Additional Absence Details DFF is made read only for two HR manager responsibilities, but remains editable for others. The custom.pll code checks the event, form, block and responsibility, and sets the field to read only if the conditions are met. Developers must compile, generate the .plx file, and log out of the application for the changes to take effect.

Uploaded by

hisham476
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

6/1/2017 Custom.

pll example to make DFF read only |Oracle Applications HCM

Custom.pll can be used for a wide range of customizations. For example, it can be used to make the DFF read only based on a condition(s). In this example, I will do a
customization wherein the Additional Absence Details DFF will be read only for the responsibilities ‘Vision HR Manager' and 'XYZ HR Manager' and for others it will
be editable.

Before the customization, the DFF was editable for the above mentioned responsibilities.

Open custom.pll and add the following code:

/* *************************** Code to make DFF Read Only ****************** */

IF (event_name = 'WHEN­NEW­BLOCK­INSTANCE' AND form_name = 'PERWSEAD' AND block_name = 'ABA') THEN
IF (FND_PROFILE.VALUE('RESP_NAME')IN ('Vision HR Manager' ,'XYZ HR Manager')) THEN 
fnd_descr_flex.update_definition
(
BLOCK => 'ABA'
,FIELD => 'DF'
,READ_ONLY => 'Y' ); 
END IF; 
END IF;
/* *************************** End of The Code ************************* */

Compile and generate the .plx file.

As custom.pll is loaded every time we login to the applications, we need to logout to see the changes. This is mandatory. Once it’s compiled successfully and the .plx file
is generated, the DFF will be read only for the above mentioned responsibilities.

http://oracleappsconsultant.blogspot.ae/2010/03/custompll­example­to­make­dff­read­only.html 1/2
6/1/2017 Custom.pll example to make DFF read only |Oracle Applications HCM

 
This is only a small example of custom.pll. It can perform much more complex requirements :­)

http://oracleappsconsultant.blogspot.ae/2010/03/custompll­example­to­make­dff­read­only.html 2/2

You might also like