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:
  #1  
Old June 21st, 2004, 09:01 AM
rafi_aamiri rafi_aamiri is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 5 rafi_aamiri User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Multiple Record Grid

Hai,

I have Item_No, Transaction_No, Transaction_Date in a tabular format displaying 15 rows in a form.
It is the transaction entry screen to enter the transaction number, transaction date for an item.

In the same grid there are two other fields Item_Name, Item_Description which has to be populated from the master table (Item_Master) based on the Item No. in the same grid whenever Execute_Query event is triggered.

The form in tabular format will look like below :

ItemNo ItemName ItemDesc TransNo TransDate
---------------------------------------------------
I01 PEN Stationary T01 01-jan-01
I02 ABC XXXXX T02 01-feb-02

Since the above two columns Item Name and Item Description is from another table ie., master table how to display them during the Execute_Query at the block level.

Thanks in advance.

Regards,

A.Mohammed Rafi Aamiri
rafi_amr@yahoo.com

Reply With Quote
  #2  
Old June 21st, 2004, 09:21 AM
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: 6
You need to write down a block level query behind 'when-validate-record' trigger, query is given below:

SELECT item_name,item_description INTO :block_name.item_name,:block_name.item_description
FROM your_table;

Here,
block_name means your block name where these all item are placed.
your_table means the name of your table from which you are fetching name nad description of item,


Note: if this query does not work, write this query item level trigger 'when-validate-item' for both of them separately.

Reply With Quote
  #3  
Old June 21st, 2004, 09:23 AM
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: 6
sorry, write down this query behind block level trigger called 'POST-QUERY':

SELECT item_name,item_description INTO :block_name.item_name,:block_name.item_description
FROM your_table;

Reply With Quote
  #4  
Old June 21st, 2004, 10:22 AM
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: 6
hmmm, please add the where clause also in query;

WHERE item_no=:block_name.item_no

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > Multiple Record Grid


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 6 hosted by Hostway
Stay green...Green IT