How to display rows [message #260971] |
Tue, 21 August 2007 06:59 |
Catty
Messages: 64 Registered: April 2006 Location: Poland
|
Member |
|
|
Hello everyone
I have made form in Forms 6.0. It has two blocks of data. Each of them is based on database table. One block B1 has elements:
Inventory number
Group
and the second block B2 has elements:
Group
Number
I display 12 rows of each block. I've made a relation between those two blocks: by the group. Block B1 is the master block.
First block (B1)display all rows, but in the second block B2 is display only one corresponding field. Rest 11 are empty.
Can anyone tell me how to synchronize those two blocks and display all corresponding rows?
Greetings
|
|
|
|
|
Re: How to display rows [message #261594 is a reply to message #260971] |
Thu, 23 August 2007 01:56 |
Catty
Messages: 64 Registered: April 2006 Location: Poland
|
Member |
|
|
Hello
Those data come from two different tables. What I really want is to get data from one table (let's say master table) and by the key get data from that second table (slave table). The number of data from first table is 12 and are shown all, but corresponding data from second table (there is 12 row) are display only one.
Should I write some trigger that fetch those data from second table? When I delete relationship data from second table ar invisible.
Greetings
|
|
|
|
|
|
|
|
Re: How to display rows [message #261992 is a reply to message #260971] |
Fri, 24 August 2007 05:27 |
Catty
Messages: 64 Registered: April 2006 Location: Poland
|
Member |
|
|
There is problem.
My form looks like this:
First blok B1 (master table) Second Block B2(data extract
by the key)
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
row 1 corresponding value fro row1
row 2 null(should be value for row2)
row 3 null(should be value for row3)
row 4 null(should be value for row4)
row 5 null(should be value for row5)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Second block of data doesn't show all selected data. I don't know why,although it's source is table, just like for the first block B1.
Greetings
|
|
|
|
|
Re: How to display rows [message #262039 is a reply to message #262026] |
Fri, 24 August 2007 06:46 |
|
Littlefoot
Messages: 21823 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
Ummm ... no. It doesn't disappear, but it never showed up! OK, the result is the same, but the principle isn't.
If you want to display records in both groups (WITHOUT master-detail relationship!), do (in the WHEN-NEW-FORM-INSTANCE trigger, for example)
GO_BLOCK('master');
EXECUTE_QUERY;
GO_BLOCK('detail');
EXECUTE_QUERY; Now you'll have records in both blocks.
|
|
|