BAQ for Labor Transactions

You can do this as a two step report... you could write a BPM to get the data you want to print out into a UD table and then do a simple BAQ out of that UD Table, the idea is basically have a simple custom screen with a button satug "execute report" this button will fire a BPM on your UD table massage and prepare all your data and insert it in the UD table itself, after that you will go to your BAQ/Dashboard/Report to print the information as a simple select of all records on your UD .

We have done this in the past when we are trying to execute a complex query that the BAQ engine is simply not powerful enogh to execute by itself. 
 
Kind Regards,
Sergio P. 
CTO, Sr. Partner
Kind Regards,
Sergio P.

Mayan Technologies USA, Inc.
(858) 900.1555
sprieto@...




On Tuesday, March 24, 2015 11:04 AM, "sanfranc415@... [vantage]" <vantage@yahoogroups.com> wrote:


 
<div id="ygrps-yiv-669156012yiv0135474972ygrp-text">
  
  
  <div>Todd, thanks for the response, but the BAQ or Crystal Report after linking the LaborDtl.JobNum and JobProd.Jobnum is hungs and eventually returns some results, but it&#39;s extremely slow.</div><div><br clear="none"></div><div>Regards,</div><div><br clear="none"></div><div>--SF</div>

</div>
 


<div style="color:#fff;height:0;"></div></div>
#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 #ygrps-yiv-669156012yiv0135474972 -- #ygrps-yiv-669156012yiv0135474972ygrp-mkp { border:1px solid #d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 #ygrps-yiv-669156012yiv0135474972ygrp-mkp hr {
border:1px solid #d8d8d8;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 #ygrps-yiv-669156012yiv0135474972ygrp-mkp #ygrps-yiv-669156012yiv0135474972hd {
color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 0;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 #ygrps-yiv-669156012yiv0135474972ygrp-mkp #ygrps-yiv-669156012yiv0135474972ads {
margin-bottom:10px;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 #ygrps-yiv-669156012yiv0135474972ygrp-mkp .ygrps-yiv-669156012yiv0135474972ad {
padding:0 0;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 #ygrps-yiv-669156012yiv0135474972ygrp-mkp .ygrps-yiv-669156012yiv0135474972ad p {
margin:0;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 #ygrps-yiv-669156012yiv0135474972ygrp-mkp .ygrps-yiv-669156012yiv0135474972ad a {
color:#0000ff;text-decoration:none;}
#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 #ygrps-yiv-669156012yiv0135474972ygrp-sponsor #ygrps-yiv-669156012yiv0135474972ygrp-lc {
font-family:Arial;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 #ygrps-yiv-669156012yiv0135474972ygrp-sponsor #ygrps-yiv-669156012yiv0135474972ygrp-lc #ygrps-yiv-669156012yiv0135474972hd {
margin:10px 0px;font-weight:700;font-size:78%;line-height:122%;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 #ygrps-yiv-669156012yiv0135474972ygrp-sponsor #ygrps-yiv-669156012yiv0135474972ygrp-lc .ygrps-yiv-669156012yiv0135474972ad {
margin-bottom:10px;padding:0 0;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 #ygrps-yiv-669156012yiv0135474972actions {
font-family:Verdana;font-size:11px;padding:10px 0;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 #ygrps-yiv-669156012yiv0135474972activity {
background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 #ygrps-yiv-669156012yiv0135474972activity span {
font-weight:700;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 #ygrps-yiv-669156012yiv0135474972activity span:first-child {
text-transform:uppercase;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 #ygrps-yiv-669156012yiv0135474972activity span a {
color:#5085b6;text-decoration:none;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 #ygrps-yiv-669156012yiv0135474972activity span span {
color:#ff7900;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 #ygrps-yiv-669156012yiv0135474972activity span .ygrps-yiv-669156012yiv0135474972underline {
text-decoration:underline;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 .ygrps-yiv-669156012yiv0135474972attach {
clear:both;display:table;font-family:Arial;font-size:12px;padding:10px 0;width:400px;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 .ygrps-yiv-669156012yiv0135474972attach div a {
text-decoration:none;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 .ygrps-yiv-669156012yiv0135474972attach img {
border:none;padding-right:5px;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 .ygrps-yiv-669156012yiv0135474972attach label {
display:block;margin-bottom:5px;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 .ygrps-yiv-669156012yiv0135474972attach label a {
text-decoration:none;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 blockquote {
margin:0 0 0 4px;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 .ygrps-yiv-669156012yiv0135474972bold {
font-family:Arial;font-size:13px;font-weight:700;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 .ygrps-yiv-669156012yiv0135474972bold a {
text-decoration:none;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 dd.ygrps-yiv-669156012yiv0135474972last p a {
font-family:Verdana;font-weight:700;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 dd.ygrps-yiv-669156012yiv0135474972last p span {
margin-right:10px;font-family:Verdana;font-weight:700;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 dd.ygrps-yiv-669156012yiv0135474972last p span.ygrps-yiv-669156012yiv0135474972yshortcuts {
margin-right:0;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 div.ygrps-yiv-669156012yiv0135474972attach-table div div a {
text-decoration:none;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 div.ygrps-yiv-669156012yiv0135474972attach-table {
width:400px;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 div.ygrps-yiv-669156012yiv0135474972file-title a, #ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 div.ygrps-yiv-669156012yiv0135474972file-title a:active, #ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 div.ygrps-yiv-669156012yiv0135474972file-title a:hover, #ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 div.ygrps-yiv-669156012yiv0135474972file-title a:visited {
text-decoration:none;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 div.ygrps-yiv-669156012yiv0135474972photo-title a, #ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 div.ygrps-yiv-669156012yiv0135474972photo-title a:active, #ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 div.ygrps-yiv-669156012yiv0135474972photo-title a:hover, #ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 div.ygrps-yiv-669156012yiv0135474972photo-title a:visited {
text-decoration:none;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 div#ygrps-yiv-669156012yiv0135474972ygrp-mlmsg #ygrps-yiv-669156012yiv0135474972ygrp-msg p a span.ygrps-yiv-669156012yiv0135474972yshortcuts {
font-family:Verdana;font-size:10px;font-weight:normal;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 .ygrps-yiv-669156012yiv0135474972green {
color:#628c2a;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 .ygrps-yiv-669156012yiv0135474972MsoNormal {
margin:0 0 0 0;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 o {
font-size:0;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 #ygrps-yiv-669156012yiv0135474972photos div {
float:left;width:72px;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 #ygrps-yiv-669156012yiv0135474972photos div div {
border:1px solid #666666;height:62px;overflow:hidden;width:62px;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 #ygrps-yiv-669156012yiv0135474972photos div label {
color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 #ygrps-yiv-669156012yiv0135474972reco-category {
font-size:77%;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 #ygrps-yiv-669156012yiv0135474972reco-desc {
font-size:77%;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 .ygrps-yiv-669156012yiv0135474972replbq {
margin:4px;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 #ygrps-yiv-669156012yiv0135474972ygrp-actbar div a:first-child {
margin-right:2px;padding-right:5px;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 #ygrps-yiv-669156012yiv0135474972ygrp-mlmsg {
font-size:13px;font-family:Arial, helvetica, clean, sans-serif;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 #ygrps-yiv-669156012yiv0135474972ygrp-mlmsg table {
font-size:inherit;font:100%;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 #ygrps-yiv-669156012yiv0135474972ygrp-mlmsg select, #ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 input, #ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 textarea {
font:99% Arial, Helvetica, clean, sans-serif;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 #ygrps-yiv-669156012yiv0135474972ygrp-mlmsg pre, #ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 code {
font:115% monospace;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 #ygrps-yiv-669156012yiv0135474972ygrp-mlmsg * {
line-height:1.22em;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 #ygrps-yiv-669156012yiv0135474972ygrp-mlmsg #ygrps-yiv-669156012yiv0135474972logo {
padding-bottom:10px;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 #ygrps-yiv-669156012yiv0135474972ygrp-msg p a {
font-family:Verdana;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 #ygrps-yiv-669156012yiv0135474972ygrp-msg p#ygrps-yiv-669156012yiv0135474972attach-count span {
color:#1E66AE;font-weight:700;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 #ygrps-yiv-669156012yiv0135474972ygrp-reco #ygrps-yiv-669156012yiv0135474972reco-head {
color:#ff7900;font-weight:700;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 #ygrps-yiv-669156012yiv0135474972ygrp-reco {
margin-bottom:20px;padding:0px;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 #ygrps-yiv-669156012yiv0135474972ygrp-sponsor #ygrps-yiv-669156012yiv0135474972ov li a {
font-size:130%;text-decoration:none;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 #ygrps-yiv-669156012yiv0135474972ygrp-sponsor #ygrps-yiv-669156012yiv0135474972ov li {
font-size:77%;list-style-type:square;padding:6px 0;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 #ygrps-yiv-669156012yiv0135474972ygrp-sponsor #ygrps-yiv-669156012yiv0135474972ov ul {
margin:0;padding:0 0 0 8px;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 #ygrps-yiv-669156012yiv0135474972ygrp-text {
font-family:Georgia;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 #ygrps-yiv-669156012yiv0135474972ygrp-text p {
margin:0 0 1em 0;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 #ygrps-yiv-669156012yiv0135474972ygrp-text tt {
font-size:120%;}

#ygrps-yiv-669156012 #ygrps-yiv-669156012yiv0135474972 #ygrps-yiv-669156012yiv0135474972ygrp-vital ul li:last-child {
border-right:none !important;}
#ygrps-yiv-669156012



In an attempt to display information for Labor Transactions after linking LaborHed and JobProd with Job Number, the query just hangs.  Is there a problem with linking the LaborHed/LaborDtl and JobProd or JobHead table?


Thanks.

Has this database been in production usage very long?  Like more than several years?  LaborDtl can grow very large over time – especially with larger numbers of employees and frequent clocking activities.  I usually make sure I have all links using as much of any index paths as possible and then, when possible, filter on an item in such an index – especially a date if possible, such as > 01/01/2015 or maybe a base transaction number (first # of the year).   Beyond that double check the links from LaborDtl to JobProd via JobNum – like a lot of other situations trying to link manufacturing activities to orders is often problematic but it can be done.

 

-Todd C.

 

 

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Monday, March 23, 2015 3:11 PM
To: vantage@yahoogroups.com
Subject: [Vantage] BAQ for Labor Transactions

 

 

In an attempt to display information for Labor Transactions after linking LaborHed and JobProd with Job Number, the query just hangs.  Is there a problem with linking the LaborHed/LaborDtl and JobProd or JobHead table?

 

Thanks.

Todd, thanks for the response, but the BAQ or Crystal Report after linking the LaborDtl.JobNum and JobProd.Jobnum is hungs and eventually returns some results, but it's extremely slow.

Regards,

--SF