Solved

How to populate forms6i fields using the post_text_item trigger

Posted on 2003-11-14
5
754 Views
Last Modified: 2012-08-13
(newbie, please don't slam to hard)
How  do I get form fields to populate  remaining fields given correct input data in a field with a post_text_item trigger on it?

Error received:
FRM-40735 POST-TEXT-ITEM unhandled exception ORA-01403
(Valid data exist within the table being queried, verified via SQL+)

Scenario:
Form table 6 row by 4 columns (using datablock blk1 with a tabular display)
Column 1 - skill_id (inputted by user, post_text_item trigger applied)
Columns 2 - 4 should be populated by data given the PL/SQL placed in editor screen

PL/SQL Logic:
SELECT col1, col2, col3
FROM tablename
     INTO blk1.field1, blk1.field2, blk1.field3
WHERE skill_id = :blk1.skill_id (inputted by user)

Environment:
- Windows XP
- Forms6i
- OracleASi
0
Comment
Question by:ericg-jwu
  • 2
5 Comments
 
LVL 13

Expert Comment

by:riazpk
ID: 9753457
Try:


SELECT col1, col2, col3
FROM tablename
     INTO blk1.field1, blk1.field2, blk1.field3
WHERE skill_id =trim(:blk1.skill_id)


OR


SELECT col1, col2, col3
FROM tablename
     INTO blk1.field1, blk1.field2, blk1.field3
WHERE trim(skill_id) =trim(:blk1.skill_id)
0
 

Accepted Solution

by:
ericg-jwu earned 0 total points
ID: 9755949
Thank you for your suggestion; however, it did not solve my problem.  When I show it I thought that it would work and started "kickin" myself.

I needed to solve this issue rapidly therefore a implemented a multi-block master-detail frame on one canvas (see below)

block1 (single record display as filter)
block1_1 (tabular view of data identified by block1)
block2 (tabular data based upon results from block1_1)

block1_1 and block2 are lined up side by each to appear as one table of data.

Again, thanks
0
 

Author Comment

by:ericg-jwu
ID: 9756965
Now that I have implemented a totally different solution to my problem, if someone would tell me HOW TO get a block to refresh/update itself without having to leave the canvas or change record, it would be greatly appreciated.
0
 
LVL 47

Expert Comment

by:schwertner
ID: 9762782
There is SYNCHRONIZE built in in Forms 6i which will refresh the screen.
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.

Join & Write a Comment

Subquery in Oracle: Sub queries are one of advance queries in oracle. Types of advance queries: •      Sub Queries •      Hierarchical Queries •      Set Operators Sub queries are know as the query called from another query or another subquery. It can …
Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

705 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now