Linking Tables

This is for Todd and Jim
Is there a way to change the master table using RB? I just finished
recreating a report that had the wrong master table for my needs. I
couldn't see any other way of changing the master so I started from scratch.
Todd I like the idea of always using the company table as master.

Mark Dupuis

-----Original Message-----
From: Jim Stetter [mailto:jimstetter@...]
Sent: Thursday, February 28, 2002 1:29 PM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] Linking Tables


Todd,
We have multiple companies in our database, so I always use Company as the
master table. (usually have to inculde Company Name or something from
Company table anyway). I really hadn't given any thought to your second
point, but I can see the added benefit you describe. In the early days of
using RB, it was common to find I needed to change the master table and
indeed it is a royal pain to change. Yes, I also see an increase in
performance using this methodology.

Here's a few other tips I have found useful in RB filters:

Specify filter data using the same hierarchy as your joins ei
Company.Company = "SN2", LaborHed.PayrollDate in-range 2/1/2002, 2/15/2002,
NOT LaborHed.PayrollDate in-range....., Company.Company = "SN2"

Use in-range instead of in-list where possible

Use Begins "XXXX" instead of >="XXXX" and <="XXXXendingvalue". Very
useful for grabbing all PartNum that start with "XXXX" only. From my
experience, most Vantage users have assigned some logical meaning to their
part number system.

Good Luck,

Jim Stetter
-----Original Message-----
From: Todd Caughey [mailto:caugheyt@...]
Sent: Thursday, February 28, 2002 12:34 PM
To: 'vantage@yahoogroups.com'
Subject: RE: [Vantage] Linking Tables


Jim,
Is starting with company only for performance reasons or does it make the
"real" master table (below company) easier to change if you need to ?
Half
a dozen times I've gotten a report almost done (all the formatting and
agg
& calc fields) only to find I should have had a different master table. A
real pain to change in RB. This sounds like a way to avoid the pain.
-Todd C.

-----Original Message-----
From: Jim Stetter [mailto:jimstetter@...]
Sent: Thursday, February 28, 2002 10:56 AM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] Linking Tables


Wendy,

Here are a few pointers that usually work well for me:

1. I always start with Company as the master table. Also, include
Company.Company in the filter/select even if you only have one company in
your database.

2. When you use detail tables (OrderDtl, LaborDtl..), use the coresponding
header table (OrderHed, LaborHed..) and join the detail table to the
Header
table. There are some situation where this doesn't apply. One that come to
mind would be the join between the PackDtl and OrderRel. (But you might
have
joined PackDtl to PackHed!)

3. Avoid linking 2 or more tables at the same level (Empbasic and Indirect
both to LaborDtl ). This causes the query to attempt to lookup both
dependent records and can slow you down.

4. Structure your links such that the tables with fewer records are to the
left (joins go left to right).

To demonstrate this technique, here is how I would create the joins for
your
example:


Company ------->Empbasic------->LaborHed-------->LaborDtl--------->Indirect
(Left Outer)
by Company by Company by Company by
Company
and EmpID and EmployeeNum and
IndirectCode
and LaborHedSeq

HTH
Jim Stetter

-----Original Message-----
From: Wendy Bowen (Pursche) [mailto:wpursche@...]
Sent: Thursday, February 28, 2002 9:08 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Linking Tables


Okay, all you Crystal and RB gurus............what is the best way to link
these 3 tables together?

Labordtl
Indirect
Empbasic

I have them linked together for a Crystal report and the report seems to
take longer to compile than it should. Granted, I have quite a few fields
displayed on the report, but otherwise I don't think it should take a
while
to compile. Right now I have the tables linked by:

Labordtl - Indirect: company, indirect code (left outer join) I need all
data, not just indirect
Labordtl - Empbasic: company, employee num/id (equal join)

Thanks!

Wendy Bowen
Network Administrator
Schmald Tool & Die, Inc.
(810) 743-1600 ext.323
wpursche@...

