Discussions
Categories
- 196.7K All Categories
- 2.2K Data
- 235 Big Data Appliance
- 1.9K Data Science
- 449.9K Databases
- 221.6K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 549 MySQL Community Space
- 478 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3K ORDS, SODA & JSON in the Database
- 532 SQLcl
- 4K SQL Developer Data Modeler
- 186.9K SQL & PL/SQL
- 21.3K SQL Developer
- 295.4K Development
- 17 Developer Projects
- 138 Programming Languages
- 292.1K Development Tools
- 104 DevOps
- 3.1K QA/Testing
- 645.9K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 153 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.1K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 17 Java Essentials
- 158 Java 8 Questions
- 85.9K Java Programming
- 79 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.2K Java SE
- 13.8K Java Security
- 203 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 398 LiveLabs
- 37 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.6K Other Languages
- 2.3K Chinese
- 170 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 230 Portuguese
where clause on data block
I use oracle_linux, and I have oracle forms 12.2.1.4 installed
I have a form and I want to filter the records of that form by the where clause of the data block, I have a subquery related to another table that is the one with the status that I do not want to show in that form
my subquery is : that I have in the block in the where clause
not exists(select * from movh h,movd d
where h.cod_mov=d.cod_mov
and h.ncf=d.ncf and not exists(select p.period from period p
where h.company=p.company
and d.company=p.company
and h.period=p.period
and h.period=p.period
and d.period=p.period
and p.period_st='B'))
by the database when I execute the query it works fine, but when I put the query in the data block of the form it doesn't show me any records, and when I press the Shift + F1 key, it shows FRM-42100:No errors encountered recently
Comments
-
Use the count_query key to check if the number of records found is really 0. If it's not 0 check your post_query trigger: when it fails for a record then that record is not shown,
If you omit the where do you get records?
In your where clause I don't see a reference to the table you want to filter , is that correct? (That does not explain your problem, but raises the question if you submitted only the where to the database or the complete query).
You are sure you connect to the same database and user when executing the form and the query?
-
the table that I want to filter is the one in the subquery, by the period
-
Can you add the create and insert statements for the tables so we can try to reproduce the problem.
What is the table your forms block queries without the where?
What is the table you use in the select .. from when you execute the query in the database.
And there are 3 more unanswered questions in my first comment.
-
I am connecting to the same database, my form has two tables, a header and a details, the header=movh,details=movd, and the table that I am making the relationship is period
-
when I try to insert a record, and pass the first field it shows me this error:
-
It could be some field in the block of type list-item or check-box where the values of the field in the table do not correspond to the possible values.
-
I resolved the problem, it was a when validate item, by inserting a record, but still does not present the information in the block
-
thanks for all the information provided, I was able to solve my problem, with this sentence:
not exists(select 1 from period p
where p.company=movh.company
and p.period=movh.period
and p.period_st='C')