Vice President, Administrative Services
Intermountain Electronics - Power, Automation, and Process Systems
Office:Â 435-613-4817Â |Â Â Mobile:Â 801-918-7318
kwilliams@... |Â www.ie-corp.com
On Mon, Aug 24, 2015 at 10:53 AM, Jose Gomez jose@... [vantage] <vantage@yahoogroups.com> wrote:Â<div> <p></p><div dir="ltr"><div class="ygrps-yiv-952595222gmail_default" style="font-family:verdana, sans-serif;font-size:small;">No it should work I just wanted to verify the reason for the duplication. </div><div class="ygrps-yiv-952595222gmail_default" style="font-family:verdana, sans-serif;font-size:small;">Are you in 9x? If so, set ttCallContextBPMData.CheckBox01 to true then add that as a condition in the Data Directive Trigger where CallContextBPMData.CheckBox01 <> True</div><div class="ygrps-yiv-952595222gmail_default" style="font-family:verdana, sans-serif;font-size:small;">Then add another one if its false to clear the checkbox.</div></div><div class="ygrps-yiv-952595222gmail_extra"><span class="ygrps-yiv-952595222"><br clear="all"><div><div><div dir="ltr"><div><font face="verdana, sans-serif"><br><font color="#333333"><b>Jose C Gomez</b></font></font></div><div><font color="#666666" face="verdana, sans-serif" size="1"><b>Software Engineer<br><br></b></font></div><div><font face="verdana, sans-serif"><font><font color="#666666"><b><br></b></font><font color="#FF6600" size="1">T: </font></font><font size="1"><span title="Call with Google Voice"><span title="Call with Google Voice"><a rel="nofollow">904.469.1524</a></span></span> mobile</font></font></div><div><font size="1" face="verdana, sans-serif"><font color="#FF6600">E:</font> <a rel="nofollow" target="_blank" href="mailto:jose@...">jose@...</a></font><font size="1" face="verdana, sans-serif"><br><a rel="nofollow" target="_blank" href="http://www.josecgomez.com"><font color="#FF6600">http://www.josecgomez.com</font></a><br><a rel="nofollow" target="_blank" href="http://www.linkedin.com/in/josecgomez" style="font-size:small;"><img src="https://ec.yimg.com/ec?url=http%3A%2F%2Fwww.josecgomez.com%2Fimages%2Flinkedin.png&t=1473006876&sig=83D8h_nIHEO.k.z3rSZrDw--~C"></a> <a rel="nofollow" target="_blank" href="http://www.facebook.com/josegomez" style="font-size:small;"><img src="https://ec.yimg.com/ec?url=http%3A%2F%2Fwww.josecgomez.com%2Fimages%2Ffacebook.png&t=1473006876&sig=eb2jghwZCuKGEbVuez2HNg--~C"></a> </font><a rel="nofollow" target="_blank" href="http://www.google.com/profiles/jose.gomez"><img src="https://ec.yimg.com/ec?url=http%3A%2F%2Fwww.josecgomez.com%2Fimages%2Fgoogle.png&t=1473006876&sig=0flz8eC9MrCBcXQmPDPGUw--~C"></a> <a rel="nofollow" target="_blank" href="http://www.twitter.com/joc85"><img src="https://ec.yimg.com/ec?url=http%3A%2F%2Fwww.josecgomez.com%2Fimages%2Ftwitter.png&t=1473006876&sig=Crv3nHcLCLHrOPTYi2kY3w--~C"></a> <a rel="nofollow" target="_blank" href="http://www.josecgomez.com/professional-resume/"><img src="https://ec.yimg.com/ec?url=http%3A%2F%2Fwww.josecgomez.com%2Fimages%2Fwp.png&t=1473006876&sig=EyO.jhSHl21uEKDlhOUkqA--~C"></a> <span style="font-family:verdana, sans-serif;"><a rel="nofollow" target="_blank" href="http://www.josecgomez.com/feed/"><img src="https://ec.yimg.com/ec?url=http%3A%2F%2Fwww.josecgomez.com%2Fimages%2Frss.png&t=1473006876&sig=tns4BHVXcauhHYmsZvV4eA--~C"></a> </span></div><div><span lang="LA" style="color:black;"><br><font face="Verdana, sans-serif" style="font-weight:bold;" size="1"><i>Quis custodiet
ipsos custodes?
On Mon, Aug 24, 2015 at 12:47 PM, Ken Williams kwilliams@… [vantage] <vantage@yahoogroups.com> wrote:Â<div> <p></p><div dir="ltr"><span style="font-size:12.8000001907349px;">Yes it is. Why wouldn't it work? I can try a method update directive easy enough if that's the fix.</span><br><div class="ygrps-yiv-952595222gmail_extra"><br clear="all"><div><div><font face="Calibri"><span>Ken Williams<br>
Vice President, Administrative Services
Intermountain Electronics - Power, Automation, and Process Systems
Office:Â 435-613-4817Â |Â Â Mobile:Â 801-918-7318
kwilliams@… |Â www.ie-corp.com
On Mon, Aug 24, 2015 at 10:45 AM, Jose Gomez jose@… [vantage] <vantage@yahoogroups.com> wrote:Â<div> <p></p><div dir="ltr"><div style="font-family:verdana, sans-serif;font-size:small;">Is this a Data Directive? Cause a BPM wouldn't look via this method.</div></div><div class="ygrps-yiv-952595222gmail_extra"><span><br clear="all"><div><div><div dir="ltr"><div><font face="verdana, sans-serif"><br><font color="#333333"><b>Jose C Gomez</b></font></font></div><div><font color="#666666" face="verdana, sans-serif" size="1"><b>Software Engineer<br><br></b></font></div><div><font face="verdana, sans-serif"><font><font color="#666666"><b><br></b></font><font color="#FF6600" size="1">T: </font></font><font size="1"><span title="Call with Google Voice"><span title="Call with Google Voice"><a rel="nofollow">904.469.1524</a></span></span> mobile</font></font></div><div><font size="1" face="verdana, sans-serif"><font color="#FF6600">E:</font> <a rel="nofollow" target="_blank" href="mailto:jose@...">jose@...</a></font><font size="1" face="verdana, sans-serif"><br><a rel="nofollow" target="_blank" href="http://www.josecgomez.com"><font color="#FF6600">http://www.josecgomez.com</font></a><br><a rel="nofollow" target="_blank" href="http://www.linkedin.com/in/josecgomez" style="font-size:small;"><img src="https://ec.yimg.com/ec?url=http%3A%2F%2Fwww.josecgomez.com%2Fimages%2Flinkedin.png&t=1473006876&sig=83D8h_nIHEO.k.z3rSZrDw--~C"></a>Â <a rel="nofollow" target="_blank" href="http://www.facebook.com/josegomez" style="font-size:small;"><img src="https://ec.yimg.com/ec?url=http%3A%2F%2Fwww.josecgomez.com%2Fimages%2Ffacebook.png&t=1473006876&sig=eb2jghwZCuKGEbVuez2HNg--~C"></a>Â </font><a rel="nofollow" target="_blank" href="http://www.google.com/profiles/jose.gomez"><img src="https://ec.yimg.com/ec?url=http%3A%2F%2Fwww.josecgomez.com%2Fimages%2Fgoogle.png&t=1473006876&sig=0flz8eC9MrCBcXQmPDPGUw--~C"></a>Â <a rel="nofollow" target="_blank" href="http://www.twitter.com/joc85"><img src="https://ec.yimg.com/ec?url=http%3A%2F%2Fwww.josecgomez.com%2Fimages%2Ftwitter.png&t=1473006876&sig=Crv3nHcLCLHrOPTYi2kY3w--~C"></a>Â <a rel="nofollow" target="_blank" href="http://www.josecgomez.com/professional-resume/"><img src="https://ec.yimg.com/ec?url=http%3A%2F%2Fwww.josecgomez.com%2Fimages%2Fwp.png&t=1473006876&sig=EyO.jhSHl21uEKDlhOUkqA--~C"></a>Â <span style="font-family:verdana, sans-serif;"><a rel="nofollow" target="_blank" href="http://www.josecgomez.com/feed/"><img src="https://ec.yimg.com/ec?url=http%3A%2F%2Fwww.josecgomez.com%2Fimages%2Frss.png&t=1473006876&sig=tns4BHVXcauhHYmsZvV4eA--~C"></a>Â </span></div><div><span lang="LA" style="color:black;"><br><font face="Verdana, sans-serif" style="font-weight:bold;" size="1"><i>Quis custodiet
ipsos custodes?
On Mon, Aug 24, 2015 at 12:41 PM, Ken Williams kwilliams@… [vantage] <vantage@yahoogroups.com> wrote:Â<div> <p><span>That was the last move I made. Unfortunately it's still looping. I'm<br>
watching a BAQ run and it's basically looping between the old cost and the
new cost somehow. I watch the new cost move and is only ever applied to
1-3 of the 6 costIDs, but as I refresh the BAQ I see the new cost on 1-3 of
the ID's.
Here's a screenshot right now where the 2nd & 3rd CostID have the new price
(notice the additional $0.20 on material cost for the update):
[image: Inline image 1]
Here's one a few seconds later where the 1st & 4th CostID have the new
price:
[image: Inline image 2]
And yet a third screenshot showing the 1st, 2nd & 3rd all have the new
price:
[image: Inline image 3]
This loop has been running since before my original e-mail. I'm guessing
the only way to stop it is to shutdown the appservers.
This loop was based on this code:
for each ttPartCost:
- for each PartCost where ttPartCost.Company = PartCost.Company AND
ttPartCost.PartNum = PartCost.PartNum AND ttPartCost.CostID <>
PartCost.CostID AND (PartCost.StdBurdenCost <> ttPartCost.StdBurdenCost OR
PartCost.StdLaborCost <> ttPartCost.StdLaborCost OR
PartCost.StdMaterialCost <> ttPartCost.StdMaterialCost OR
PartCost.StdSubContCost <> ttPartCost.StdSubContCost)*
:- assign PartCost.StdBurdenCost = ttPartCost.StdBurdenCost.*
- assign PartCost.StdLaborCost = ttPartCost.StdLaborCost.*
- assign PartCost.StdMaterialCost = ttPartCost.StdMaterialCost.*
- assign PartCost.StdMtlBurCost = ttPartCost.StdMtlBurCost.*
- assign PartCost.StdSubContCost = ttPartCost.StdSubContCost.*
- end.
end.
What I suspect is happening is that it's never fully committing the
original $0.20 change, so as it calls another loop it may be the new cost
or it might be the original cost.
Is there a method to force a save (instead of waiting for the loop to
complete)?
Ken Williams
Vice President, Administrative Services
Intermountain Electronics - Power, Automation, and Process Systems
Office: 435-613-4817 | Mobile: 801-918-7318
kwilliams@… | www.ie-corp.com
On Mon, Aug 24, 2015 at 10:29 AM, Jose Gomez jose@… [vantage] <
vantage@yahoogroups.com> wrote:
>
>
> Add a simple check to make sure that PartCost.StdBurdenCost <>
> ttPartCost.StdBurdenCost in your loop
>
>
> Jose C Gomez
>
>
> Software Engineer
>
> T: 904.469.1524 mobile
> E: jose@…
> http://www.josecgomez.com
> <http://www.linkedin.com/in/josecgomez>
> <http://www.facebook.com/josegomez>
> <http://www.google.com/profiles/jose.gomez>
> <http://www.twitter.com/joc85>
> <http://www.josecgomez.com/professional-resume/>
> <http://www.josecgomez.com/feed/>
>
> Quis custodiet ipsos custodes?
>
> On Mon, Aug 24, 2015 at 12:13 PM, Ken Williams
> kwilliams@… [vantage] <vantage@yahoogroups.com>
> wrote:
>
>>
>>
>> I'm trying to create a BPM that will copy the changes to a standard
>> costed part to all costID's upon creation.
>>
>> Unfortunately, regardless of attempts to be clever, I cannot figure out
>> how to do this. Each time I try to change other costID's it creates a loop
>> because it calls the same BPM again.
>>
>> Here's a very simple version of what I'm trying to do, though I've tried
>> different loop methods and variables (including company.numberxx variable
>> and global variables which it turns out are not allowed in BPMs), but given
>> this entire transaction stays open until it's saved, it always results in
>> an infinite loop.
>>
>> for each ttPartCost:
>>
>> * for each PartCost where ttPartCost.Company = PartCost.Company AND
>> ttPartCost.PartNum = PartCost.PartNum AND ttPartCost.CostID <>
>> PartCost.CostID
>> :
>> * assign PartCost.StdBurdenCost = ttPartCost.StdBurdenCost.
>> * assign PartCost.StdLaborCost = ttPartCost.StdLaborCost.
>> * assign PartCost.StdMaterialCost = ttPartCost.StdMaterialCost.
>> * assign PartCost.StdMtlBurCost = ttPartCost.StdMtlBurCost.
>> * assign PartCost.StdSubContCost = ttPartCost.StdSubContCost.
>> * end.
>>
>> end.
>>
>> I can tell it to prevent endless loops and set reenter to max = 1, but
>> this kills the transaction from ever completing successfully. If I set it
>> to 2, it loops for eternity.
>>
>> For those that may be curious, most of our inventory is FIFO and requires
>> a separate costID per plant to work properly (we want FIFO at the plant
>> level not company level). this is why we're trying to implement this code
>> for the small portion of parts that are standard costed instead of
>> switching all plants to a shared costID.
>>
>> Any suggestions would be greatly appreciated.
>>
>> Ken Williams
>> Vice President, Administrative Services
>> Intermountain Electronics - Power, Automation, and Process Systems
>> Office: 435-613-4817 | Mobile: 801-918-7318
>> kwilliams@… | www.ie-corp.com
>>
>>
>>
>
>
[Non-text portions of this message have been removed]
</div><span> <div style="color:#fff;min-height:0;"></div>
</div><span> <div style="color:#fff;min-height:0;"></div>
</div><div><div>
<div style="color:#fff;min-height:0;"></div>
</div><div><div class="ygrps-yiv-952595222h5">
<div style="color:#fff;min-height:0;"></div>