Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to populate forms6i fields using the post_text_item trigger

Posted on 2003-11-14
5
Medium Priority
?
771 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
4 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

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

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

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…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

783 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