master-Detail n others [message #639229] |
Fri, 03 July 2015 03:58 |
|
sanodani
Messages: 98 Registered: October 2014
|
Member |
|
|
Hallo..
I am trying to solve following Problem but i not getting it
Can anyone please help me or give me Suggestion, how i can do it?
Well, my Problem is:
I do have Master-Detail block, and
Master Block:
rp_id,
Person
Detail Block:
field
Description
Subject
Email
and i do have 3 tables,
table 1:
rp id, person
table2
rp_id, field, description, subject
table3
rp_id, creiteria
and i am trying to do that, when rp_id = test1 then it will Display the following Detail field automatically that belongs to this rp_id. and also it should check table3.creiteria='email'
I would be very grateful for your valuable Suggestion n help
thankx
regards,
|
|
|
|
|
|
Re: master-Detail n others [message #639238 is a reply to message #639232] |
Fri, 03 July 2015 05:42 |
|
sanodani
Messages: 98 Registered: October 2014
|
Member |
|
|
Hallo Litlefoot..
thankx once again..
well, I am still getting the same Problem...
can you please help me?
here is my actual code:
select a.field, a. descp, a. subject, c. email, d.line
into :d_blcok1.field,
:d_blcok1.descp,
:d_blcok1.subject,
:d_block2.email
:d_block3.line
from table1 a, table2, b, table3 c, table4 d
where a.rp_id in ( select b.rp_id from table2 b where b.criteria = 'email')
and a.rp_id = c.rp_id
and a.rp_id = d.rp_id;
Thanking you.
|
|
|
Re: master-Detail n others [message #639239 is a reply to message #639238] |
Fri, 03 July 2015 05:48 |
|
Littlefoot
Messages: 21823 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
This is the POST-QUERY trigger, right? If so, you don't need it, it won't do what you are looking for. POST-QUERY is to be used when you are populating some non-database items after the query has been executed, but you don't have such items here, do you?
You want to restrict records which are retrieved into the form when you execute query. Therefore, you have to modify data block's WHERE clause property - open block's Property Palette window and you'll find it in there, under the "Database" node.
I think I made a mistake in my previous message, saying that you should modify DETAIL block's WHERE clause - nope, that would be MASTER block instead.
|
|
|
|
|
|
|
|
|
|
|
|