[Non-text portions of this message have been removed]





[Non-text portions of this message have been removed]



Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have
already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and
Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/links

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Okay, all you Crystal and RB gurus............what is the best way to link these 3 tables together?

Labordtl
Indirect
Empbasic

I have them linked together for a Crystal report and the report seems to take longer to compile than it should. Granted, I have quite a few fields displayed on the report, but otherwise I don't think it should take a while to compile. Right now I have the tables linked by:

Labordtl - Indirect: company, indirect code (left outer join) I need all data, not just indirect
Labordtl - Empbasic: company, employee num/id (equal join)

Thanks!

Wendy Bowen
Network Administrator
Schmald Tool & Die, Inc.
(810) 743-1600 ext.323
wpursche@...

[Non-text portions of this message have been removed]
Wendy,

Here are a few pointers that usually work well for me:

1. I always start with Company as the master table. Also, include
Company.Company in the filter/select even if you only have one company in
your database.

2. When you use detail tables (OrderDtl, LaborDtl..), use the coresponding
header table (OrderHed, LaborHed..) and join the detail table to the Header
table. There are some situation where this doesn't apply. One that come to
mind would be the join between the PackDtl and OrderRel. (But you might have
joined PackDtl to PackHed!)

3. Avoid linking 2 or more tables at the same level (Empbasic and Indirect
both to LaborDtl ). This causes the query to attempt to lookup both
dependent records and can slow you down.

4. Structure your links such that the tables with fewer records are to the
left (joins go left to right).

To demonstrate this technique, here is how I would create the joins for your
example:

Company ------->Empbasic------->LaborHed-------->LaborDtl--------->Indirect
(Left Outer)
by Company by Company by Company by
Company
and EmpID and EmployeeNum and
IndirectCode
and LaborHedSeq

HTH
Jim Stetter

-----Original Message-----
From: Wendy Bowen (Pursche) [mailto:wpursche@...]
Sent: Thursday, February 28, 2002 9:08 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Linking Tables


Okay, all you Crystal and RB gurus............what is the best way to link
these 3 tables together?

Labordtl
Indirect
Empbasic

I have them linked together for a Crystal report and the report seems to
take longer to compile than it should. Granted, I have quite a few fields
displayed on the report, but otherwise I don't think it should take a while
to compile. Right now I have the tables linked by:

Labordtl - Indirect: company, indirect code (left outer join) I need all
data, not just indirect
Labordtl - Empbasic: company, employee num/id (equal join)

Thanks!

Wendy Bowen
Network Administrator
Schmald Tool & Die, Inc.
(810) 743-1600 ext.323
wpursche@...

[Non-text portions of this message have been removed]


Yahoo! Groups Sponsor
ADVERTISEMENT




Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have
already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and
Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/links

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Jim,
Is starting with company only for performance reasons or does it make the
"real" master table (below company) easier to change if you need to ? Half
a dozen times I've gotten a report almost done (all the formatting and agg
& calc fields) only to find I should have had a different master table. A
real pain to change in RB. This sounds like a way to avoid the pain.
-Todd C.

-----Original Message-----
From: Jim Stetter [mailto:jimstetter@...]
Sent: Thursday, February 28, 2002 10:56 AM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] Linking Tables


Wendy,

Here are a few pointers that usually work well for me:

1. I always start with Company as the master table. Also, include
Company.Company in the filter/select even if you only have one company in
your database.

2. When you use detail tables (OrderDtl, LaborDtl..), use the coresponding
header table (OrderHed, LaborHed..) and join the detail table to the Header
table. There are some situation where this doesn't apply. One that come to
mind would be the join between the PackDtl and OrderRel. (But you might have
joined PackDtl to PackHed!)

3. Avoid linking 2 or more tables at the same level (Empbasic and Indirect
both to LaborDtl ). This causes the query to attempt to lookup both
dependent records and can slow you down.

4. Structure your links such that the tables with fewer records are to the
left (joins go left to right).

