Making a DFF read only through custom.pll

By | April 11, 2014 | 2,961 views | Category: AOL and SYSADMIN Custom PLL

We can make a DFF read only through Custom.pll by using a seeded procedure ‘FND_DESCR_FLEX.UPDATE_DEFINITION’.

Here is the syntax of the procedure:

  /* Arguments that specify the flexfield location */
  /* Argument to enable or disable flexfield */
  /* Other optional parameters  */
    [TITLE =>'Title',]

Example to make ‘Items’ DFF as read only:

IF (event_name = 'WHEN-NEW-BLOCK-INSTANCE' AND form_name = 'INVIDITM') THEN
  IF (fnd_profile.value('RESP_NAME') = 'Inventory') THEN
			block	   => 'MTL_SYSTEM_ITEMS', 
			FIELD	   => 'DF_MIR', 
			enabled	   => 'N', 
			read_only  => 'Y' 

the procedure disables all the DFF segments as a whole, because the a Flexfield is a single field in a Form but then when you click into it and it opens up the flexfields window, the multiple fields you see is actually a user exit with multi segment values, not form fields. Hence no events are triggered on flexfield windows (user exits). No Form Personalization events are passed to segments inside the flexfield window (user exit).

If you want to know how to make individual segments of a DFF as read only then read this post “Making a DFF Segment read only through ‘Special’ type of Value Set

WOW! Did you like this post? We'll send more interesting posts like Making a DFF read only through custom.pll to you!
Enter your Email Address: