Home » Developer & Programmer » Forms » forms6i
forms6i [message #80986] Sun, 22 December 2002 12:04 Go to next message
murli
Messages: 25
Registered: November 2002
Junior Member
I have got two tables table1 and table2.I want to display mdescription,product and volume.I have written the below query which is working fine in sql but i have to implement in forms.I have created relationship between table1.pname,table2.pname and table1.mname,table2.tname.this relationship is working,I want to implement the subquery also in forms.Can anyone please help me out.I have to do it tommorrow.It will be a great help.

SELECT A.MDESCRIPTION,B.PRODUCT,B.VOLUME
FROM table1 A,table2 B
WHERE A.PNAME = B.PNAME
AND A.MNAME = B.TNAME
AND B.BDATE = '18-DEC-02'
AND
A.PNAME IN(SELECT PNAME FROM GROUP C
WHERE C.UGROUP = A.DENTRY)
Re: forms6i [message #80987 is a reply to message #80986] Sun, 22 December 2002 16:31 Go to previous messageGo to next message
Julie
Messages: 98
Registered: February 2002
Member
Why don't you build a view of your query and base your form off the view? Or you can base your block on the A table, populate the values from B in the post query trigger of the block and put the exists subquery in the where property of the datablock.
Re: forms6i [message #80992 is a reply to message #80986] Sun, 22 December 2002 20:51 Go to previous messageGo to next message
murli
Messages: 25
Registered: November 2002
Junior Member
Julie
mdescription is coming from table1 and product and
volume is coming table2 and i have created a relationship within these two blocks.please let me know how about doing.
Regards
Re: forms6i [message #80997 is a reply to message #80986] Mon, 23 December 2002 04:56 Go to previous messageGo to next message
Solve
Messages: 38
Registered: December 2002
Member
Julie, and mabe you know the answer to my question
"combo box" it is displayed below?
Actually I need to populate values in combo box then insert a new record . Please help me:)

Best regards and Merry Christmas!!!!

Solveiga
Re: forms6i [message #81015 is a reply to message #80986] Thu, 26 December 2002 04:45 Go to previous messageGo to next message
Balamurugan.R
Messages: 91
Registered: March 2001
Member
Hi,

I think u can use the subquery in the block's

propery=> where=> ....

I think ur problem will be solved. But instead of

using tablename.columnname, use blockname.columnname;

I think ur problem will be solved, if u use this

strategy.

Let me know whether this would solve ur problem or not.

With Regards,
Balamurugan.R
Re: forms6i [message #81331 is a reply to message #80986] Wed, 05 February 2003 00:52 Go to previous message
Alaa yousef
Messages: 1
Registered: February 2003
Junior Member
Pls if you have where can i find good help to make profional form6i app
Previous Topic: listview in Oracle Forms 6
Next Topic: Developer 2K prints two pages instead of one !
Goto Forum:
  


Current Time: Thu Apr 25 05:59:08 CDT 2024