Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How to validate a text item/display item in Oracle forms 9i?

Posted on 2009-07-07
2
1,670 Views
Last Modified: 2013-12-19
Hello Everyone,

I have a form in which we have to type in a product_id as shown below in the screenshot. And when we type in, it has to get validated.
If it is valid then ok, else display a message saying not valid.

How do we achieve it on a text box/diaply item in the form shown below.

Any kind of help would be really appreciated.

Thanks in advance,
      Vishal
reb-rule-1.JPG
0
Comment
Question by:vishal_singh
2 Comments
 
LVL 1

Expert Comment

by:gkhngkdmr
ID: 24800979
For the di_prod  text item, you can create a WHEN-VALIDATE-ITEM trigger.
In this trigger, you can make your control for the value in the item.
0
 
LVL 35

Accepted Solution

by:
Mark Geerlings earned 500 total points
ID: 24803909
I agree.  A "when-validate-item" trigger on the di_prod item is the best way to do this in Oracle Forms.
Your trigger can either query the database directly to see if the value entered is valid or not, or (even better) the trigger can pass the value entered to a PL\SQL function in a database package that will query the database to see if the value passed in is correct or not, and return a "Y" or "N" to the the form trigger.  That can evaluate the value returned by the function and do nothing if "Y" (valid) or display a message (or alert) if the value is invalid, and prevent the user from leaving this field until the value is corrected.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question