Report Registration - XML
Report Registration - XML
===========================
1. develop the report as per the client requirment using report builder
tranfer the .rdf from local mechine to server ( reports ,US folder)
a. create excutable
1 .executable name
2. excutable shot name
3. application name
4. execution method
5. execution file name
e. attach the responsibility to user and submit the program though SRS window
a. create excutable
1 . executable name
2. excutable shot name
3. application name
4. execution method
5. execution file name
e. attach the responsibility to user and submit the program though SRS window
ex:
IS
end XX_PLSQL_PKG;
/
IS
IS
i emp%rowtype;
begin
open c1;
fnd_file.put_line(fnd_file.output, 'ENAME' ||' '||'EMPNO'|| ' '|| 'SALARY' ||' '|| 'DEPTNO' );
fnd_file.put_line(fnd_file.LOG, 'ENAME' ||' '||'EMPNO'|| ' '|| 'SALARY' ||' '|| 'DEPTNO' );
loop
Fetch c1 into i;
fnd_file.put_line(fnd_file.output, i.ename ||' '||i.empno|| ' '|| i.sal ||' '|| i.DEPTNO );
End loop;
close c1;
End TEST_PLSQL;
end XX_PLSQL_PKG;
1. Develop the report as per the client requirment using report builder
tranfer the .rdf from local mechine to server (reports /US folder
a. create excutable
1 .executable name
2. excutable shot name
3. application name
4. execution method (oracle reports)
5. execution file name (.rdf file name)
e. attach the responsibility to user and submit the program though SRS window to Genarate the xml Tags
1. Template name
2. code
3 .application name
4. data definition name
5 .template type
6. default output type
7. attache Rtf
8. language
9. territorgy
d. attach the responsibility to user and submit the program though SRS window to Genarate the xml Tags
1. Template name
2. code
3 .application name
4. data definition name
5 .template type
6. default output type
7. attache Rtf
8. language
9. territorgy
a. create excutable
1 .executable name
2. excutable shot name
3. application name
4. execution method (pl/sql stored procedure)
5. execution file name (package,procedure name or procedure name)
e. attach the responsibility to user and submit the program though SRS window to Genarate the xml Tags
1. Template name
2. code
3 .application name
4. data definition name
5 .template type
6. default output type
7. attache Rtf
8. language
9. territorgy
1 . executable name
2. excutable shot name
3. application name
4. execution method (SQL * PLUS)
5. execution file name (.sql file name)
e. attach the responsibility to user and submit the program though SRS window
1 . executable name
2. excutable shot name
3. application name
4. execution method (SQL * LOADER)
5. execution file name (.ctl file name)
b create concurrent program
1. program name
2. program shot name
3. application
4. executable shot name
5 (if there any parameters we have to define)
e. attach the responsibility to user and submit the program though SRS window.
FORM Registration
==================
1. we will download the TEMPLATE.fmb and APPSTAND.fmb from AU_TOP resource folder from server
2.open the form builder delete exiting dat Block - blockname
Canvas - blockname
window - blockname
3. customize the following 2 trigggers
Pre_form - New window name insted of BLOCKNAME
when_new_form_instance - NEW FORM NAME
APP_CUSTOM package - new window name
4. develop the form as per client requirment
Defalt Types:
=============
1. constant:
============
If we want to pass constant values as default then we select defalt type constant
2.Current date:
================
IF we and pass sysstem date the we select default type Current date
3.Current time:
================
IF we and pass sysstem time the we select default type Current time
4.Profile
==========
By using the profile option we can pass user profile values default.
5 SQL Statement
==============
when we wqant pass select statement as a defalt values that time we select default type as SQL statement and
write the
select statement in default value feiled. select statement should retun single row.
6 segment:
=======
when we we ant pass privious parameter values as default to the next paramete then we will use segment ,select
default type segment
give the parameter name in default value feild.
Value sets
===========
1. NONE
2.INDEPENDENT
3.DEPENDENT
4.TABLE
5.TRANSLATBle INDEPENDENT
6.TRANSLATBle DEPENDENT
7.SPECIAL
8.PAIR
TABLE Registration
===================
AD_DD.REGISTER_TABLE
AD_DD.REGISTER_COLUMN
AD_DD.REGISTER_PRIMARY_KEY
AD_DD.REGISTER_PRIMARY_KEY_COLUMN
--Register Table
--=============
DECLARE
lc_appl_short_name CONSTANT VARCHAR2(40) DEFAULT 'FND';
lc_tab_name CONSTANT VARCHAR2(32) DEFAULT 'XX_EMP_DETAILS';
lc_tab_type CONSTANT VARCHAR2(50) DEFAULT 'T';
lc_next_extent CONSTANT NUMBER DEFAULT 512;
lc_pct_free CONSTANT NUMBER DEFAULT 10;
lc_pct_used CONSTANT NUMBER DEFAULT 70;
BEGIN
-- Start Register Custom Table
-- Get the table details in cursor
FOR table_detail IN (SELECT table_name,
tablespace_name,
pct_free,
pct_used,
ini_trans,
max_trans,
initial_extent,
next_extent
FROM dba_tables
WHERE table_name = lc_tab_name
)
LOOP
-- Call the API to register table
ad_dd.register_table
(p_appl_short_name => lc_appl_short_name,
p_tab_name => table_detail.table_name,
p_tab_type => lc_tab_type,
p_next_extent => NVL(table_detail.next_extent,lc_next_extent),
p_pct_free => NVL(table_detail.pct_free,lc_pct_free),
p_pct_used => NVL(table_detail.pct_used,lc_pct_used)
);
END LOOP; -- End Register Custom Table
COMMIT;
DBMS_OUTPUT.PUT_LINE ('SUCCESS');
EXCEPTION
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE (SQLERRM);
END;
/