0% found this document useful (0 votes)
20 views1 page

Oracle 11 Greportwithapex

The document describes a table with columns for ID, IP, PORT, URL and CMDKEY. It then defines variables for report parameters including IP, PORT, URL and CMDKEY. Finally it opens a report passing the department ID parameter and queries employees by department ID.

Uploaded by

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

Oracle 11 Greportwithapex

The document describes a table with columns for ID, IP, PORT, URL and CMDKEY. It then defines variables for report parameters including IP, PORT, URL and CMDKEY. Finally it opens a report passing the department ID parameter and queries employees by department ID.

Uploaded by

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

SQL> desc reppara

Name Null? Type


----------------------------------------------------- --------
------------------------------------
ID NUMBER(10)
IP VARCHAR2(100)
PORT VARCHAR2(10)
URL VARCHAR2(100)
CMDKEY VARCHAR2(100)

1
DESKTOP-SFJ6CQ1

9002
/reports/rwservlet

rafiq

var r_ip = $v("P0_IP");


var r_port = $v("P0_PORT");
var r_url = $v("P0_URL");
var r_cmdkey = $v("P0_CMDKEY");

var r_dept_id = $v("P2_DEPTNO");


var r_link =
"http://"+r_ip+":"+r_port+r_url+"?report=C:/Users/Administrator/OneDrive/Desktop/
REP/DEPT.rep&desformat=pdf&destype=cache&userid=HR/
HR@ORCLPDB&paramform=no&p_dept_id="+r_dept_id;

window.open(r_link);

SELECT ALL EMPLOYEES.EMPLOYEE_ID,


EMPLOYEES.LAST_NAME, EMPLOYEES.HIRE_DATE, EMPLOYEES.SALARY
FROM EMPLOYEES
WHERE DEPARTMENT_ID=:p_dept_id

You might also like