Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old April 29th, 2004, 04:17 PM
abotiva abotiva is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 9 abotiva User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 30 m 51 sec
Reputation Power: 0
Send a message via Yahoo to abotiva
Question Help on a Query

I'm trying to execute a query for two blocks in the same canvas but it's not working. The relation between the blocks are fine. When I run the query it only gets the data for the master block.
Any help would be most welcomed.
Thanks.

Reply With Quote
  #2  
Old April 30th, 2004, 01:15 PM
shafique shafique is offline
Senior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Canada
Posts: 305 shafique User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 45 m 20 sec
Reputation Power: 5
Have you written your own query or using oracle predefined button to enter or execute query?

(1) if you are using oracle predefined button then look at the block level procedure 'ON-POPULATE-DETAILS' in master block, this procedure is created by developer when you create relationship. For example i have created a form based on DEPT as master block and EMP as detailed block but whenever i click on execute query button it does not show the child/detaile records. I make the follwoing changes in this procedure.

IF (( EPT.DEPTNO IS NOT NULL)) THEN
rel_id := Find_Relation('DEPT.DEPT_EMP'); //define your relation name here
Query_Mater_details(rel_id,'EMP'); //write the name of your detail block
END IF;

Make sure that Query_Master_Details procedure is exist in program unit. if you dont find these procedure then create relationship again.

(2)If you have written your on query then after fetching the values of master record add the following lines:

go_block('EMP');
execute_query.


Regards

Reply With Quote
  #3  
Old May 6th, 2004, 07:53 AM
abotiva abotiva is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 9 abotiva User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 30 m 51 sec
Reputation Power: 0
Send a message via Yahoo to abotiva
Thanks for the help!!!!!

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > Help on a Query


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway