Home » Developer & Programmer » Forms » Display Item Is Not showing Result
Display Item Is Not showing Result [message #478348] Fri, 08 October 2010 02:49 Go to next message
beginner88
Messages: 45
Registered: June 2010
Member
Hello,
I am facing a Problem in creating display items .
First I create a display item and name it ITEM6
This Display item will show Department name of employees .
I create a Block Level Trigger to invoke this display item .


WHEN-VALIDATE-ITEM
select dname into :ITEM6 FROM DEPT where :EMP.DEPTNO=DEPT.DEPTNO;

In Property Palette I edit following
Data Type : char 
canvas :canvas4



Then I save ,compile and Run it successfully .
But when i press Execute Query button . It shows me Following error message .

SELECT ROWID,ITEM6,EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO FROM scott.emp 


ORA-00904: "ITEM6": invalid identifier


Regards

Re: Display Item Is Not showing Result [message #478356 is a reply to message #478348] Fri, 08 October 2010 03:16 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
ITEM6 should not be a database item (as it don't belong to any table). Modify that property in ITEM6's Property Palette.

Furthermore, you need to create another trigger: POST-QUERY, which will have the same code as WHEN-VALIDATE-ITEM (WVI) because WVI won't fire when performing query (so ITEM6 would remain empty).
Re: Display Item Is Not showing Result [message #478369 is a reply to message #478356] Fri, 08 October 2010 04:37 Go to previous message
beginner88
Messages: 45
Registered: June 2010
Member
Thank You SO Much LittleFoot Smile Smile
Previous Topic: compiling error when using bulk collect in oracle form 10g
Next Topic: Object libraries
Goto Forum:
  


Current Time: Thu Sep 19 17:22:41 CDT 2024