Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

"Application module is not connected to a database" error

Vu PhanJan 22 2015 — edited Jan 27 2015

Hi all,

I'm using JDeveloper 12.1.2.0.0. I create a HR demo application and a view criteria to search all employees in employee tab. In this view criteria, I create a view criteria item with a LOV (LOV_DepartmentId) to filter employee by department. After that, I also add a bind variable to Query tab (The query is :

SELECT Employees.EMPLOYEE_ID,

   Employees.FIRST\_NAME,

   Employees.LAST\_NAME,

   Employees.EMAIL,

   Employees.PHONE\_NUMBER,

   Employees.HIRE\_DATE,

   Employees.JOB\_ID,

   Employees.SALARY,

   Employees.COMMISSION\_PCT,

   Employees.MANAGER\_ID,

   Employees.DEPARTMENT\_ID

FROM EMPLOYEES Employees

where Employees.HIRE_DATE = :pHireDate )

When I run the application, I get an error message: "Application module is not connected to a database".

employee.png

If I remove the bind variable (pHireDate ) from Query, the error message disappears; Or when I set pHireDate with hide = true in UI Hints, the error message disappears as well.

I'm concern about the conflict between LOV and bind variable in Query.

Can anyone help me? Thank you in advance.

Regards,

Vu

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 24 2015
Added on Jan 22 2015
12 comments
2,163 views