To demonstrate this technique, here is how I would create the joins for your
example:

Company ------->Empbasic------->LaborHed-------->LaborDtl--------->Indirect
(Left Outer)
by Company by Company by Company by
Company
and EmpID and EmployeeNum and
IndirectCode
and LaborHedSeq

HTH
Jim Stetter

-----Original Message-----
From: Wendy Bowen (Pursche) [mailto:wpursche@...]
Sent: Thursday, February 28, 2002 9:08 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Linking Tables


Okay, all you Crystal and RB gurus............what is the best way to link
these 3 tables together?

Labordtl
Indirect
Empbasic

I have them linked together for a Crystal report and the report seems to
take longer to compile than it should. Granted, I have quite a few fields
displayed on the report, but otherwise I don't think it should take a while
to compile. Right now I have the tables linked by:

Labordtl - Indirect: company, indirect code (left outer join) I need all
data, not just indirect
Labordtl - Empbasic: company, employee num/id (equal join)

Thanks!

Wendy Bowen
Network Administrator
Schmald Tool & Die, Inc.
(810) 743-1600 ext.323
wpursche@...

[Non-text portions of this message have been removed]


Yahoo! Groups Sponsor
ADVERTISEMENT




Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have
already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and
Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
<http://groups.yahoo.com/group/vantage/files/.>
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
<http://groups.yahoo.com/group/vantage/messages>
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/links
<http://groups.yahoo.com/group/vantage/links>

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



Yahoo! Groups Sponsor

ADVERTISEMENT

