Exforsys.com
 
Home Tutorials Oracle Apps
 

Oracle Apps Implementing Key Flex field and Descriptive Flex field

 

Oracle Apps Implementing Key Flex field and Descriptive Flex field - Page 3

Page 3 of 3




Protected

In some cases, you may want to create a descriptive flexfield that cannot be inadvertently changed by an installer or user. This type of flexfield is called a protected descriptive flexfield. You build a protected descriptive flexfield the same way you build a normal descriptive flexfield. The main difference is that you check the Protected check box after defining your segment structures. Once a descriptive flexfield is protected, you cannot query or change its definition using the Descriptive Flexfield Segments window. You should define your descriptive flexfield segments before you change the Protected check box.


Reference Fields Window

Use this window to specify any form fields that might serve as descriptive flexfield reference fields. Your flexfield can use values in one of these fields (context field values) to determine which flexfield structure to display.

Columns

These are columns of the table that would to be used in the DFF. You may declare all columns here even if they are not being used in the DFF presently.

Save the changes and close the form. You need to define the structure of the DFF now. To do this open the Segments form using the path Application Developer à Flexfield à Descriptive à Segments.



Figure 14. DFF Segments Form


The segment form as shown in the figure 14 above is used to enter the context field values upon which the prompts in the pop-up would depend. The EMP and APL are the values that a user would enter in the context prompt for the DFF. The pop-up would decide the prompts on the basis of this value.

Global Data Elements are those prompts which would be displayed in the all the values for the context prompt.

To determine the structure of the DFF on APL context value, click on segments button at the bottom when the APL value in Context Field Values is selected. The fields to be entered are shown in figure 15 below.



Figure 15. Prompts for the APL context value


Figure 16 below shows the prompts for the EMP context value.



Figure 16. Prompts for the EMP context value


Save the changes and click on compile to freeze the DFF definition. You may optionally use the Value Sets for the values to be entered in the various prompts.


The DFF is now ready to be used from the form. To enable the DFF on the form, follow the steps below.

Open the form using the form builder and write the following code in WHEN-NEW-FORM-INSTANCE trigger of the form. Standard forms (already defined by oracle) will have this code already present in the appropriate triggers.


FND_DESCR_FLEX.DEFINE (
BLOCK=> 'TEST_DESC',
FIELD=> 'DESC_FLEX_TEST',
APPL_SHORT_NAME=>'HR',
DESC_FLEX_NAME=>'DESC_FLEX_TEST'
);


Where BLOCK is the name of block containing DFF item
FIELD is the DFF item on form
APPL_SHORT_NAME is the short name of the application with which the flex field is registered
DESC_FLEX_NAME is the name of the registered flexfield (Step 3)



Also write the following code in 'WHEN-NEW-ITEM-INSTANCE' at the form level:
FND_FLEX.EVENT ('WHEN-NEW-ITEM-INSTANCE');


The DFF would look like as shown in the figure 18 and figure 19 below depending upon the context value provided in the form as shown in figure 17 below.



Figure 17. Context Prompt



Figure 18. Prompt for APL Context Value



Figure 19. Prompt for EMP Context value


Frequently Asked Questions

1. What is the difference between key flexfield and Descriptive flexfield?
2. What are context sensitive segments in descriptive flexfields?
3. What is the significance of structure id in key flexfields?
4. Can we use other columns (beside attributes) as segments for DFF?
5. Which procedure should be used to make the DFF read only at run time?
6. What is the significance of cross validate segments in the Key flexfield structure screen (figure 6)?
7. What is the significance of reference field in a DFF?
8. How do I enter the default value of Key flexfield or DFF segment?
9. What is the difference between flexfield qualifier and segment qualifier?
10. How do I define global segment qualifier?
11. Which procedure should be called to enable a DFF in a form?
12. Do we need to register Standard DFF’s?
13. Are the value sets mandatory for DFF segments?
14. What is the maximum number of segments that can be defined for KFF?
15. How do I enable a database column to use it in a DFF segment?




First Page: Oracle Apps Implementing Key Flex field and Descriptive Flex field


Read Next: Oracle Apps Template Form



 

 

Comments


furkanalam said:

  A good read.
September 23, 2005, 4:01 pm

Kanan Singhal said:

  Excellent. Kanan
June 9, 2006, 5:57 am

Kanan Singhal said:

  It would be nice if at the time of qestion answers, answers are also given. The document is excellent and helped me a lot in understanding flexfield.
June 9, 2006, 5:58 am

Mitra said:

  I would not agree with the comments of Kanan, if you are looking for answers you can get the answers from the tutorial itself as its a nice tutorial.<br />
Don\'t Mind :))
June 15, 2006, 12:40 am

Khawaja said:

  Dears,<br />
<br />
Your Website is Excellent to help anyone on any topic regarding to IT field.I have improved my skills due to this website.
June 15, 2006, 2:48 am

Amalendu Kundu said:

  wounderful site and very helpful topics. Great job done buddies
October 6, 2006, 7:06 am

Ravi venkata Revanth said:

  Hi all,

the tutorial is very nice and i personally think this tutorial is very good for the starters and i improved myself in understanding Flexfields, it would be nice if the answers r given for the question given above.
October 12, 2006, 1:57 am

Shankar N Mahadevan said:

  Appreciate if you could update and share constantly as a user forum
December 6, 2006, 10:37 am

Aparajita said:

  Those who are working on this site are really doing a gr8 job.

Keep it up guys.....
February 3, 2007, 2:37 am

Pratik Ghoshal said:

  Well explained... great reading
June 20, 2007, 8:50 am

Rajesh Sannapureddy said:

  really Its good preparation, they did good job, any one can understand easily.

Really helpful........
July 30, 2007, 5:52 am

Zaid said:

  Really helpfll , thanks alot.
February 21, 2008, 5:47 am

Robbie Deol said:

  Excellent work guys..
Really helpful topics. I bookmarked it.

Keep IT up..

Good luck
March 15, 2008, 7:10 pm

Kamlesh Dhairyavan said:

  Thank you for an artical on creating descriptive flxefield. I have created a forms out of custom table which is in custom schema and it has features of showing DFF. I do see that it is prompting based on context value for a gievn column. When I commit transaction, values for DFFs are not populated in the table.

Would you know what would be the cause of this problem and how it can be resolved. I am stuck in this badely, if I do get some solutaion that it would be a big favor to me.

Thanks
November 20, 2008, 10:07 pm

kannan said:

  Ur tutorial is good .still i cant understand,what is flexfields. how will u explain to a non oracle apps user.
give some real time example for me to understand the real meaning of flexfield. please?
January 6, 2009, 4:06 am

sakthivel said:

  it is very nice.
January 30, 2009, 10:41 am

Giridhar Puvvadi said:

  Can you please explain me what is Global Data Elements?
Thanks
Giridhar
April 30, 2009, 2:43 am

Post Your Comment:

Members Please Login
Your Name:*
e-mail ID:(required for notification)*
Image Verification: 
 
 Subscribe    

Sponsored Links

 

Subscribe via RSS


Get Daily Updates via Subscribe to Exforsys Free Training via email


Get Latest Free Training Updates delivered directly to your Inbox...

Enter your email address:


 

Subscribe to Exforsys Free Training via RSS
 

 
Partners -  Privacy and Legal Policy -  Site News -  Contact   Sitemap  

Copyright © 2000 - 2009 exforsys.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape