Solved

How to populate forms6i fields using the post_text_item trigger

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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
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
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

831 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