Solved

How to populate forms6i fields using the post_text_item trigger

Posted on 2003-11-14
5
760 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 48

Expert Comment

by:schwertner
ID: 9762782
There is SYNCHRONIZE built in in Forms 6i which will refresh the screen.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
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 videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

735 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