You are on page 1of 2

Adding Descriptive Flex Field to Forms:

1) Create Table with Attribute Fields in custom scheme.


2) Register Table into APPS using AD_DD ac!age
To Register Table: (Appl_Short_name is available in fnd_application table)
ad_dd.register_table(p_appl_short_name, p_tab_name, p_tab_type,
p_next_extent, p_pct_free, p_pct_used);
Example:
begin
ad_dd.register_table ('VRTS', 'TEST_AR_REV_ACCT', 'T');
end;
To Register Colmns: (All !ields in the table has to be registered)
ad_dd.register_column(p_appl_short_name, p_tab_name, p_col_name,
p_col_seq, p_col_type, p_col_width,
p_nullable, p_translate, p_precision,
p_scale);
Example:
begin
ad_dd.register_column('VRTS',
'TEST_AR_REV_ACCT','REVENUE_ACCOUNT', 1,
'VARCHAR2', 25, 'N', 'N');
ad_dd.register_column('VRTS',
'TEST_AR_REV_ACCT','LAST_UPDATE_DATE', 7,
'DATE', 9, 'N', 'N');
ad_dd.register_column('VRTS', 'TEST_AR_REV_ACCT','ATTRIBUTE1',
12, 'VARCHAR2', 20, 'N', 'N');
end;

") #Register$ the Descriptive Flex Field and enter the #Descriptive Flex!ield Segments$ in
A%%S& (Re!er 'Register Descriptive Flex!ields( in '))*devg&pd!( !ile)
+) ,n Form:
Create "loc! based on Table#$iew
%a!e &Can'as( roert) to *+,, -or all ATTR."+T/ -ields
Create one Te0t Field -or Descriti'e Fle0 -ield 1,et us assume 2D/SC_F,/34 is the -ield
name). This -ield should be a art o- table.
Assign &T/3T_.T/%_D/SC_F,/3( roert) class to 2D/SC_F,/34 -ield and also assign
&/*A",/_,.ST_,A%P( ,5$. Set &%a0 ,ength( -or the Conte0t -ield to 226664 and
&Database Proert)( to 2*o4. %a!e sure that &$alidate From ,ist( roert) is set to 2*o4
7) Call Fle0 -ield de-inition roc in &89/*:*/8:F5R%:.*STA*C/( trigger
F-D_DESCR_F.E/&DEF,-E (0.1C234 #5bloc6_name4$7
F,E.D34 #5!ield_name4$7
A%%._S81RT_-A9E34 :5appl_short_name4:7
DESC_F.E/_-A9E34
:5registered_desc_!lex_name4$);
;) .n &P5ST:<+/R=(> &PR/:<+/R=(> &PR/:.*S/RT(> &PR/:+PDAT/(> &89/*:$A,.DAT/:
R/C5RD(> &89/*:*/8:.T/%:.*STA*C/( and &89/*:$A,.DAT/:.T/%( triggers at -orm le'el
ut the -ollowing code?
F-D_F.E/&E<E-T(#5event_name4$)
.- abo'e mentioned triggers are also de-ined at the "loc! and Field le'el then the trigger
roert) &/0ecution 9ierarch)( to be set as 2"e-ore4.

You might also like