Solved

How to populate forms6i fields using the post_text_item trigger

Posted on 2003-11-14
5
763 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
[X]
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
  • 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
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, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Suggested Courses

630 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