<http://rd.yahoo.com/M=217097.1884387.3381019.1261774/D=egroupweb/S=17050071
83:HM/A=960173/R=0/*http://service.bfast.com/bfast/click?bfmid=29150849&site
id=39249818&bfpage=moneyyahoo4>

<http://us.adserver.yahoo.com/l?M=217097.1884387.3381019.1261774/D=egroupmai
l/S=1705007183:HM/A=960173/rand=347756113>

Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have
already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and
Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
<http://groups.yahoo.com/group/vantage/files/.>
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
<http://groups.yahoo.com/group/vantage/messages>
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/links
<http://groups.yahoo.com/group/vantage/links>

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<http://docs.yahoo.com/info/terms/> .




[Non-text portions of this message have been removed]
Todd,
We have multiple companies in our database, so I always use Company as the
master table. (usually have to inculde Company Name or something from
Company table anyway). I really hadn't given any thought to your second
point, but I can see the added benefit you describe. In the early days of
using RB, it was common to find I needed to change the master table and
indeed it is a royal pain to change. Yes, I also see an increase in
performance using this methodology.

Here's a few other tips I have found useful in RB filters:

Specify filter data using the same hierarchy as your joins ei
Company.Company = "SN2", LaborHed.PayrollDate in-range 2/1/2002, 2/15/2002,
NOT LaborHed.PayrollDate in-range....., Company.Company = "SN2"

Use in-range instead of in-list where possible

Use Begins "XXXX" instead of >="XXXX" and <="XXXXendingvalue". Very
useful for grabbing all PartNum that start with "XXXX" only. From my
experience, most Vantage users have assigned some logical meaning to their
part number system.

Good Luck,

Jim Stetter
-----Original Message-----
From: Todd Caughey [mailto:caugheyt@...]
Sent: Thursday, February 28, 2002 12:34 PM
To: 'vantage@yahoogroups.com'
Subject: RE: [Vantage] Linking Tables


Jim,
Is starting with company only for performance reasons or does it make the
"real" master table (below company) easier to change if you need to ?
Half
a dozen times I've gotten a report almost done (all the formatting and
agg
& calc fields) only to find I should have had a different master table. A
real pain to change in RB. This sounds like a way to avoid the pain.
-Todd C.

-----Original Message-----
From: Jim Stetter [mailto:jimstetter@...]
Sent: Thursday, February 28, 2002 10:56 AM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] Linking Tables


Wendy,

Here are a few pointers that usually work well for me:

1. I always start with Company as the master table. Also, include
Company.Company in the filter/select even if you only have one company in
your database.

2. When you use detail tables (OrderDtl, LaborDtl..), use the coresponding
header table (OrderHed, LaborHed..) and join the detail table to the
Header
table. There are some situation where this doesn't apply. One that come to
mind would be the join between the PackDtl and OrderRel. (But you might
have
joined PackDtl to PackHed!)

3. Avoid linking 2 or more tables at the same level (Empbasic and Indirect
both to LaborDtl ). This causes the query to attempt to lookup both
dependent records and can slow you down.

4. Structure your links such that the tables with fewer records are to the
left (joins go left to right).

To demonstrate this technique, here is how I would create the joins for
your
example:


Company ------->Empbasic------->LaborHed-------->LaborDtl--------->Indirect
(Left Outer)
by Company by Company by Company by
Company
and EmpID and EmployeeNum and
IndirectCode
and LaborHedSeq

HTH
Jim Stetter

-----Original Message-----
From: Wendy Bowen (Pursche) [mailto:wpursche@...]
Sent: Thursday, February 28, 2002 9:08 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Linking Tables


Okay, all you Crystal and RB gurus............what is the best way to link
these 3 tables together?

Labordtl
Indirect
Empbasic

I have them linked together for a Crystal report and the report seems to
take longer to compile than it should. Granted, I have quite a few fields
displayed on the report, but otherwise I don't think it should take a
while
to compile. Right now I have the tables linked by:

Labordtl - Indirect: company, indirect code (left outer join) I need all
data, not just indirect
Labordtl - Empbasic: company, employee num/id (equal join)

Thanks!

Wendy Bowen
Network Administrator
Schmald Tool & Die, Inc.
(810) 743-1600 ext.323
wpursche@...

[Non-text portions of this message have been removed]





[Non-text portions of this message have been removed]
Jim,

Thanks! Sometimes I get the proper links confused. I didn't realize that I should link the corresponding header table first when linking a detail table.

Thanks again!

Wendy Bowen
Network Administrator
Schmald Tool & Die, Inc.
(810) 743-1600 ext.323
wpursche@...


----- Original Message -----
From: Jim Stetter
To: vantage@yahoogroups.com
Sent: Thursday, February 28, 2002 11:56 AM
Subject: RE: [Vantage] Linking Tables


Wendy,

Here are a few pointers that usually work well for me:

1. I always start with Company as the master table. Also, include
Company.Company in the filter/select even if you only have one company in
your database.

2. When you use detail tables (OrderDtl, LaborDtl..), use the coresponding
header table (OrderHed, LaborHed..) and join the detail table to the Header
table. There are some situation where this doesn't apply. One that come to
mind would be the join between the PackDtl and OrderRel. (But you might have
joined PackDtl to PackHed!)

3. Avoid linking 2 or more tables at the same level (Empbasic and Indirect
both to LaborDtl ). This causes the query to attempt to lookup both
dependent records and can slow you down.

4. Structure your links such that the tables with fewer records are to the
left (joins go left to right).

To demonstrate this technique, here is how I would create the joins for your
example:

Company ------->Empbasic------->LaborHed-------->LaborDtl--------->Indirect(Left Outer)
by Company by Company by Company byCompany
and EmpID and EmployeeNum andIndirectCode
and LaborHedSeq

HTH
Jim Stetter

-----Original Message-----
From: Wendy Bowen (Pursche) [mailto:wpursche@...]
Sent: Thursday, February 28, 2002 9:08 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Linking Tables


Okay, all you Crystal and RB gurus............what is the best way to link
these 3 tables together?

Labordtl
Indirect
Empbasic

I have them linked together for a Crystal report and the report seems to
take longer to compile than it should. Granted, I have quite a few fields
displayed on the report, but otherwise I don't think it should take a while
to compile. Right now I have the tables linked by:

Labordtl - Indirect: company, indirect code (left outer join) I need all
data, not just indirect
Labordtl - Empbasic: company, employee num/id (equal join)

Thanks!

Wendy Bowen
Network Administrator
Schmald Tool & Die, Inc.
(810) 743-1600 ext.323
wpursche@...

[Non-text portions of this message have been removed]
I'm using AppBuilder (Progress 9.1C) to build a browser that will browse a
table in the Vantage database. Setting up the initial table and query have
been no problem. What's giving me fits is trying to get the Browse widget
to refresh the query when a value in a Fill-in is updated (picture what
happens in Job Tracker when you type a new job number into the "Job Number"
box).

I've tried refering to the Browse widget in the LEAVE trigger code of the
Fill-In, but it only lets me deal with Frames (WITH FRAME). I've also tried
setting up a function that runs the query, then calling that in the LEAVE
trigger code, but it doesn't use the updated value in the Fill-In.

The closest I've come to success is using the Fill-In in a query that I
enter in the Browse widget, but that is a one-time query. Leaving the
Fill-In box doesn't refresh the Browse, so success is momentary. I've been
through 6 different books and cannot find this. Does anyone have the secret
or know which Progress book goes into this type of thing?

Thanks,

Jon Hellebuyck
Stremel Manufacturing


[Non-text portions of this message have been removed]
Wendy,
Linking header/details records is not a universal rule. However, I find that
I usually will need info from both tables. Also, many times the header
table has fields in an index that don't appear in the detail table. For
example, InvcHead has an index called INVOICEDATE composed of Company and
invoiceDate. InvoiceDate is contained in InvcHead but not InvcDtl. Also note
that Company is part of the index - in fact, Company is the first component
of almost all indices. That is why you should include the company code as
the first element of your filter even if you only have one company. Suppose
you wanted all the invoice details for a specific date range. Your joins
would be Company-->InvcHead-->InvcDtl. Your filter would be
Company.Company = "yourcompany", InvcHead.InvoiceDate in-range 1/1/2002,
2/28/2002. Use the Data Dictionary Viewer and look at the indices defined
for the tables you intend to use in your report. This will enable you to
determine the most effecient means to get to the data you want. Remeber, RB
will try to use the Vantage indices where possible. A poorly constructed
join/filter could cause RB to examine EVERY possible record set as described
by the link.

Good Luck
Jim Stetter

-----Original Message-----
From: Wendy Bowen (Pursche) [mailto:wpursche@...]
Sent: Thursday, February 28, 2002 1:53 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Linking Tables


Jim,

Thanks! Sometimes I get the proper links confused. I didn't realize that
I should link the corresponding header table first when linking a detail
table.

Thanks again!

Wendy Bowen
Network Administrator
Schmald Tool & Die, Inc.
(810) 743-1600 ext.323
wpursche@...


----- Original Message -----
From: Jim Stetter
To: vantage@yahoogroups.com
Sent: Thursday, February 28, 2002 11:56 AM
Subject: RE: [Vantage] Linking Tables


Wendy,

Here are a few pointers that usually work well for me:

1. I always start with Company as the master table. Also, include
Company.Company in the filter/select even if you only have one company
in
your database.

2. When you use detail tables (OrderDtl, LaborDtl..), use the
coresponding
header table (OrderHed, LaborHed..) and join the detail table to the
Header
table. There are some situation where this doesn't apply. One that come
to
mind would be the join between the PackDtl and OrderRel. (But you might
have
joined PackDtl to PackHed!)

3. Avoid linking 2 or more tables at the same level (Empbasic and
Indirect
both to LaborDtl ). This causes the query to attempt to lookup both
dependent records and can slow you down.

4. Structure your links such that the tables with fewer records are to
the
left (joins go left to right).

To demonstrate this technique, here is how I would create the joins for
your
example:





Company ------->Empbasic------->LaborHed-------->LaborDtl--------->Indirect(
Left Outer)
by Company by Company by Company
byCompany
and EmpID and EmployeeNum
andIndirectCode
and LaborHedSeq

HTH
Jim Stetter

-----Original Message-----
From: Wendy Bowen (Pursche) [mailto:wpursche@...]
Sent: Thursday, February 28, 2002 9:08 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Linking Tables


Okay, all you Crystal and RB gurus............what is the best way to
link
these 3 tables together?

Labordtl
Indirect
Empbasic

I have them linked together for a Crystal report and the report seems to
take longer to compile than it should. Granted, I have quite a few
fields
displayed on the report, but otherwise I don't think it should take a
while
to compile. Right now I have the tables linked by:

Labordtl - Indirect: company, indirect code (left outer join) I need
all
data, not just indirect
Labordtl - Empbasic: company, employee num/id (equal join)

Thanks!

Wendy Bowen
Network Administrator
Schmald Tool & Die, Inc.
(810) 743-1600 ext.323
wpursche@...

[Non-text portions of this message have been removed]


Yahoo! Groups Sponsor
ADVERTISEMENT




Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must
have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and
Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/links

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



[Non-text portions of this message have been removed]
To all,

One tool that has helped me learn the best way to link is using the "Query Wizard" in the Export Utility. In the Query Wizard, when you pick two Vantage tables, the Wizard will do all the linking for you. Then just make note of how the tables were linked (ie. which fields were used) and go back to Crystal or RB and create those identicle joins. I haven't had it fail me yet.

Just a Tip.

Troy Funte
Liberty Electronics

----- Original Message -----
From: Jim Stetter
To: vantage@yahoogroups.com
Sent: Thursday, February 28, 2002 2:36 PM
Subject: RE: [Vantage] Linking Tables


Wendy,
Linking header/details records is not a universal rule. However, I find that
I usually will need info from both tables. Also, many times the header
table has fields in an index that don't appear in the detail table. For
example, InvcHead has an index called INVOICEDATE composed of Company and
invoiceDate. InvoiceDate is contained in InvcHead but not InvcDtl. Also note
that Company is part of the index - in fact, Company is the first component
of almost all indices. That is why you should include the company code as
the first element of your filter even if you only have one company. Suppose
you wanted all the invoice details for a specific date range. Your joins
would be Company-->InvcHead-->InvcDtl. Your filter would be
Company.Company = "yourcompany", InvcHead.InvoiceDate in-range 1/1/2002,
2/28/2002. Use the Data Dictionary Viewer and look at the indices defined
for the tables you intend to use in your report. This will enable you to
determine the most effecient means to get to the data you want. Remeber, RB
will try to use the Vantage indices where possible. A poorly constructed
join/filter could cause RB to examine EVERY possible record set as described
by the link.

Good Luck
Jim Stetter

-----Original Message-----
From: Wendy Bowen (Pursche) [mailto:wpursche@...]
Sent: Thursday, February 28, 2002 1:53 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Linking Tables


Jim,

Thanks! Sometimes I get the proper links confused. I didn't realize that
I should link the corresponding header table first when linking a detail
table.

Thanks again!

Wendy Bowen
Network Administrator
Schmald Tool & Die, Inc.
(810) 743-1600 ext.323
wpursche@...


----- Original Message -----
From: Jim Stetter
To: vantage@yahoogroups.com
Sent: Thursday, February 28, 2002 11:56 AM
Subject: RE: [Vantage] Linking Tables


Wendy,

Here are a few pointers that usually work well for me:

1. I always start with Company as the master table. Also, include
Company.Company in the filter/select even if you only have one company
in
your database.

2. When you use detail tables (OrderDtl, LaborDtl..), use the
coresponding
header table (OrderHed, LaborHed..) and join the detail table to the
Header
table. There are some situation where this doesn't apply. One that come
to
mind would be the join between the PackDtl and OrderRel. (But you might
have
joined PackDtl to PackHed!)

3. Avoid linking 2 or more tables at the same level (Empbasic and
Indirect
both to LaborDtl ). This causes the query to attempt to lookup both
dependent records and can slow you down.

4. Structure your links such that the tables with fewer records are to
the
left (joins go left to right).

To demonstrate this technique, here is how I would create the joins for
your
example:





Company ------->Empbasic------->LaborHed-------->LaborDtl--------->Indirect(
Left Outer)
by Company by Company by Company
byCompany
and EmpID and EmployeeNum
andIndirectCode
and LaborHedSeq

HTH
Jim Stetter

-----Original Message-----
From: Wendy Bowen (Pursche) [mailto:wpursche@...]
Sent: Thursday, February 28, 2002 9:08 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Linking Tables


Okay, all you Crystal and RB gurus............what is the best way to
link
these 3 tables together?

Labordtl
Indirect
Empbasic

I have them linked together for a Crystal report and the report seems to
take longer to compile than it should. Granted, I have quite a few
fields
displayed on the report, but otherwise I don't think it should take a
while
to compile. Right now I have the tables linked by:

Labordtl - Indirect: company, indirect code (left outer join) I need
all
data, not just indirect
Labordtl - Empbasic: company, employee num/id (equal join)

Thanks!

Wendy Bowen
Network Administrator
Schmald Tool & Die, Inc.
(810) 743-1600 ext.323
wpursche@...

[Non-text portions of this message have been removed]


Yahoo! Groups Sponsor
ADVERTISEMENT




Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must
have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and
Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/links

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



[Non-text portions of this message have been removed]


Yahoo! Groups Sponsor
ADVERTISEMENT




Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/links

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



[Non-text portions of this message have been removed]
Troy,

Thanks! That works too!

Wendy Bowen
Network Administrator
Schmald Tool & Die, Inc.
(810) 743-1600 ext.323
wpursche@...
----- Original Message -----
From: Troy Funte
To: vantage@yahoogroups.com
Sent: Thursday, February 28, 2002 2:50 PM
Subject: Re: [Vantage] Linking Tables


To all,

One tool that has helped me learn the best way to link is using the "Query Wizard" in the Export Utility. In the Query Wizard, when you pick two Vantage tables, the Wizard will do all the linking for you. Then just make note of how the tables were linked (ie. which fields were used) and go back to Crystal or RB and create those identicle joins. I haven't had it fail me yet.

Just a Tip.

Troy Funte
Liberty Electronics

----- Original Message -----
From: Jim Stetter
To: vantage@yahoogroups.com
Sent: Thursday, February 28, 2002 2:36 PM
Subject: RE: [Vantage] Linking Tables


Wendy,
Linking header/details records is not a universal rule. However, I find that
I usually will need info from both tables. Also, many times the header
table has fields in an index that don't appear in the detail table. For
example, InvcHead has an index called INVOICEDATE composed of Company and
invoiceDate. InvoiceDate is contained in InvcHead but not InvcDtl. Also note
that Company is part of the index - in fact, Company is the first component
of almost all indices. That is why you should include the company code as
the first element of your filter even if you only have one company. Suppose
you wanted all the invoice details for a specific date range. Your joins
would be Company-->InvcHead-->InvcDtl. Your filter would be
Company.Company = "yourcompany", InvcHead.InvoiceDate in-range 1/1/2002,
2/28/2002. Use the Data Dictionary Viewer and look at the indices defined
for the tables you intend to use in your report. This will enable you to
determine the most effecient means to get to the data you want. Remeber, RB
will try to use the Vantage indices where possible. A poorly constructed
join/filter could cause RB to examine EVERY possible record set as described
by the link.

Good Luck
Jim Stetter

-----Original Message-----
From: Wendy Bowen (Pursche) [mailto:wpursche@...]
Sent: Thursday, February 28, 2002 1:53 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Linking Tables


Jim,

Thanks! Sometimes I get the proper links confused. I didn't realize that
I should link the corresponding header table first when linking a detail
table.

Thanks again!

Wendy Bowen
Network Administrator
Schmald Tool & Die, Inc.
(810) 743-1600 ext.323
wpursche@...


----- Original Message -----
From: Jim Stetter
To: vantage@yahoogroups.com
Sent: Thursday, February 28, 2002 11:56 AM
Subject: RE: [Vantage] Linking Tables


Wendy,

Here are a few pointers that usually work well for me:

1. I always start with Company as the master table. Also, include
Company.Company in the filter/select even if you only have one company
in
your database.

2. When you use detail tables (OrderDtl, LaborDtl..), use the
coresponding
header table (OrderHed, LaborHed..) and join the detail table to the
Header
table. There are some situation where this doesn't apply. One that come
to
mind would be the join between the PackDtl and OrderRel. (But you might
have
joined PackDtl to PackHed!)

3. Avoid linking 2 or more tables at the same level (Empbasic and
Indirect
both to LaborDtl ). This causes the query to attempt to lookup both
dependent records and can slow you down.

4. Structure your links such that the tables with fewer records are to
the
left (joins go left to right).

To demonstrate this technique, here is how I would create the joins for
your
example:





Company ------->Empbasic------->LaborHed-------->LaborDtl--------->Indirect(
Left Outer)
by Company by Company by Company
byCompany
and EmpID and EmployeeNum
andIndirectCode
and LaborHedSeq

HTH
Jim Stetter

-----Original Message-----
From: Wendy Bowen (Pursche) [mailto:wpursche@...]
Sent: Thursday, February 28, 2002 9:08 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Linking Tables


Okay, all you Crystal and RB gurus............what is the best way to
link
these 3 tables together?

Labordtl
Indirect
Empbasic

I have them linked together for a Crystal report and the report seems to
take longer to compile than it should. Granted, I have quite a few
fields
displayed on the report, but otherwise I don't think it should take a
while
to compile. Right now I have the tables linked by:

Labordtl - Indirect: company, indirect code (left outer join) I need
all
data, not just indirect
Labordtl - Empbasic: company, employee num/id (equal join)

Thanks!

Wendy Bowen
Network Administrator
Schmald Tool & Die, Inc.
(810) 743-1600 ext.323
wpursche@...

[Non-text portions of this message have been removed]


Yahoo! Groups Sponsor
ADVERTISEMENT




Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must
have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and
Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/links

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



[Non-text portions of this message have been removed]


Yahoo! Groups Sponsor
ADVERTISEMENT




Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/links

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



[Non-text portions of this message have been removed]


Yahoo! Groups Sponsor
ADVERTISEMENT




Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/links

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


[Non-text portions of this message have been removed]
I've been needing to do the same for a couple of programs that use a
browse widget to view and modify table contents, so I decided to
tackle it now. I think I have a working example.

If you want to discuss, email me off list so I can reply with the
file.

Lonnie

--- In vantage@y..., "Jon Hellebuyck" <jhellebuyck@s...> wrote:
> I'm using AppBuilder (Progress 9.1C) to build a browser that will
browse a
> table in the Vantage database. Setting up the initial table and
query have
> been no problem. What's giving me fits is trying to get the Browse
widget
> to refresh the query when a value in a Fill-in is updated (picture
what
> happens in Job Tracker when you type a new job number into the "Job
Number"
> box).
>
> I've tried refering to the Browse widget in the LEAVE trigger code
of the
> Fill-In, but it only lets me deal with Frames (WITH FRAME). I've
also tried
> setting up a function that runs the query, then calling that in the
LEAVE
> trigger code, but it doesn't use the updated value in the Fill-In.
>
> The closest I've come to success is using the Fill-In in a query
that I
> enter in the Browse widget, but that is a one-time query. Leaving
the
> Fill-In box doesn't refresh the Browse, so success is momentary.
I've been
> through 6 different books and cannot find this. Does anyone have
the secret
> or know which Progress book goes into this type of thing?
>
> Thanks,
>
> Jon Hellebuyck
> Stremel Manufacturing
>
>
> [Non-text portions of this message have been removed]