4GL Loop issue Blank Title 122004

Ted,

You could try utilizing a Boolean value that indicates if the oper. record is clean/dirty and suppress the update of the job until the operation update has been completed.

HTH,
Calvin Dekker
Office: 630-672-7688 Ext. 1484
Email: calvin@...<mailto:calvin@...>
http://www.codabears.com<http://www.codabears.com/>
[cid:image001.jpg@01CE893E.93503D10]<http://www.codabears.com/>

Solutions for Epiday living.

"No trees were harmed during the sending of this message, however a large number of electrons were terribly inconvenienced."

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of tkoch77
Sent: Thursday, July 25, 2013 1:22 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: 4GL Loop issue



It seems like I finally got this to work after taking a break for a couple weeks. I added a call to RUN Update IN hJobEntry ( {&input-output_dataset_JobEntryDataSet}). right before RUN GetNewJobOper IN hJobEntry ( {&input-output_dataset_JobEntryDataSet}, input iJobNum, input iAsmSeq).

I'm guessing there is some sort of refresh issue...

--- In vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>, Ted Koch <tkoch77@...<mailto:tkoch77@...>> wrote:
>
> I still haven't managed to figure out what is going on with this, I'm trying to get this to run so it can replace a service connect workflow. I have added a message inside the loop to assign data into the new JobOper record. It displays in the logs the correct OpCode but the operation is never added to the job. I'm not sure why it's not adding the operation, if I entered one op to be processed (OP014:Cutting|0~) nothing gets added, if I enter two ops (OP014:Cutting|0~OP012:Mill Manual|0~) the last one always gets added. Can anyone see something wrong with the .p I pasted below?
>
> {Bpm/Bpm.i &OBJECT_NAME="JobEntry"}
> {bo/JobEntry/JobEntry_ds.i}
>
> /*OP014:Cutting|0~OP012:Mill Manual|0~*/
>
> define input parameter iJobNum as character.
> define input parameter iAsmSeq as integer.
> define input parameter iSubcontract as logical.
> define input parameter iOpCode as character.
> define input parameter iOpDesc as character.
> define input parameter iAttchFldr as character.
> define input parameter iVendMtl as character.
>
> {&TRY_PRIVATE}
>
> DEFINE VARIABLE morePages AS LOGICAL.
> DEFINE VARIABLE hJobEntry AS HANDLE.
>
> RUN bo/JobEntry/JobEntry.p PERSISTENT SET hJobEntry.
>
> IF VALID-HANDLE (hJobEntry) THEN
> DO:
> IF iSubcontract THEN
> DO:
>
> END.
> ELSE
> DO:
>
> RUN GetNewJobOper IN hJobEntry ({&input-output_dataset_JobEntryDataSet}, input iJobNum, input iAsmSeq).
>
> FOR EACH ttJobOper WHERE ttJobOper.RowMod = 'A':
> ASSIGN ttJobOper.JobNum = iJobNum.
> ASSIGN ttJobOper.AssemblySeq = iAsmSeq.
> ASSIGN ttJobOper.OpCode = iOpCode.
> ASSIGN ttJobOper.OpDesc = iOpDesc.
>
> MESSAGE ttJobOper.OpDesc.
>
> END.
>
>
>
> RUN Update IN hJobEntry ({&input-output_dataset_JobEntryDataSet}).
>
> END.
> END.
> ELSE
> DO:
> message 'Could not create handle to JobEntry.p!'.
> END.
>
> DELETE OBJECT hJobEntry.
>
> {&CATCH_PRIVATE}
>
>
>
>
> ________________________________
> From: Ted Koch <tkoch77@...<mailto:tkoch77@...>>
> To: "vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>" <vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>>
> Sent: Thursday, June 20, 2013 4:08 PM
> Subject: Re: [Vantage] 4GL Loop issue
>
>
> When I add a new assembly then save, the only rowmod that is showing is U in the standard data directive. I am just going to do this via JobEntry.Update method directive, that should be the only time assemblies are being added. I really wanted to do it with a data directive since I have a bunch of BPMs already on JobEntry.Update
>
>
>
>
> ________________________________
> From: Jose Gomez <jose@...<mailto:jose@...>>
> To: Vantage <vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>>
> Sent: Thursday, June 20, 2013 2:50 PM
> Subject: Re: [Vantage] 4GL Loop issue
>
>
> Add No-ERROR to the find, also are you sure your RowMod='A? you may want to
> display your RowMod to make sure.
>
>
> *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/>
> <http://www.usdoingstuff.com>
>
> *Quis custodiet ipsos custodes?*
>
>
> On Thu, Jun 20, 2013 at 2:35 PM, Ted Koch <tkoch77@...<mailto:tkoch77@...>> wrote:
>
> > **
> >
> >
> > DEF VAR op AS CHARACTER NO-UNDO.
> > DEF VAR opCode AS CHARACTER NO-UNDO.
> > DEF VAR i AS INTEGER.
> > DEF VAR opList AS CHARACTER.
> >
> > FIND FIRST TTJOBASMBL WHERE TTJOBASMBL.RowMod = 'A'.
> > MESSAGE 'HELLO!!!!!!!!!!'.
> >
> > ASSIGN opList = RIGHT-TRIM(TTJOBASMBL.Character04, "~~").
> > REPEAT i = 1 TO NUM-ENTRIES(opList, "~~"):
> > ASSIGN op = ENTRY(i, opList, "~~").
> > ASSIGN opCode = SUBSTRING(op, 1, INDEX(op, ":") - 1).
> > MESSAGE OPCODE.
> > FIND FIRST OPMASTER WHERE OPMASTER.Company =
> > TTJOBASMBL.Company AND OPMASTER.OpCode = opCode NO-LOCK.
> > RUN bpm\TAIT\AddOpsToSubAsm.p (input
> > ttjobasmbl.JobNum, input ttjobasmbl.AssemblySeq, input
> > OPMASTER.Subcontract, input opCode, input OPMASTER.OpDesc, input
> > TTJOBASMBL.Character02, input TTJOBASMBL.Character03).
> > END.
> >
> > ________________________________
> > From: Jose Gomez <jose@...<mailto:jose@...>>
> > To: Vantage <vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>>
> > Sent: Thursday, June 20, 2013 2:24 PM
> >
> > Subject: Re: [Vantage] 4GL Loop issue
> >
> >
> > What code are you using for the search
> >
> > On Thu, Jun 20, 2013 at 2:22 PM, Ted Koch <tkoch77@...<mailto:tkoch77@...>> wrote:
> >
> > > -- ** FIND FIRST/LAST failed for table ttJobAsmbl. (565)
> > >
> > >
> >
> > *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/>
> > <http://www.usdoingstuff.com>
> >
> > *Quis custodiet ipsos custodes?*
> >
> > [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/.<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/linksYahoo! Groups Links
> >
> > [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/.<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/linksYahoo! Groups Links
>
>
>
> [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/.<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/linksYahoo! Groups Links
>
>
>
> [Non-text portions of this message have been removed]
>



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

Can someone take a look at my 4GL code and maybe they can spot what is going on, everything looks like it should work, it is just doubling operations it is adds to the assembly.

The bpm code splits up a string (/*OP014:Cutting|0~OP012:Mill Manual|0~*/) and pulls out the operation code then calls the custom .p file which creates the operations.

The results I get in the assembly are...

OP12
OP14
OP12

It is always consistent like this, it skips the first operation always, finishes the rest, then goes back and adds all the operations again. I don't see why this would loop back through and why it is skipping the first operation. A second set of eyes would be appreciated. Thanks!

Here is what is being executed via data directive:

DEF VAR op AS CHARACTER NO-UNDO.
DEF VAR opCode AS CHARACTER NO-UNDO.
DEF VAR i AS INTEGER.
DEF VAR opList AS CHARACTER.
FIND FIRST TTJOBASMBL WHERE TTJOBASMBL.RowMod = 'A'.
ASSIGN opList = RIGHT-TRIM(TTJOBASMBL.Character04, "~~").
REPEAT i = 1 TO NUM-ENTRIES(opList, "~~"):
ASSIGN op = ENTRY(i, opList, "~~").
ASSIGN opCode = SUBSTRING(op, 1, INDEX(op, ":") - 1).
FIND FIRST OPMASTER WHERE OPMASTER.Company = TTJOBASMBL.Company AND OPMASTER.OpCode = opCode NO-LOCK.
RUN bpm\Custom\AddOpsToSubAsm.p (input ttjobasmbl.JobNum, input ttjobasmbl.AssemblySeq, input OPMASTER.Subcontract, input opCode, input OPMASTER.OpDesc, input TTJOBASMBL.Character02, input TTJOBASMBL.Character03).
END.

The AddOpsToSubAsm.p file (yes I know I don't have any code if it is a subcontract operation. I'm first trying to get the in house operations to add successfully first).

{Bpm/Bpm.i &OBJECT_NAME=JobEntry}
{bo/JobEntry/JobEntry_ds.i}

define input parameter iJobNum as character.
define input parameter iAsmSeq as integer.
define input parameter iSubcontract as logical.
define input parameter iOpCode as character.
define input parameter iOpDesc as character.
define input parameter iAttchFldr as character.
define input parameter iVendMtl as character.

{&TRY_PRIVATE}
OUTPUT TO 'C:\OPTESTER1.TXT'.
DEFINE VARIABLE morePages AS LOGICAL.
DEFINE VARIABLE hJobEntry AS HANDLE.

RUN bo/JobEntry/JobEntry.p PERSISTENT SET hJobEntry.

IF VALID-HANDLE (hJobEntry) THEN
DO:
IF iSubcontract THEN
DO:

END.
ELSE
DO:
RUN GetNewJobOper IN hJobEntry ( {&input-output_dataset_JobEntryDataSet}, input iJobNum, input iAsmSeq).

FOR EACH ttJobOper WHERE ttJobOper.RowMod = 'A':
ASSIGN ttJobOper.JobNum = iJobNum
ttJobOper.AssemblySeq = iAsmSeq
ttJobOper.OpCode = iOpCode
ttJobOper.OpDesc = iOpDesc.


END.

RUN Update IN hJobEntry ( {&input-output_dataset_JobEntryDataSet}).

END.
END.
ELSE
DO:
message 'Could not create handle to JobEntry.p!'.
END.

DELETE OBJECT hJobEntry.
OUTPUT CLOSE.
{&CATCH_PRIVATE}
When is this firing? if its on JobEntry.Update then your directive could
fire more than once on every Update (which you call from your .P) Place
Message '1'.. etc in your code and see when it gets invoked again/.



On Thu, Jun 20, 2013 at 10:15 AM, tkoch77 <tkoch77@...> wrote:

> RUN Update IN hJobEntry ( {&input-output_dataset_JobEntryDataSet}).
>




*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/>
<http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*


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

It is being run in a data directive on the JobAsmbl table

Condition: when a new row is added and jobasmbl.character04 <> ""

Character04 would contain: OP014:Cutting|0~OP012:Mill Manual|0~



________________________________
From: Jose Gomez <jose@...>
To: Vantage <vantage@yahoogroups.com>
Sent: Thursday, June 20, 2013 10:22 AM
Subject: Re: [Vantage] 4GL Loop issue


When is this firing? if its on JobEntry.Update then your directive could
fire more than once on every Update (which you call from your .P) Place
Message '1'.. etc in your code and see when it gets invoked again/.



On Thu, Jun 20, 2013 at 10:15 AM, tkoch77 <tkoch77@...> wrote:

> RUN Update IN hJobEntry ( {&input-output_dataset_JobEntryDataSet}).
>




*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/>
 <http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*


[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/linksYahoo! Groups Links



[Non-text portions of this message have been removed]
Hmm do the message thinga nd see if you can find where it gets re-caled.
Is this in transaction?


*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/>
<http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*


On Thu, Jun 20, 2013 at 10:35 AM, Ted Koch <tkoch77@...> wrote:

> **
>
>
> Hi Jose,
>
> It is being run in a data directive on the JobAsmbl table
>
> Condition: when a new row is added and jobasmbl.character04 <> ""
>
> Character04 would contain: OP014:Cutting|0~OP012:Mill Manual|0~
>
> ________________________________
> From: Jose Gomez <jose@...>
> To: Vantage <vantage@yahoogroups.com>
> Sent: Thursday, June 20, 2013 10:22 AM
> Subject: Re: [Vantage] 4GL Loop issue
>
>
>
> When is this firing? if its on JobEntry.Update then your directive could
> fire more than once on every Update (which you call from your .P) Place
> Message '1'.. etc in your code and see when it gets invoked again/.
>
> On Thu, Jun 20, 2013 at 10:15 AM, tkoch77 <tkoch77@...> wrote:
>
> > RUN Update IN hJobEntry ( {&input-output_dataset_JobEntryDataSet}).
> >
>
> *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/>
> <http://www.usdoingstuff.com>
>
> *Quis custodiet ipsos custodes?*
>
> [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/linksYahoo! Groups Links
>
> [Non-text portions of this message have been removed]
>
>
>


[Non-text portions of this message have been removed]
Yes, In-Transaction.




________________________________
From: Jose Gomez <jose@...>
To: Vantage <vantage@yahoogroups.com>
Sent: Thursday, June 20, 2013 10:37 AM
Subject: Re: [Vantage] 4GL Loop issue


Hmm do the message thinga nd see if you can find where it gets re-caled.
Is this in transaction?


*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/>
 <http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*


On Thu, Jun 20, 2013 at 10:35 AM, Ted Koch <tkoch77@...> wrote:

> **
>
>
> Hi Jose,
>
> It is being run in a data directive on the JobAsmbl table
>
> Condition: when a new row is added and jobasmbl.character04 <> ""
>
> Character04 would contain: OP014:Cutting|0~OP012:Mill Manual|0~
>
> ________________________________
> From: Jose Gomez <jose@...>
> To: Vantage <vantage@yahoogroups.com>
> Sent: Thursday, June 20, 2013 10:22 AM
> Subject: Re: [Vantage] 4GL Loop issue
>
>
>
> When is this firing? if its on JobEntry.Update then your directive could
> fire more than once on every Update (which you call from your .P) Place
> Message '1'.. etc in your code and see when it gets invoked again/.
>
> On Thu, Jun 20, 2013 at 10:15 AM, tkoch77 <tkoch77@...> wrote:
>
> > RUN Update IN hJobEntry ( {&input-output_dataset_JobEntryDataSet}).
> >
>
> *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/>
>Â <http://www.usdoingstuff.com>
>
> *Quis custodiet ipsos custodes?*
>
> [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/linksYahoo! Groups Links
>
> [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/linksYahoo! Groups Links



[Non-text portions of this message have been removed]
I added a message:

DEF VAR op AS CHARACTER NO-UNDO.
DEF VAR opCode AS CHARACTER NO-UNDO.
DEF VAR i AS INTEGER.
DEF VAR opList AS CHARACTER.
FIND FIRST TTJOBASMBL WHERE TTJOBASMBL.RowMod = 'A'.
   ASSIGN opList = RIGHT-TRIM(TTJOBASMBL.Character04, "~~").
   REPEAT i = 1 TO NUM-ENTRIES(opList, "~~"):
      ASSIGN op = ENTRY(i, opList, "~~").
      ASSIGN opCode = SUBSTRING(op, 1, INDEX(op, ":") - 1).
      MESSAGE OPCODE.
         FIND FIRST OPMASTER WHERE OPMASTER.Company = TTJOBASMBL.Company AND OPMASTER.OpCode = opCode NO-LOCK.
               RUN bpm\TAIT\AddOpsToSubAsm.p (input ttjobasmbl.JobNum, input ttjobasmbl.AssemblySeq, input OPMASTER.Subcontract, input opCode, input OPMASTER.OpDesc, input TTJOBASMBL.Character02, input TTJOBASMBL.Character03).
   END.

This was the output in the appserver logs using this string for operations: OP014:Cutting|0~OP010:Mill CNC|0~OP028:Deburring|0~OP019:Spraywash 9|0~OP020:Paint 9|0~

[13/06/20@09:20:28.505-0400] P-005432 T-005716 1 AS -- (Procedure: 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP014
[13/06/20@09:20:28.627-0400] P-005432 T-005716 1 AS -- (Procedure: 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP010
[13/06/20@09:20:28.863-0400] P-005432 T-005716 1 AS -- (Procedure: 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP028
[13/06/20@09:20:29.119-0400] P-005432 T-005716 1 AS -- (Procedure: 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP019
[13/06/20@09:20:29.386-0400] P-005432 T-005716 1 AS -- (Procedure: 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP020
[13/06/20@09:20:29.686-0400] P-005432 T-005716 1 AS -- (Procedure: 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP014
[13/06/20@09:20:29.958-0400] P-005432 T-005716 1 AS -- (Procedure: 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP010
[13/06/20@09:20:30.238-0400] P-005432 T-005716 1 AS -- (Procedure: 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP028
[13/06/20@09:20:30.534-0400] P-005432 T-005716 1 AS -- (Procedure: 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP019
[13/06/20@09:20:30.801-0400] P-005432 T-005716 1 AS -- (Procedure: 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP020

Strange though as the operations that were added under the new subassembly are:

OP010
OP028
OP019
OP020
OP014
OP010
OP028
OP019
OP020




________________________________
From: Jose Gomez <jose@...>
To: Vantage <vantage@yahoogroups.com>
Sent: Thursday, June 20, 2013 10:37 AM
Subject: Re: [Vantage] 4GL Loop issue


Hmm do the message thinga nd see if you can find where it gets re-caled.
Is this in transaction?


*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/>
 <http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*


On Thu, Jun 20, 2013 at 10:35 AM, Ted Koch <tkoch77@...> wrote:

> **
>
>
> Hi Jose,
>
> It is being run in a data directive on the JobAsmbl table
>
> Condition: when a new row is added and jobasmbl.character04 <> ""
>
> Character04 would contain: OP014:Cutting|0~OP012:Mill Manual|0~
>
> ________________________________
> From: Jose Gomez <jose@...>
> To: Vantage <vantage@yahoogroups.com>
> Sent: Thursday, June 20, 2013 10:22 AM
> Subject: Re: [Vantage] 4GL Loop issue
>
>
>
> When is this firing? if its on JobEntry.Update then your directive could
> fire more than once on every Update (which you call from your .P) Place
> Message '1'.. etc in your code and see when it gets invoked again/.
>
> On Thu, Jun 20, 2013 at 10:15 AM, tkoch77 <tkoch77@...> wrote:
>
> > RUN Update IN hJobEntry ( {&input-output_dataset_JobEntryDataSet}).
> >
>
> *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/>
>Â <http://www.usdoingstuff.com>
>
> *Quis custodiet ipsos custodes?*
>
> [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/linksYahoo! Groups Links
>
> [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/linksYahoo! Groups Links



[Non-text portions of this message have been removed]
Looks like for some reason the data directive is triggered twice. I added another message outside the first loop in the code and these are the results.

[13/06/20@11:49:32.706-0400] P-005432 T-005716 1 AS -- (Procedure: 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6216) 5
[13/06/20@11:49:33.945-0400] P-005432 T-005716 1 AS -- (Procedure: 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6216) 5

DEF VAR op AS CHARACTER NO-UNDO.
DEF VAR opCode AS CHARACTER NO-UNDO.
DEF VAR i AS INTEGER.
DEF VAR opList AS CHARACTER.
FIND FIRST TTJOBASMBL WHERE TTJOBASMBL.RowMod = 'A'.
   ASSIGN opList = RIGHT-TRIM(TTJOBASMBL.Character04, "~~").
   MESSAGE STRING(NUM-ENTRIES(opList, "~~")).
   REPEAT i = 1 TO NUM-ENTRIES(opList, "~~"):
      ASSIGN op = ENTRY(i, opList, "~~").
      ASSIGN opCode = Trim(SUBSTRING(op, 1, INDEX(op, ":") - 1)).
         FIND FIRST OPMASTER WHERE OPMASTER.Company = TTJOBASMBL.Company AND OPMASTER.OpCode = opCode NO-LOCK.
               RUN bpm\TAIT\AddOpsToSubAsm.p (input ttjobasmbl.JobNum, input ttjobasmbl.AssemblySeq, input OPMASTER.Subcontract, input opCode, input OPMASTER.OpDesc, input TTJOBASMBL.Character02, input TTJOBASMBL.Character03).
   END.



________________________________
From: Ted Koch <tkoch77@...>
To: "vantage@yahoogroups.com" <vantage@yahoogroups.com>
Sent: Thursday, June 20, 2013 11:03 AM
Subject: Re: [Vantage] 4GL Loop issue


I added a message:

DEF VAR op AS CHARACTER NO-UNDO.
DEF VAR opCode AS CHARACTER NO-UNDO.
DEF VAR i AS INTEGER.
DEF VAR opList AS CHARACTER.
FIND FIRST TTJOBASMBL WHERE TTJOBASMBL.RowMod = 'A'.
   ASSIGN opList = RIGHT-TRIM(TTJOBASMBL.Character04, "~~").
   REPEAT i = 1 TO NUM-ENTRIES(opList, "~~"):
      ASSIGN op = ENTRY(i, opList, "~~").
      ASSIGN opCode = SUBSTRING(op, 1, INDEX(op, ":") - 1).
      MESSAGE OPCODE.
         FIND FIRST OPMASTER WHERE OPMASTER.Company = TTJOBASMBL.Company AND OPMASTER.OpCode = opCode NO-LOCK.
               RUN bpm\TAIT\AddOpsToSubAsm.p (input ttjobasmbl.JobNum, input ttjobasmbl.AssemblySeq, input OPMASTER.Subcontract, input opCode, input OPMASTER.OpDesc, input TTJOBASMBL.Character02, input TTJOBASMBL.Character03).
   END.

This was the output in the appserver logs using this string for operations: OP014:Cutting|0~OP010:Mill CNC|0~OP028:Deburring|0~OP019:Spraywash 9|0~OP020:Paint 9|0~

[13/06/20@09:20:28.505-0400] P-005432 T-005716 1 AS -- (Procedure: 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP014
[13/06/20@09:20:28.627-0400] P-005432 T-005716 1 AS -- (Procedure: 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP010
[13/06/20@09:20:28.863-0400] P-005432 T-005716 1 AS -- (Procedure: 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP028
[13/06/20@09:20:29.119-0400] P-005432 T-005716 1 AS -- (Procedure: 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP019
[13/06/20@09:20:29.386-0400] P-005432 T-005716 1 AS -- (Procedure: 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP020
[13/06/20@09:20:29.686-0400] P-005432 T-005716 1 AS -- (Procedure: 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP014
[13/06/20@09:20:29.958-0400] P-005432 T-005716 1 AS -- (Procedure: 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP010
[13/06/20@09:20:30.238-0400] P-005432 T-005716 1 AS -- (Procedure: 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP028
[13/06/20@09:20:30.534-0400] P-005432 T-005716 1 AS -- (Procedure: 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP019
[13/06/20@09:20:30.801-0400] P-005432 T-005716 1 AS -- (Procedure: 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP020

Strange though as the operations that were added under the new subassembly are:

OP010
OP028
OP019
OP020
OP014
OP010
OP028
OP019
OP020




________________________________
From: Jose Gomez <jose@...>
To: Vantage <vantage@yahoogroups.com>
Sent: Thursday, June 20, 2013 10:37 AM
Subject: Re: [Vantage] 4GL Loop issue


Hmm do the message thinga nd see if you can find where it gets re-caled.
Is this in transaction?


*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/>
 <http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*


On Thu, Jun 20, 2013 at 10:35 AM, Ted Koch <tkoch77@...> wrote:

> **
>
>
> Hi Jose,
>
> It is being run in a data directive on the JobAsmbl table
>
> Condition: when a new row is added and jobasmbl.character04 <> ""
>
> Character04 would contain: OP014:Cutting|0~OP012:Mill Manual|0~
>
> ________________________________
> From: Jose Gomez <jose@...>
> To: Vantage <vantage@yahoogroups.com>
> Sent: Thursday, June 20, 2013 10:22 AM
> Subject: Re: [Vantage] 4GL Loop issue
>
>
>
> When is this firing? if its on JobEntry.Update then your directive could
> fire more than once on every Update (which you call from your .P) Place
> Message '1'.. etc in your code and see when it gets invoked again/.
>
> On Thu, Jun 20, 2013 at 10:15 AM, tkoch77 <tkoch77@...> wrote:
>
> > RUN Update IN hJobEntry ( {&input-output_dataset_JobEntryDataSet}).
> >
>
> *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/>
>Â Â <http://www.usdoingstuff.com>
>
> *Quis custodiet ipsos custodes?*
>
> [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/linksYahoo! Groups Links
>
> [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/linksYahoo! Groups Links



[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/linksYahoo! Groups Links



[Non-text portions of this message have been removed]
I think cause you are calling update change it from In transaction to the
toher.


*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/>
<http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*


On Thu, Jun 20, 2013 at 11:51 AM, Ted Koch <tkoch77@...> wrote:

> **
>
>
> Looks like for some reason the data directive is triggered twice. I added
> another message outside the first loop in the code and these are the
> results.
>
> [13/06/20@11:49:32.706-0400] P-005432 T-005716 1 AS -- (Procedure:
> 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6216) 5
> [13/06/20@11:49:33.945-0400] P-005432 T-005716 1 AS -- (Procedure:
> 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6216) 5
>
>
> DEF VAR op AS CHARACTER NO-UNDO.
> DEF VAR opCode AS CHARACTER NO-UNDO.
> DEF VAR i AS INTEGER.
> DEF VAR opList AS CHARACTER.
> FIND FIRST TTJOBASMBL WHERE TTJOBASMBL.RowMod = 'A'.
> ASSIGN opList = RIGHT-TRIM(TTJOBASMBL.Character04, "~~").
> MESSAGE STRING(NUM-ENTRIES(opList, "~~")).
>
> REPEAT i = 1 TO NUM-ENTRIES(opList, "~~"):
> ASSIGN op = ENTRY(i, opList, "~~").
> ASSIGN opCode = Trim(SUBSTRING(op, 1, INDEX(op, ":") - 1)).
>
> FIND FIRST OPMASTER WHERE OPMASTER.Company =
> TTJOBASMBL.Company AND OPMASTER.OpCode = opCode NO-LOCK.
> RUN bpm\TAIT\AddOpsToSubAsm.p (input
> ttjobasmbl.JobNum, input ttjobasmbl.AssemblySeq, input
> OPMASTER.Subcontract, input opCode, input OPMASTER.OpDesc, input
> TTJOBASMBL.Character02, input TTJOBASMBL.Character03).
> END.
>
> ________________________________
> From: Ted Koch <tkoch77@...>
> To: "vantage@yahoogroups.com" <vantage@yahoogroups.com>
> Sent: Thursday, June 20, 2013 11:03 AM
> Subject: Re: [Vantage] 4GL Loop issue
>
>
> I added a message:
>
> DEF VAR op AS CHARACTER NO-UNDO.
> DEF VAR opCode AS CHARACTER NO-UNDO.
> DEF VAR i AS INTEGER.
> DEF VAR opList AS CHARACTER.
> FIND FIRST TTJOBASMBL WHERE TTJOBASMBL.RowMod = 'A'.
> ASSIGN opList = RIGHT-TRIM(TTJOBASMBL.Character04, "~~").
> REPEAT i = 1 TO NUM-ENTRIES(opList, "~~"):
> ASSIGN op = ENTRY(i, opList, "~~").
> ASSIGN opCode = SUBSTRING(op, 1, INDEX(op, ":") - 1).
> MESSAGE OPCODE.
> FIND FIRST OPMASTER WHERE OPMASTER.Company =
> TTJOBASMBL.Company AND OPMASTER.OpCode = opCode NO-LOCK.
> RUN bpm\TAIT\AddOpsToSubAsm.p (input
> ttjobasmbl.JobNum, input ttjobasmbl.AssemblySeq, input
> OPMASTER.Subcontract, input opCode, input OPMASTER.OpDesc, input
> TTJOBASMBL.Character02, input TTJOBASMBL.Character03).
> END.
>
> This was the output in the appserver logs using this string for
> operations: OP014:Cutting|0~OP010:Mill
> CNC|0~OP028:Deburring|0~OP019:Spraywash 9|0~OP020:Paint 9|0~
>
> [13/06/20@09:20:28.505-0400] P-005432 T-005716 1 AS -- (Procedure:
> 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP014
> [13/06/20@09:20:28.627-0400] P-005432 T-005716 1 AS -- (Procedure:
> 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP010
> [13/06/20@09:20:28.863-0400] P-005432 T-005716 1 AS -- (Procedure:
> 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP028
> [13/06/20@09:20:29.119-0400] P-005432 T-005716 1 AS -- (Procedure:
> 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP019
> [13/06/20@09:20:29.386-0400] P-005432 T-005716 1 AS -- (Procedure:
> 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP020
> [13/06/20@09:20:29.686-0400] P-005432 T-005716 1 AS -- (Procedure:
> 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP014
> [13/06/20@09:20:29.958-0400] P-005432 T-005716 1 AS -- (Procedure:
> 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP010
> [13/06/20@09:20:30.238-0400] P-005432 T-005716 1 AS -- (Procedure:
> 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP028
> [13/06/20@09:20:30.534-0400] P-005432 T-005716 1 AS -- (Procedure:
> 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP019
> [13/06/20@09:20:30.801-0400] P-005432 T-005716 1 AS -- (Procedure:
> 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP020
>
> Strange though as the operations that were added under the new subassembly
> are:
>
> OP010
> OP028
> OP019
> OP020
> OP014
> OP010
> OP028
> OP019
> OP020
>
> ________________________________
> From: Jose Gomez <jose@...>
> To: Vantage <vantage@yahoogroups.com>
> Sent: Thursday, June 20, 2013 10:37 AM
> Subject: Re: [Vantage] 4GL Loop issue
>
> Hmm do the message thinga nd see if you can find where it gets re-caled.
> Is this in transaction?
>
> *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/>
> <http://www.usdoingstuff.com>
>
> *Quis custodiet ipsos custodes?*
>
> On Thu, Jun 20, 2013 at 10:35 AM, Ted Koch <tkoch77@...> wrote:
>
> > **
> >
> >
> > Hi Jose,
> >
> > It is being run in a data directive on the JobAsmbl table
> >
> > Condition: when a new row is added and jobasmbl.character04 <> ""
> >
> > Character04 would contain: OP014:Cutting|0~OP012:Mill Manual|0~
> >
> > ________________________________
> > From: Jose Gomez <jose@...>
> > To: Vantage <vantage@yahoogroups.com>
> > Sent: Thursday, June 20, 2013 10:22 AM
> > Subject: Re: [Vantage] 4GL Loop issue
> >
> >
> >
> > When is this firing? if its on JobEntry.Update then your directive could
> > fire more than once on every Update (which you call from your .P) Place
> > Message '1'.. etc in your code and see when it gets invoked again/.
> >
> > On Thu, Jun 20, 2013 at 10:15 AM, tkoch77 <tkoch77@...> wrote:
> >
> > > RUN Update IN hJobEntry ( {&input-output_dataset_JobEntryDataSet}).
> > >
> >
> > *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/>
> > <http://www.usdoingstuff.com>
> >
> > *Quis custodiet ipsos custodes?*
> >
> > [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/linksYahoo! Groups Links
> >
> > [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/linksYahoo! Groups Links
>
> [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/linksYahoo! Groups Links
>
> [Non-text portions of this message have been removed]
>
>
>


[Non-text portions of this message have been removed]
I tried moving my code to a standard data directive but it did not add any operations. I think standard data directives are not meant to update the database? I'm not sure if the same applies if you call a .p which will update the database?




________________________________
From: Jose Gomez <jose@...>
To: Vantage <vantage@yahoogroups.com>
Sent: Thursday, June 20, 2013 11:54 AM
Subject: Re: [Vantage] 4GL Loop issue


I think cause you are calling update change it from In transaction to the
toher.


*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/>
 <http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*


On Thu, Jun 20, 2013 at 11:51 AM, Ted Koch <tkoch77@...> wrote:

> **
>
>
> Looks like for some reason the data directive is triggered twice. I added
> another message outside the first loop in the code and these are the
> results.
>
> [13/06/20@11:49:32.706-0400] P-005432 T-005716 1 AS -- (Procedure:
> 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6216) 5
> [13/06/20@11:49:33.945-0400] P-005432 T-005716 1 AS -- (Procedure:
> 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6216) 5
>
>
> DEF VAR op AS CHARACTER NO-UNDO.
> DEF VAR opCode AS CHARACTER NO-UNDO.
> DEF VAR i AS INTEGER.
> DEF VAR opList AS CHARACTER.
> FIND FIRST TTJOBASMBL WHERE TTJOBASMBL.RowMod = 'A'.
>Â Â ASSIGN opList = RIGHT-TRIM(TTJOBASMBL.Character04, "~~").
>Â Â MESSAGE STRING(NUM-ENTRIES(opList, "~~")).
>
>Â Â REPEAT i = 1 TO NUM-ENTRIES(opList, "~~"):
>Â Â Â Â ASSIGN op = ENTRY(i, opList, "~~").
>Â Â Â Â ASSIGN opCode = Trim(SUBSTRING(op, 1, INDEX(op, ":") - 1)).
>
>Â Â Â Â Â Â FIND FIRST OPMASTER WHERE OPMASTER.Company =
> TTJOBASMBL.Company AND OPMASTER.OpCode = opCode NO-LOCK.
>Â Â Â Â Â Â Â Â Â Â RUN bpm\TAIT\AddOpsToSubAsm.p (input
> ttjobasmbl.JobNum, input ttjobasmbl.AssemblySeq, input
> OPMASTER.Subcontract, input opCode, input OPMASTER.OpDesc, input
> TTJOBASMBL.Character02, input TTJOBASMBL.Character03).
>Â Â END.
>
> ________________________________
> From: Ted Koch <tkoch77@...>
> To: "vantage@yahoogroups.com" <vantage@yahoogroups.com>
> Sent: Thursday, June 20, 2013 11:03 AM
> Subject: Re: [Vantage] 4GL Loop issue
>
>
> I added a message:
>
> DEF VAR op AS CHARACTER NO-UNDO.
> DEF VAR opCode AS CHARACTER NO-UNDO.
> DEF VAR i AS INTEGER.
> DEF VAR opList AS CHARACTER.
> FIND FIRST TTJOBASMBL WHERE TTJOBASMBL.RowMod = 'A'.
>Â Â ASSIGN opList = RIGHT-TRIM(TTJOBASMBL.Character04, "~~").
>Â Â REPEAT i = 1 TO NUM-ENTRIES(opList, "~~"):
>Â Â Â Â ASSIGN op = ENTRY(i, opList, "~~").
>Â Â Â Â ASSIGN opCode = SUBSTRING(op, 1, INDEX(op, ":") - 1).
>Â Â Â Â MESSAGE OPCODE.
>Â Â Â Â Â Â FIND FIRST OPMASTER WHERE OPMASTER.Company =
> TTJOBASMBL.Company AND OPMASTER.OpCode = opCode NO-LOCK.
>Â Â Â Â Â Â Â Â Â Â RUN bpm\TAIT\AddOpsToSubAsm.p (input
> ttjobasmbl.JobNum, input ttjobasmbl.AssemblySeq, input
> OPMASTER.Subcontract, input opCode, input OPMASTER.OpDesc, input
> TTJOBASMBL.Character02, input TTJOBASMBL.Character03).
>Â Â END.
>
> This was the output in the appserver logs using this string for
> operations: OP014:Cutting|0~OP010:Mill
> CNC|0~OP028:Deburring|0~OP019:Spraywash 9|0~OP020:Paint 9|0~
>
> [13/06/20@09:20:28.505-0400] P-005432 T-005716 1 AS -- (Procedure:
> 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP014
> [13/06/20@09:20:28.627-0400] P-005432 T-005716 1 AS -- (Procedure:
> 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP010
> [13/06/20@09:20:28.863-0400] P-005432 T-005716 1 AS -- (Procedure:
> 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP028
> [13/06/20@09:20:29.119-0400] P-005432 T-005716 1 AS -- (Procedure:
> 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP019
> [13/06/20@09:20:29.386-0400] P-005432 T-005716 1 AS -- (Procedure:
> 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP020
> [13/06/20@09:20:29.686-0400] P-005432 T-005716 1 AS -- (Procedure:
> 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP014
> [13/06/20@09:20:29.958-0400] P-005432 T-005716 1 AS -- (Procedure:
> 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP010
> [13/06/20@09:20:30.238-0400] P-005432 T-005716 1 AS -- (Procedure:
> 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP028
> [13/06/20@09:20:30.534-0400] P-005432 T-005716 1 AS -- (Procedure:
> 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP019
> [13/06/20@09:20:30.801-0400] P-005432 T-005716 1 AS -- (Procedure:
> 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP020
>
> Strange though as the operations that were added under the new subassembly
> are:
>
> OP010
> OP028
> OP019
> OP020
> OP014
> OP010
> OP028
> OP019
> OP020
>
> ________________________________
> From: Jose Gomez <jose@...>
> To: Vantage <vantage@yahoogroups.com>
> Sent: Thursday, June 20, 2013 10:37 AM
> Subject: Re: [Vantage] 4GL Loop issue
>
> Hmm do the message thinga nd see if you can find where it gets re-caled.
> Is this in transaction?
>
> *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/>
>Â <http://www.usdoingstuff.com>
>
> *Quis custodiet ipsos custodes?*
>
> On Thu, Jun 20, 2013 at 10:35 AM, Ted Koch <tkoch77@...> wrote:
>
> > **
> >
> >
> > Hi Jose,
> >
> > It is being run in a data directive on the JobAsmbl table
> >
> > Condition: when a new row is added and jobasmbl.character04 <> ""
> >
> > Character04 would contain: OP014:Cutting|0~OP012:Mill Manual|0~
> >
> > ________________________________
> > From: Jose Gomez <jose@...>
> > To: Vantage <vantage@yahoogroups.com>
> > Sent: Thursday, June 20, 2013 10:22 AM
> > Subject: Re: [Vantage] 4GL Loop issue
> >
> >
> >
> > When is this firing? if its on JobEntry.Update then your directive could
> > fire more than once on every Update (which you call from your .P) Place
> > Message '1'.. etc in your code and see when it gets invoked again/.
> >
> > On Thu, Jun 20, 2013 at 10:15 AM, tkoch77 <tkoch77@...> wrote:
> >
> > > RUN Update IN hJobEntry ( {&input-output_dataset_JobEntryDataSet}).
> > >
> >
> > *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/>
> >Â <http://www.usdoingstuff.com>
> >
> > *Quis custodiet ipsos custodes?*
> >
> > [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/linksYahoo! Groups Links
> >
> > [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/linksYahoo! Groups Links
>
> [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/linksYahoo! Groups Links
>
> [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/linksYahoo! Groups Links



[Non-text portions of this message have been removed]
If you call a .P it should'nt matter. That's odd


*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/>
<http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*


On Thu, Jun 20, 2013 at 1:18 PM, Ted Koch <tkoch77@...> wrote:

> **
>
>
> I tried moving my code to a standard data directive but it did not add any
> operations. I think standard data directives are not meant to update the
> database? I'm not sure if the same applies if you call a .p which will
> update the database?
>
>
> ________________________________
> From: Jose Gomez <jose@...>
> To: Vantage <vantage@yahoogroups.com>
> Sent: Thursday, June 20, 2013 11:54 AM
>
> Subject: Re: [Vantage] 4GL Loop issue
>
>
> I think cause you are calling update change it from In transaction to the
> toher.
>
> *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/>
> <http://www.usdoingstuff.com>
>
> *Quis custodiet ipsos custodes?*
>
> On Thu, Jun 20, 2013 at 11:51 AM, Ted Koch <tkoch77@...> wrote:
>
> > **
>
> >
> >
> > Looks like for some reason the data directive is triggered twice. I added
> > another message outside the first loop in the code and these are the
> > results.
> >
> > [13/06/20@11:49:32.706-0400] P-005432 T-005716 1 AS -- (Procedure:
> > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6216) 5
> > [13/06/20@11:49:33.945-0400] P-005432 T-005716 1 AS -- (Procedure:
> > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6216) 5
> >
> >
> > DEF VAR op AS CHARACTER NO-UNDO.
> > DEF VAR opCode AS CHARACTER NO-UNDO.
> > DEF VAR i AS INTEGER.
> > DEF VAR opList AS CHARACTER.
> > FIND FIRST TTJOBASMBL WHERE TTJOBASMBL.RowMod = 'A'.
> > ASSIGN opList = RIGHT-TRIM(TTJOBASMBL.Character04, "~~").
> > MESSAGE STRING(NUM-ENTRIES(opList, "~~")).
> >
> > REPEAT i = 1 TO NUM-ENTRIES(opList, "~~"):
> > ASSIGN op = ENTRY(i, opList, "~~").
> > ASSIGN opCode = Trim(SUBSTRING(op, 1, INDEX(op, ":") - 1)).
> >
> > FIND FIRST OPMASTER WHERE OPMASTER.Company =
> > TTJOBASMBL.Company AND OPMASTER.OpCode = opCode NO-LOCK.
> > RUN bpm\TAIT\AddOpsToSubAsm.p (input
> > ttjobasmbl.JobNum, input ttjobasmbl.AssemblySeq, input
> > OPMASTER.Subcontract, input opCode, input OPMASTER.OpDesc, input
> > TTJOBASMBL.Character02, input TTJOBASMBL.Character03).
> > END.
> >
> > ________________________________
> > From: Ted Koch <tkoch77@...>
> > To: "vantage@yahoogroups.com" <vantage@yahoogroups.com>
> > Sent: Thursday, June 20, 2013 11:03 AM
> > Subject: Re: [Vantage] 4GL Loop issue
> >
> >
> > I added a message:
> >
> > DEF VAR op AS CHARACTER NO-UNDO.
> > DEF VAR opCode AS CHARACTER NO-UNDO.
> > DEF VAR i AS INTEGER.
> > DEF VAR opList AS CHARACTER.
> > FIND FIRST TTJOBASMBL WHERE TTJOBASMBL.RowMod = 'A'.
> > ASSIGN opList = RIGHT-TRIM(TTJOBASMBL.Character04, "~~").
> > REPEAT i = 1 TO NUM-ENTRIES(opList, "~~"):
> > ASSIGN op = ENTRY(i, opList, "~~").
> > ASSIGN opCode = SUBSTRING(op, 1, INDEX(op, ":") - 1).
> > MESSAGE OPCODE.
> > FIND FIRST OPMASTER WHERE OPMASTER.Company =
> > TTJOBASMBL.Company AND OPMASTER.OpCode = opCode NO-LOCK.
> > RUN bpm\TAIT\AddOpsToSubAsm.p (input
> > ttjobasmbl.JobNum, input ttjobasmbl.AssemblySeq, input
> > OPMASTER.Subcontract, input opCode, input OPMASTER.OpDesc, input
> > TTJOBASMBL.Character02, input TTJOBASMBL.Character03).
> > END.
> >
> > This was the output in the appserver logs using this string for
> > operations: OP014:Cutting|0~OP010:Mill
> > CNC|0~OP028:Deburring|0~OP019:Spraywash 9|0~OP020:Paint 9|0~
> >
> > [13/06/20@09:20:28.505-0400] P-005432 T-005716 1 AS -- (Procedure:
> > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP014
> > [13/06/20@09:20:28.627-0400] P-005432 T-005716 1 AS -- (Procedure:
> > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP010
> > [13/06/20@09:20:28.863-0400] P-005432 T-005716 1 AS -- (Procedure:
> > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP028
> > [13/06/20@09:20:29.119-0400] P-005432 T-005716 1 AS -- (Procedure:
> > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP019
> > [13/06/20@09:20:29.386-0400] P-005432 T-005716 1 AS -- (Procedure:
> > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP020
> > [13/06/20@09:20:29.686-0400] P-005432 T-005716 1 AS -- (Procedure:
> > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP014
> > [13/06/20@09:20:29.958-0400] P-005432 T-005716 1 AS -- (Procedure:
> > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP010
> > [13/06/20@09:20:30.238-0400] P-005432 T-005716 1 AS -- (Procedure:
> > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP028
> > [13/06/20@09:20:30.534-0400] P-005432 T-005716 1 AS -- (Procedure:
> > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP019
> > [13/06/20@09:20:30.801-0400] P-005432 T-005716 1 AS -- (Procedure:
> > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP020
> >
> > Strange though as the operations that were added under the new
> subassembly
> > are:
> >
> > OP010
> > OP028
> > OP019
> > OP020
> > OP014
> > OP010
> > OP028
> > OP019
> > OP020
> >
> > ________________________________
> > From: Jose Gomez <jose@...>
> > To: Vantage <vantage@yahoogroups.com>
> > Sent: Thursday, June 20, 2013 10:37 AM
> > Subject: Re: [Vantage] 4GL Loop issue
> >
> > Hmm do the message thinga nd see if you can find where it gets re-caled.
> > Is this in transaction?
> >
> > *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/>
> > <http://www.usdoingstuff.com>
> >
> > *Quis custodiet ipsos custodes?*
> >
> > On Thu, Jun 20, 2013 at 10:35 AM, Ted Koch <tkoch77@...> wrote:
> >
> > > **
> > >
> > >
> > > Hi Jose,
> > >
> > > It is being run in a data directive on the JobAsmbl table
> > >
> > > Condition: when a new row is added and jobasmbl.character04 <> ""
> > >
> > > Character04 would contain: OP014:Cutting|0~OP012:Mill Manual|0~
> > >
> > > ________________________________
> > > From: Jose Gomez <jose@...>
> > > To: Vantage <vantage@yahoogroups.com>
> > > Sent: Thursday, June 20, 2013 10:22 AM
> > > Subject: Re: [Vantage] 4GL Loop issue
> > >
> > >
> > >
> > > When is this firing? if its on JobEntry.Update then your directive
> could
> > > fire more than once on every Update (which you call from your .P) Place
> > > Message '1'.. etc in your code and see when it gets invoked again/.
> > >
> > > On Thu, Jun 20, 2013 at 10:15 AM, tkoch77 <tkoch77@...> wrote:
> > >
> > > > RUN Update IN hJobEntry ( {&input-output_dataset_JobEntryDataSet}).
> > > >
> > >
> > > *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/>
> > > <http://www.usdoingstuff.com>
> > >
> > > *Quis custodiet ipsos custodes?*
> > >
> > > [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/linksYahoo! Groups Links
> > >
> > > [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/linksYahoo! Groups Links
> >
> > [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/linksYahoo! Groups Links
> >
> > [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/linksYahoo! Groups Links
>
> [Non-text portions of this message have been removed]
>
>
>


[Non-text portions of this message have been removed]
I copied exactly what I posted earlier to the standard data directive but then no ops are added, strange indeed. I'll keep playing with it to see where I can get.




________________________________
From: Jose Gomez <jose@...>
To: Vantage <vantage@yahoogroups.com>
Sent: Thursday, June 20, 2013 1:20 PM
Subject: Re: [Vantage] 4GL Loop issue


If you call a .P it should'nt matter. That's odd


*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/>
 <http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*


On Thu, Jun 20, 2013 at 1:18 PM, Ted Koch <tkoch77@...> wrote:

> **
>
>
> I tried moving my code to a standard data directive but it did not add any
> operations. I think standard data directives are not meant to update the
> database? I'm not sure if the same applies if you call a .p which will
> update the database?
>
>
> ________________________________
> From: Jose Gomez <jose@...>
> To: Vantage <vantage@yahoogroups.com>
> Sent: Thursday, June 20, 2013 11:54 AM
>
> Subject: Re: [Vantage] 4GL Loop issue
>
>
> I think cause you are calling update change it from In transaction to the
> toher.
>
> *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/>
>Â <http://www.usdoingstuff.com>
>
> *Quis custodiet ipsos custodes?*
>
> On Thu, Jun 20, 2013 at 11:51 AM, Ted Koch <tkoch77@...> wrote:
>
> > **
>
> >
> >
> > Looks like for some reason the data directive is triggered twice. I added
> > another message outside the first loop in the code and these are the
> > results.
> >
> > [13/06/20@11:49:32.706-0400] P-005432 T-005716 1 AS -- (Procedure:
> > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6216) 5
> > [13/06/20@11:49:33.945-0400] P-005432 T-005716 1 AS -- (Procedure:
> > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6216) 5
> >
> >
> > DEF VAR op AS CHARACTER NO-UNDO.
> > DEF VAR opCode AS CHARACTER NO-UNDO.
> > DEF VAR i AS INTEGER.
> > DEF VAR opList AS CHARACTER.
> > FIND FIRST TTJOBASMBL WHERE TTJOBASMBL.RowMod = 'A'.
> >Â Â ASSIGN opList = RIGHT-TRIM(TTJOBASMBL.Character04, "~~").
> >Â Â MESSAGE STRING(NUM-ENTRIES(opList, "~~")).
> >
> >Â Â REPEAT i = 1 TO NUM-ENTRIES(opList, "~~"):
> >Â Â Â Â ASSIGN op = ENTRY(i, opList, "~~").
> >Â Â Â Â ASSIGN opCode = Trim(SUBSTRING(op, 1, INDEX(op, ":") - 1)).
> >
> >Â Â Â Â Â Â FIND FIRST OPMASTER WHERE OPMASTER.Company =
> > TTJOBASMBL.Company AND OPMASTER.OpCode = opCode NO-LOCK.
> >Â Â Â Â Â Â Â Â Â Â RUN bpm\TAIT\AddOpsToSubAsm.p (input
> > ttjobasmbl.JobNum, input ttjobasmbl.AssemblySeq, input
> > OPMASTER.Subcontract, input opCode, input OPMASTER.OpDesc, input
> > TTJOBASMBL.Character02, input TTJOBASMBL.Character03).
> >Â Â END.
> >
> > ________________________________
> > From: Ted Koch <tkoch77@...>
> > To: "vantage@yahoogroups.com" <vantage@yahoogroups.com>
> > Sent: Thursday, June 20, 2013 11:03 AM
> > Subject: Re: [Vantage] 4GL Loop issue
> >
> >
> > I added a message:
> >
> > DEF VAR op AS CHARACTER NO-UNDO.
> > DEF VAR opCode AS CHARACTER NO-UNDO.
> > DEF VAR i AS INTEGER.
> > DEF VAR opList AS CHARACTER.
> > FIND FIRST TTJOBASMBL WHERE TTJOBASMBL.RowMod = 'A'.
> >Â Â ASSIGN opList = RIGHT-TRIM(TTJOBASMBL.Character04, "~~").
> >Â Â REPEAT i = 1 TO NUM-ENTRIES(opList, "~~"):
> >Â Â Â Â ASSIGN op = ENTRY(i, opList, "~~").
> >Â Â Â Â ASSIGN opCode = SUBSTRING(op, 1, INDEX(op, ":") - 1).
> >Â Â Â Â MESSAGE OPCODE.
> >Â Â Â Â Â Â FIND FIRST OPMASTER WHERE OPMASTER.Company =
> > TTJOBASMBL.Company AND OPMASTER.OpCode = opCode NO-LOCK.
> >Â Â Â Â Â Â Â Â Â Â RUN bpm\TAIT\AddOpsToSubAsm.p (input
> > ttjobasmbl.JobNum, input ttjobasmbl.AssemblySeq, input
> > OPMASTER.Subcontract, input opCode, input OPMASTER.OpDesc, input
> > TTJOBASMBL.Character02, input TTJOBASMBL.Character03).
> >Â Â END.
> >
> > This was the output in the appserver logs using this string for
> > operations: OP014:Cutting|0~OP010:Mill
> > CNC|0~OP028:Deburring|0~OP019:Spraywash 9|0~OP020:Paint 9|0~
> >
> > [13/06/20@09:20:28.505-0400] P-005432 T-005716 1 AS -- (Procedure:
> > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP014
> > [13/06/20@09:20:28.627-0400] P-005432 T-005716 1 AS -- (Procedure:
> > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP010
> > [13/06/20@09:20:28.863-0400] P-005432 T-005716 1 AS -- (Procedure:
> > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP028
> > [13/06/20@09:20:29.119-0400] P-005432 T-005716 1 AS -- (Procedure:
> > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP019
> > [13/06/20@09:20:29.386-0400] P-005432 T-005716 1 AS -- (Procedure:
> > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP020
> > [13/06/20@09:20:29.686-0400] P-005432 T-005716 1 AS -- (Procedure:
> > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP014
> > [13/06/20@09:20:29.958-0400] P-005432 T-005716 1 AS -- (Procedure:
> > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP010
> > [13/06/20@09:20:30.238-0400] P-005432 T-005716 1 AS -- (Procedure:
> > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP028
> > [13/06/20@09:20:30.534-0400] P-005432 T-005716 1 AS -- (Procedure:
> > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP019
> > [13/06/20@09:20:30.801-0400] P-005432 T-005716 1 AS -- (Procedure:
> > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP020
> >
> > Strange though as the operations that were added under the new
> subassembly
> > are:
> >
> > OP010
> > OP028
> > OP019
> > OP020
> > OP014
> > OP010
> > OP028
> > OP019
> > OP020
> >
> > ________________________________
> > From: Jose Gomez <jose@...>
> > To: Vantage <vantage@yahoogroups.com>
> > Sent: Thursday, June 20, 2013 10:37 AM
> > Subject: Re: [Vantage] 4GL Loop issue
> >
> > Hmm do the message thinga nd see if you can find where it gets re-caled.
> > Is this in transaction?
> >
> > *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/>
> >Â <http://www.usdoingstuff.com>
> >
> > *Quis custodiet ipsos custodes?*
> >
> > On Thu, Jun 20, 2013 at 10:35 AM, Ted Koch <tkoch77@...> wrote:
> >
> > > **
> > >
> > >
> > > Hi Jose,
> > >
> > > It is being run in a data directive on the JobAsmbl table
> > >
> > > Condition: when a new row is added and jobasmbl.character04 <> ""
> > >
> > > Character04 would contain: OP014:Cutting|0~OP012:Mill Manual|0~
> > >
> > > ________________________________
> > > From: Jose Gomez <jose@...>
> > > To: Vantage <vantage@yahoogroups.com>
> > > Sent: Thursday, June 20, 2013 10:22 AM
> > > Subject: Re: [Vantage] 4GL Loop issue
> > >
> > >
> > >
> > > When is this firing? if its on JobEntry.Update then your directive
> could
> > > fire more than once on every Update (which you call from your .P) Place
> > > Message '1'.. etc in your code and see when it gets invoked again/.
> > >
> > > On Thu, Jun 20, 2013 at 10:15 AM, tkoch77 <tkoch77@...> wrote:
> > >
> > > > RUN Update IN hJobEntry ( {&input-output_dataset_JobEntryDataSet}).
> > > >
> > >
> > > *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/>
> > >Â <http://www.usdoingstuff.com>
> > >
> > > *Quis custodiet ipsos custodes?*
> > >
> > > [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/linksYahoo! Groups Links
> > >
> > > [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/linksYahoo! Groups Links
> >
> > [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/linksYahoo! Groups Links
> >
> > [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/linksYahoo! Groups Links
>
> [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/linksYahoo! Groups Links



[Non-text portions of this message have been removed]
It appears like the condition is not working if I set it to "there is at least one added row in the ttJobAsmbl table". I added a send email action but this only sends me an email if there is no condition.




________________________________
From: Ted Koch <tkoch77@...>
To: "vantage@yahoogroups.com" <vantage@yahoogroups.com>
Sent: Thursday, June 20, 2013 1:31 PM
Subject: Re: [Vantage] 4GL Loop issue


I copied exactly what I posted earlier to the standard data directive but then no ops are added, strange indeed. I'll keep playing with it to see where I can get.




________________________________
From: Jose Gomez <jose@...>
To: Vantage <vantage@yahoogroups.com>
Sent: Thursday, June 20, 2013 1:20 PM
Subject: Re: [Vantage] 4GL Loop issue


If you call a .P it should'nt matter. That's odd


*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/>
 <http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*


On Thu, Jun 20, 2013 at 1:18 PM, Ted Koch <tkoch77@...> wrote:

> **
>
>
> I tried moving my code to a standard data directive but it did not add any
> operations. I think standard data directives are not meant to update the
> database? I'm not sure if the same applies if you call a .p which will
> update the database?
>
>
> ________________________________
> From: Jose Gomez <jose@...>
> To: Vantage <vantage@yahoogroups.com>
> Sent: Thursday, June 20, 2013 11:54 AM
>
> Subject: Re: [Vantage] 4GL Loop issue
>
>
> I think cause you are calling update change it from In transaction to the
> toher.
>
> *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/>
>Â Â <http://www.usdoingstuff.com>
>
> *Quis custodiet ipsos custodes?*
>
> On Thu, Jun 20, 2013 at 11:51 AM, Ted Koch <tkoch77@...> wrote:
>
> > **
>
> >
> >
> > Looks like for some reason the data directive is triggered twice. I added
> > another message outside the first loop in the code and these are the
> > results.
> >
> > [13/06/20@11:49:32.706-0400] P-005432 T-005716 1 AS -- (Procedure:
> > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6216) 5
> > [13/06/20@11:49:33.945-0400] P-005432 T-005716 1 AS -- (Procedure:
> > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6216) 5
> >
> >
> > DEF VAR op AS CHARACTER NO-UNDO.
> > DEF VAR opCode AS CHARACTER NO-UNDO.
> > DEF VAR i AS INTEGER.
> > DEF VAR opList AS CHARACTER.
> > FIND FIRST TTJOBASMBL WHERE TTJOBASMBL.RowMod = 'A'.
> >Â Â ASSIGN opList = RIGHT-TRIM(TTJOBASMBL.Character04, "~~").
> >Â Â MESSAGE STRING(NUM-ENTRIES(opList, "~~")).
> >
> >Â Â REPEAT i = 1 TO NUM-ENTRIES(opList, "~~"):
> >Â Â Â Â ASSIGN op = ENTRY(i, opList, "~~").
> >Â Â Â Â ASSIGN opCode = Trim(SUBSTRING(op, 1, INDEX(op, ":") - 1)).
> >
> >Â Â Â Â Â Â FIND FIRST OPMASTER WHERE OPMASTER.Company =
> > TTJOBASMBL.Company AND OPMASTER.OpCode = opCode NO-LOCK.
> >Â Â Â Â Â Â Â Â Â Â RUN bpm\TAIT\AddOpsToSubAsm.p (input
> > ttjobasmbl.JobNum, input ttjobasmbl.AssemblySeq, input
> > OPMASTER.Subcontract, input opCode, input OPMASTER.OpDesc, input
> > TTJOBASMBL.Character02, input TTJOBASMBL.Character03).
> >Â Â END.
> >
> > ________________________________
> > From: Ted Koch <tkoch77@...>
> > To: "vantage@yahoogroups.com" <vantage@yahoogroups.com>
> > Sent: Thursday, June 20, 2013 11:03 AM
> > Subject: Re: [Vantage] 4GL Loop issue
> >
> >
> > I added a message:
> >
> > DEF VAR op AS CHARACTER NO-UNDO.
> > DEF VAR opCode AS CHARACTER NO-UNDO.
> > DEF VAR i AS INTEGER.
> > DEF VAR opList AS CHARACTER.
> > FIND FIRST TTJOBASMBL WHERE TTJOBASMBL.RowMod = 'A'.
> >Â Â ASSIGN opList = RIGHT-TRIM(TTJOBASMBL.Character04, "~~").
> >Â Â REPEAT i = 1 TO NUM-ENTRIES(opList, "~~"):
> >Â Â Â Â ASSIGN op = ENTRY(i, opList, "~~").
> >Â Â Â Â ASSIGN opCode = SUBSTRING(op, 1, INDEX(op, ":") - 1).
> >Â Â Â Â MESSAGE OPCODE.
> >Â Â Â Â Â Â FIND FIRST OPMASTER WHERE OPMASTER.Company =
> > TTJOBASMBL.Company AND OPMASTER.OpCode = opCode NO-LOCK.
> >Â Â Â Â Â Â Â Â Â Â RUN bpm\TAIT\AddOpsToSubAsm.p (input
> > ttjobasmbl.JobNum, input ttjobasmbl.AssemblySeq, input
> > OPMASTER.Subcontract, input opCode, input OPMASTER.OpDesc, input
> > TTJOBASMBL.Character02, input TTJOBASMBL.Character03).
> >Â Â END.
> >
> > This was the output in the appserver logs using this string for
> > operations: OP014:Cutting|0~OP010:Mill
> > CNC|0~OP028:Deburring|0~OP019:Spraywash 9|0~OP020:Paint 9|0~
> >
> > [13/06/20@09:20:28.505-0400] P-005432 T-005716 1 AS -- (Procedure:
> > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP014
> > [13/06/20@09:20:28.627-0400] P-005432 T-005716 1 AS -- (Procedure:
> > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP010
> > [13/06/20@09:20:28.863-0400] P-005432 T-005716 1 AS -- (Procedure:
> > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP028
> > [13/06/20@09:20:29.119-0400] P-005432 T-005716 1 AS -- (Procedure:
> > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP019
> > [13/06/20@09:20:29.386-0400] P-005432 T-005716 1 AS -- (Procedure:
> > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP020
> > [13/06/20@09:20:29.686-0400] P-005432 T-005716 1 AS -- (Procedure:
> > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP014
> > [13/06/20@09:20:29.958-0400] P-005432 T-005716 1 AS -- (Procedure:
> > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP010
> > [13/06/20@09:20:30.238-0400] P-005432 T-005716 1 AS -- (Procedure:
> > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP028
> > [13/06/20@09:20:30.534-0400] P-005432 T-005716 1 AS -- (Procedure:
> > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP019
> > [13/06/20@09:20:30.801-0400] P-005432 T-005716 1 AS -- (Procedure:
> > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP020
> >
> > Strange though as the operations that were added under the new
> subassembly
> > are:
> >
> > OP010
> > OP028
> > OP019
> > OP020
> > OP014
> > OP010
> > OP028
> > OP019
> > OP020
> >
> > ________________________________
> > From: Jose Gomez <jose@...>
> > To: Vantage <vantage@yahoogroups.com>
> > Sent: Thursday, June 20, 2013 10:37 AM
> > Subject: Re: [Vantage] 4GL Loop issue
> >
> > Hmm do the message thinga nd see if you can find where it gets re-caled.
> > Is this in transaction?
> >
> > *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/>
> >Â <http://www.usdoingstuff.com>
> >
> > *Quis custodiet ipsos custodes?*
> >
> > On Thu, Jun 20, 2013 at 10:35 AM, Ted Koch <tkoch77@...> wrote:
> >
> > > **
> > >
> > >
> > > Hi Jose,
> > >
> > > It is being run in a data directive on the JobAsmbl table
> > >
> > > Condition: when a new row is added and jobasmbl.character04 <> ""
> > >
> > > Character04 would contain: OP014:Cutting|0~OP012:Mill Manual|0~
> > >
> > > ________________________________
> > > From: Jose Gomez <jose@...>
> > > To: Vantage <vantage@yahoogroups.com>
> > > Sent: Thursday, June 20, 2013 10:22 AM
> > > Subject: Re: [Vantage] 4GL Loop issue
> > >
> > >
> > >
> > > When is this firing? if its on JobEntry.Update then your directive
> could
> > > fire more than once on every Update (which you call from your .P) Place
> > > Message '1'.. etc in your code and see when it gets invoked again/.
> > >
> > > On Thu, Jun 20, 2013 at 10:15 AM, tkoch77 <tkoch77@...> wrote:
> > >
> > > > RUN Update IN hJobEntry ( {&input-output_dataset_JobEntryDataSet}).
> > > >
> > >
> > > *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/>
> > >Â <http://www.usdoingstuff.com>
> > >
> > > *Quis custodiet ipsos custodes?*
> > >
> > > [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/linksYahoo! Groups Links
> > >
> > > [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/linksYahoo! Groups Links
> >
> > [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/linksYahoo! Groups Links
> >
> > [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/linksYahoo! Groups Links
>
> [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/linksYahoo! Groups Links



[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/linksYahoo! Groups Links



[Non-text portions of this message have been removed]
Odd maybe cgheck for the condition in the 4GL code?


*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/>
<http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*


On Thu, Jun 20, 2013 at 1:51 PM, Ted Koch <tkoch77@...> wrote:

> **
>
>
> It appears like the condition is not working if I set it to "there is at
> least one added row in the ttJobAsmbl table". I added a send email action
> but this only sends me an email if there is no condition.
>
> ________________________________
> From: Ted Koch <tkoch77@...>
> To: "vantage@yahoogroups.com" <vantage@yahoogroups.com>
> Sent: Thursday, June 20, 2013 1:31 PM
>
> Subject: Re: [Vantage] 4GL Loop issue
>
>
> I copied exactly what I posted earlier to the standard data directive but
> then no ops are added, strange indeed. I'll keep playing with it to see
> where I can get.
>
> ________________________________
> From: Jose Gomez <jose@...>
> To: Vantage <vantage@yahoogroups.com>
> Sent: Thursday, June 20, 2013 1:20 PM
> Subject: Re: [Vantage] 4GL Loop issue
>
> If you call a .P it should'nt matter. That's odd
>
> *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/>
> <http://www.usdoingstuff.com>
>
> *Quis custodiet ipsos custodes?*
>
> On Thu, Jun 20, 2013 at 1:18 PM, Ted Koch <tkoch77@...> wrote:
>
> > **
> >
> >
> > I tried moving my code to a standard data directive but it did not add
> any
> > operations. I think standard data directives are not meant to update the
> > database? I'm not sure if the same applies if you call a .p which will
> > update the database?
> >
> >
> > ________________________________
> > From: Jose Gomez <jose@...>
> > To: Vantage <vantage@yahoogroups.com>
> > Sent: Thursday, June 20, 2013 11:54 AM
> >
> > Subject: Re: [Vantage] 4GL Loop issue
> >
> >
> > I think cause you are calling update change it from In transaction to the
> > toher.
> >
> > *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/>
> > <http://www.usdoingstuff.com>
> >
> > *Quis custodiet ipsos custodes?*
> >
> > On Thu, Jun 20, 2013 at 11:51 AM, Ted Koch <tkoch77@...> wrote:
> >
> > > **
> >
> > >
> > >
> > > Looks like for some reason the data directive is triggered twice. I
> added
> > > another message outside the first loop in the code and these are the
> > > results.
> > >
> > > [13/06/20@11:49:32.706-0400] P-005432 T-005716 1 AS -- (Procedure:
> > > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6216) 5
> > > [13/06/20@11:49:33.945-0400] P-005432 T-005716 1 AS -- (Procedure:
> > > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6216) 5
> > >
> > >
> > > DEF VAR op AS CHARACTER NO-UNDO.
> > > DEF VAR opCode AS CHARACTER NO-UNDO.
> > > DEF VAR i AS INTEGER.
> > > DEF VAR opList AS CHARACTER.
> > > FIND FIRST TTJOBASMBL WHERE TTJOBASMBL.RowMod = 'A'.
> > > ASSIGN opList = RIGHT-TRIM(TTJOBASMBL.Character04, "~~").
> > > MESSAGE STRING(NUM-ENTRIES(opList, "~~")).
> > >
> > > REPEAT i = 1 TO NUM-ENTRIES(opList, "~~"):
> > > ASSIGN op = ENTRY(i, opList, "~~").
> > > ASSIGN opCode = Trim(SUBSTRING(op, 1, INDEX(op, ":") - 1)).
> > >
> > > FIND FIRST OPMASTER WHERE OPMASTER.Company =
> > > TTJOBASMBL.Company AND OPMASTER.OpCode = opCode NO-LOCK.
> > > RUN bpm\TAIT\AddOpsToSubAsm.p (input
> > > ttjobasmbl.JobNum, input ttjobasmbl.AssemblySeq, input
> > > OPMASTER.Subcontract, input opCode, input OPMASTER.OpDesc, input
> > > TTJOBASMBL.Character02, input TTJOBASMBL.Character03).
> > > END.
> > >
> > > ________________________________
> > > From: Ted Koch <tkoch77@...>
> > > To: "vantage@yahoogroups.com" <vantage@yahoogroups.com>
> > > Sent: Thursday, June 20, 2013 11:03 AM
> > > Subject: Re: [Vantage] 4GL Loop issue
> > >
> > >
> > > I added a message:
> > >
> > > DEF VAR op AS CHARACTER NO-UNDO.
> > > DEF VAR opCode AS CHARACTER NO-UNDO.
> > > DEF VAR i AS INTEGER.
> > > DEF VAR opList AS CHARACTER.
> > > FIND FIRST TTJOBASMBL WHERE TTJOBASMBL.RowMod = 'A'.
> > > ASSIGN opList = RIGHT-TRIM(TTJOBASMBL.Character04, "~~").
> > > REPEAT i = 1 TO NUM-ENTRIES(opList, "~~"):
> > > ASSIGN op = ENTRY(i, opList, "~~").
> > > ASSIGN opCode = SUBSTRING(op, 1, INDEX(op, ":") - 1).
> > > MESSAGE OPCODE.
> > > FIND FIRST OPMASTER WHERE OPMASTER.Company =
> > > TTJOBASMBL.Company AND OPMASTER.OpCode = opCode NO-LOCK.
> > > RUN bpm\TAIT\AddOpsToSubAsm.p (input
> > > ttjobasmbl.JobNum, input ttjobasmbl.AssemblySeq, input
> > > OPMASTER.Subcontract, input opCode, input OPMASTER.OpDesc, input
> > > TTJOBASMBL.Character02, input TTJOBASMBL.Character03).
> > > END.
> > >
> > > This was the output in the appserver logs using this string for
> > > operations: OP014:Cutting|0~OP010:Mill
> > > CNC|0~OP028:Deburring|0~OP019:Spraywash 9|0~OP020:Paint 9|0~
> > >
> > > [13/06/20@09:20:28.505-0400] P-005432 T-005716 1 AS -- (Procedure:
> > > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP014
> > > [13/06/20@09:20:28.627-0400] P-005432 T-005716 1 AS -- (Procedure:
> > > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP010
> > > [13/06/20@09:20:28.863-0400] P-005432 T-005716 1 AS -- (Procedure:
> > > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP028
> > > [13/06/20@09:20:29.119-0400] P-005432 T-005716 1 AS -- (Procedure:
> > > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP019
> > > [13/06/20@09:20:29.386-0400] P-005432 T-005716 1 AS -- (Procedure:
> > > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP020
> > > [13/06/20@09:20:29.686-0400] P-005432 T-005716 1 AS -- (Procedure:
> > > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP014
> > > [13/06/20@09:20:29.958-0400] P-005432 T-005716 1 AS -- (Procedure:
> > > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP010
> > > [13/06/20@09:20:30.238-0400] P-005432 T-005716 1 AS -- (Procedure:
> > > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP028
> > > [13/06/20@09:20:30.534-0400] P-005432 T-005716 1 AS -- (Procedure:
> > > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP019
> > > [13/06/20@09:20:30.801-0400] P-005432 T-005716 1 AS -- (Procedure:
> > > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP020
> > >
> > > Strange though as the operations that were added under the new
> > subassembly
> > > are:
> > >
> > > OP010
> > > OP028
> > > OP019
> > > OP020
> > > OP014
> > > OP010
> > > OP028
> > > OP019
> > > OP020
> > >
> > > ________________________________
> > > From: Jose Gomez <jose@...>
> > > To: Vantage <vantage@yahoogroups.com>
> > > Sent: Thursday, June 20, 2013 10:37 AM
> > > Subject: Re: [Vantage] 4GL Loop issue
> > >
> > > Hmm do the message thinga nd see if you can find where it gets
> re-caled.
> > > Is this in transaction?
> > >
> > > *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/>
> > > <http://www.usdoingstuff.com>
> > >
> > > *Quis custodiet ipsos custodes?*
> > >
> > > On Thu, Jun 20, 2013 at 10:35 AM, Ted Koch <tkoch77@...> wrote:
> > >
> > > > **
> > > >
> > > >
> > > > Hi Jose,
> > > >
> > > > It is being run in a data directive on the JobAsmbl table
> > > >
> > > > Condition: when a new row is added and jobasmbl.character04 <> ""
> > > >
> > > > Character04 would contain: OP014:Cutting|0~OP012:Mill Manual|0~
> > > >
> > > > ________________________________
> > > > From: Jose Gomez <jose@...>
> > > > To: Vantage <vantage@yahoogroups.com>
> > > > Sent: Thursday, June 20, 2013 10:22 AM
> > > > Subject: Re: [Vantage] 4GL Loop issue
> > > >
> > > >
> > > >
> > > > When is this firing? if its on JobEntry.Update then your directive
> > could
> > > > fire more than once on every Update (which you call from your .P)
> Place
> > > > Message '1'.. etc in your code and see when it gets invoked again/.
> > > >
> > > > On Thu, Jun 20, 2013 at 10:15 AM, tkoch77 <tkoch77@...> wrote:
> > > >
> > > > > RUN Update IN hJobEntry ( {&input-output_dataset_JobEntryDataSet}).
> > > > >
> > > >
> > > > *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/>
> > > > <http://www.usdoingstuff.com>
> > > >
> > > > *Quis custodiet ipsos custodes?*
> > > >
> > > > [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/linksYahoo! Groups Links
> > > >
> > > > [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/linksYahoo! Groups Links
> > >
> > > [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/linksYahoo! Groups Links
> > >
> > > [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/linksYahoo! Groups Links
> >
> > [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/linksYahoo! Groups Links
>
> [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/linksYahoo! Groups Links
>
> [Non-text portions of this message have been removed]
>
>
>


[Non-text portions of this message have been removed]
I tried that however I got an error in the AppServer log...

[13/06/20@14:19:54.752-0400] P-003040 T-006292 1 AS -- ** FIND FIRST/LAST failed for table ttJobAsmbl. (565)




________________________________
From: Jose Gomez <jose@...>
To: Vantage <vantage@yahoogroups.com>
Sent: Thursday, June 20, 2013 1:58 PM
Subject: Re: [Vantage] 4GL Loop issue


Odd maybe cgheck for the condition in the 4GL code?


*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/>
 <http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*


On Thu, Jun 20, 2013 at 1:51 PM, Ted Koch <tkoch77@...> wrote:

> **
>
>
> It appears like the condition is not working if I set it to "there is at
> least one added row in the ttJobAsmbl table". I added a send email action
> but this only sends me an email if there is no condition.
>
> ________________________________
> From: Ted Koch <tkoch77@...>
> To: "vantage@yahoogroups.com" <vantage@yahoogroups.com>
> Sent: Thursday, June 20, 2013 1:31 PM
>
> Subject: Re: [Vantage] 4GL Loop issue
>
>
> I copied exactly what I posted earlier to the standard data directive but
> then no ops are added, strange indeed. I'll keep playing with it to see
> where I can get.
>
> ________________________________
> From: Jose Gomez <jose@...>
> To: Vantage <vantage@yahoogroups.com>
> Sent: Thursday, June 20, 2013 1:20 PM
> Subject: Re: [Vantage] 4GL Loop issue
>
> If you call a .P it should'nt matter. That's odd
>
> *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/>
>Â <http://www.usdoingstuff.com>
>
> *Quis custodiet ipsos custodes?*
>
> On Thu, Jun 20, 2013 at 1:18 PM, Ted Koch <tkoch77@...> wrote:
>
> > **
> >
> >
> > I tried moving my code to a standard data directive but it did not add
> any
> > operations. I think standard data directives are not meant to update the
> > database? I'm not sure if the same applies if you call a .p which will
> > update the database?
> >
> >
> > ________________________________
> > From: Jose Gomez <jose@...>
> > To: Vantage <vantage@yahoogroups.com>
> > Sent: Thursday, June 20, 2013 11:54 AM
> >
> > Subject: Re: [Vantage] 4GL Loop issue
> >
> >
> > I think cause you are calling update change it from In transaction to the
> > toher.
> >
> > *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/>
> >Â <http://www.usdoingstuff.com>
> >
> > *Quis custodiet ipsos custodes?*
> >
> > On Thu, Jun 20, 2013 at 11:51 AM, Ted Koch <tkoch77@...> wrote:
> >
> > > **
> >
> > >
> > >
> > > Looks like for some reason the data directive is triggered twice. I
> added
> > > another message outside the first loop in the code and these are the
> > > results.
> > >
> > > [13/06/20@11:49:32.706-0400] P-005432 T-005716 1 AS -- (Procedure:
> > > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6216) 5
> > > [13/06/20@11:49:33.945-0400] P-005432 T-005716 1 AS -- (Procedure:
> > > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6216) 5
> > >
> > >
> > > DEF VAR op AS CHARACTER NO-UNDO.
> > > DEF VAR opCode AS CHARACTER NO-UNDO.
> > > DEF VAR i AS INTEGER.
> > > DEF VAR opList AS CHARACTER.
> > > FIND FIRST TTJOBASMBL WHERE TTJOBASMBL.RowMod = 'A'.
> > >Â Â ASSIGN opList = RIGHT-TRIM(TTJOBASMBL.Character04, "~~").
> > >Â Â MESSAGE STRING(NUM-ENTRIES(opList, "~~")).
> > >
> > >Â Â REPEAT i = 1 TO NUM-ENTRIES(opList, "~~"):
> > >Â Â Â Â ASSIGN op = ENTRY(i, opList, "~~").
> > >Â Â Â Â ASSIGN opCode = Trim(SUBSTRING(op, 1, INDEX(op, ":") - 1)).
> > >
> > >Â Â Â Â Â Â FIND FIRST OPMASTER WHERE OPMASTER.Company =
> > > TTJOBASMBL.Company AND OPMASTER.OpCode = opCode NO-LOCK.
> > >Â Â Â Â Â Â Â Â Â Â RUN bpm\TAIT\AddOpsToSubAsm.p (input
> > > ttjobasmbl.JobNum, input ttjobasmbl.AssemblySeq, input
> > > OPMASTER.Subcontract, input opCode, input OPMASTER.OpDesc, input
> > > TTJOBASMBL.Character02, input TTJOBASMBL.Character03).
> > >Â Â END.
> > >
> > > ________________________________
> > > From: Ted Koch <tkoch77@...>
> > > To: "vantage@yahoogroups.com" <vantage@yahoogroups.com>
> > > Sent: Thursday, June 20, 2013 11:03 AM
> > > Subject: Re: [Vantage] 4GL Loop issue
> > >
> > >
> > > I added a message:
> > >
> > > DEF VAR op AS CHARACTER NO-UNDO.
> > > DEF VAR opCode AS CHARACTER NO-UNDO.
> > > DEF VAR i AS INTEGER.
> > > DEF VAR opList AS CHARACTER.
> > > FIND FIRST TTJOBASMBL WHERE TTJOBASMBL.RowMod = 'A'.
> > >Â Â ASSIGN opList = RIGHT-TRIM(TTJOBASMBL.Character04, "~~").
> > >Â Â REPEAT i = 1 TO NUM-ENTRIES(opList, "~~"):
> > >Â Â Â Â ASSIGN op = ENTRY(i, opList, "~~").
> > >Â Â Â Â ASSIGN opCode = SUBSTRING(op, 1, INDEX(op, ":") - 1).
> > >Â Â Â Â MESSAGE OPCODE.
> > >Â Â Â Â Â Â FIND FIRST OPMASTER WHERE OPMASTER.Company =
> > > TTJOBASMBL.Company AND OPMASTER.OpCode = opCode NO-LOCK.
> > >Â Â Â Â Â Â Â Â Â Â RUN bpm\TAIT\AddOpsToSubAsm.p (input
> > > ttjobasmbl.JobNum, input ttjobasmbl.AssemblySeq, input
> > > OPMASTER.Subcontract, input opCode, input OPMASTER.OpDesc, input
> > > TTJOBASMBL.Character02, input TTJOBASMBL.Character03).
> > >Â Â END.
> > >
> > > This was the output in the appserver logs using this string for
> > > operations: OP014:Cutting|0~OP010:Mill
> > > CNC|0~OP028:Deburring|0~OP019:Spraywash 9|0~OP020:Paint 9|0~
> > >
> > > [13/06/20@09:20:28.505-0400] P-005432 T-005716 1 AS -- (Procedure:
> > > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP014
> > > [13/06/20@09:20:28.627-0400] P-005432 T-005716 1 AS -- (Procedure:
> > > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP010
> > > [13/06/20@09:20:28.863-0400] P-005432 T-005716 1 AS -- (Procedure:
> > > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP028
> > > [13/06/20@09:20:29.119-0400] P-005432 T-005716 1 AS -- (Procedure:
> > > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP019
> > > [13/06/20@09:20:29.386-0400] P-005432 T-005716 1 AS -- (Procedure:
> > > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP020
> > > [13/06/20@09:20:29.686-0400] P-005432 T-005716 1 AS -- (Procedure:
> > > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP014
> > > [13/06/20@09:20:29.958-0400] P-005432 T-005716 1 AS -- (Procedure:
> > > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP010
> > > [13/06/20@09:20:30.238-0400] P-005432 T-005716 1 AS -- (Procedure:
> > > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP028
> > > [13/06/20@09:20:30.534-0400] P-005432 T-005716 1 AS -- (Procedure:
> > > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP019
> > > [13/06/20@09:20:30.801-0400] P-005432 T-005716 1 AS -- (Procedure:
> > > 'UpdateBase238_A1 db/object//JobAsmbl.p' Line:6219) OP020
> > >
> > > Strange though as the operations that were added under the new
> > subassembly
> > > are:
> > >
> > > OP010
> > > OP028
> > > OP019
> > > OP020
> > > OP014
> > > OP010
> > > OP028
> > > OP019
> > > OP020
> > >
> > > ________________________________
> > > From: Jose Gomez <jose@...>
> > > To: Vantage <vantage@yahoogroups.com>
> > > Sent: Thursday, June 20, 2013 10:37 AM
> > > Subject: Re: [Vantage] 4GL Loop issue
> > >
> > > Hmm do the message thinga nd see if you can find where it gets
> re-caled.
> > > Is this in transaction?
> > >
> > > *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/>
> > >Â <http://www.usdoingstuff.com>
> > >
> > > *Quis custodiet ipsos custodes?*
> > >
> > > On Thu, Jun 20, 2013 at 10:35 AM, Ted Koch <tkoch77@...> wrote:
> > >
> > > > **
> > > >
> > > >
> > > > Hi Jose,
> > > >
> > > > It is being run in a data directive on the JobAsmbl table
> > > >
> > > > Condition: when a new row is added and jobasmbl.character04 <> ""
> > > >
> > > > Character04 would contain: OP014:Cutting|0~OP012:Mill Manual|0~
> > > >
> > > > ________________________________
> > > > From: Jose Gomez <jose@...>
> > > > To: Vantage <vantage@yahoogroups.com>
> > > > Sent: Thursday, June 20, 2013 10:22 AM
> > > > Subject: Re: [Vantage] 4GL Loop issue
> > > >
> > > >
> > > >
> > > > When is this firing? if its on JobEntry.Update then your directive
> > could
> > > > fire more than once on every Update (which you call from your .P)
> Place
> > > > Message '1'.. etc in your code and see when it gets invoked again/.
> > > >
> > > > On Thu, Jun 20, 2013 at 10:15 AM, tkoch77 <tkoch77@...> wrote:
> > > >
> > > > > RUN Update IN hJobEntry ( {&input-output_dataset_JobEntryDataSet}).
> > > > >
> > > >
> > > > *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/>
> > > >Â <http://www.usdoingstuff.com>
> > > >
> > > > *Quis custodiet ipsos custodes?*
> > > >
> > > > [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/linksYahoo! Groups Links
> > > >
> > > > [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/linksYahoo! Groups Links
> > >
> > > [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/linksYahoo! Groups Links
> > >
> > > [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/linksYahoo! Groups Links
> >
> > [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/linksYahoo! Groups Links
>
> [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/linksYahoo! Groups Links
>
> [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/linksYahoo! Groups Links



[Non-text portions of this message have been removed]
What code are you using for the search



On Thu, Jun 20, 2013 at 2:22 PM, Ted Koch <tkoch77@...> wrote:

> -- ** FIND FIRST/LAST failed for table ttJobAsmbl. (565)
>
>



*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/>
<http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*


[Non-text portions of this message have been removed]
DEF VAR op AS CHARACTER NO-UNDO.
DEF VAR opCode AS CHARACTER NO-UNDO.
DEF VAR i AS INTEGER.
DEF VAR opList AS CHARACTER.

FIND FIRST TTJOBASMBL WHERE TTJOBASMBL.RowMod = 'A'.
   MESSAGE 'HELLO!!!!!!!!!!'.
   ASSIGN opList = RIGHT-TRIM(TTJOBASMBL.Character04, "~~").
   REPEAT i = 1 TO NUM-ENTRIES(opList, "~~"):
      ASSIGN op = ENTRY(i, opList, "~~").
      ASSIGN opCode = SUBSTRING(op, 1, INDEX(op, ":") - 1).
      MESSAGE OPCODE.
         FIND FIRST OPMASTER WHERE OPMASTER.Company = TTJOBASMBL.Company AND OPMASTER.OpCode = opCode NO-LOCK.
               RUN bpm\TAIT\AddOpsToSubAsm.p (input ttjobasmbl.JobNum, input ttjobasmbl.AssemblySeq, input OPMASTER.Subcontract, input opCode, input OPMASTER.OpDesc, input TTJOBASMBL.Character02, input TTJOBASMBL.Character03).
   END.



________________________________
From: Jose Gomez <jose@...>
To: Vantage <vantage@yahoogroups.com>
Sent: Thursday, June 20, 2013 2:24 PM
Subject: Re: [Vantage] 4GL Loop issue


What code are you using for the search



On Thu, Jun 20, 2013 at 2:22 PM, Ted Koch <tkoch77@...> wrote:

>Â -- ** FIND FIRST/LAST failed for table ttJobAsmbl. (565)
>
>



*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/>
 <http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*


[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/linksYahoo! Groups Links



[Non-text portions of this message have been removed]
Add No-ERROR to the find, also are you sure your RowMod='A? you may want to
display your RowMod to make sure.


*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/>
<http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*


On Thu, Jun 20, 2013 at 2:35 PM, Ted Koch <tkoch77@...> wrote:

> **
>
>
> DEF VAR op AS CHARACTER NO-UNDO.
> DEF VAR opCode AS CHARACTER NO-UNDO.
> DEF VAR i AS INTEGER.
> DEF VAR opList AS CHARACTER.
>
> FIND FIRST TTJOBASMBL WHERE TTJOBASMBL.RowMod = 'A'.
> MESSAGE 'HELLO!!!!!!!!!!'.
>
> ASSIGN opList = RIGHT-TRIM(TTJOBASMBL.Character04, "~~").
> REPEAT i = 1 TO NUM-ENTRIES(opList, "~~"):
> ASSIGN op = ENTRY(i, opList, "~~").
> ASSIGN opCode = SUBSTRING(op, 1, INDEX(op, ":") - 1).
> MESSAGE OPCODE.
> FIND FIRST OPMASTER WHERE OPMASTER.Company =
> TTJOBASMBL.Company AND OPMASTER.OpCode = opCode NO-LOCK.
> RUN bpm\TAIT\AddOpsToSubAsm.p (input
> ttjobasmbl.JobNum, input ttjobasmbl.AssemblySeq, input
> OPMASTER.Subcontract, input opCode, input OPMASTER.OpDesc, input
> TTJOBASMBL.Character02, input TTJOBASMBL.Character03).
> END.
>
> ________________________________
> From: Jose Gomez <jose@...>
> To: Vantage <vantage@yahoogroups.com>
> Sent: Thursday, June 20, 2013 2:24 PM
>
> Subject: Re: [Vantage] 4GL Loop issue
>
>
> What code are you using for the search
>
> On Thu, Jun 20, 2013 at 2:22 PM, Ted Koch <tkoch77@...> wrote:
>
> > -- ** FIND FIRST/LAST failed for table ttJobAsmbl. (565)
> >
> >
>
> *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/>
> <http://www.usdoingstuff.com>
>
> *Quis custodiet ipsos custodes?*
>
> [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/linksYahoo! Groups Links
>
> [Non-text portions of this message have been removed]
>
>
>


[Non-text portions of this message have been removed]
When I add a new assembly then save, the only rowmod that is showing is U in the standard data directive. I am just going to do this via JobEntry.Update method directive, that should be the only time assemblies are being added. I really wanted to do it with a data directive since I have a bunch of BPMs already on JobEntry.Update




________________________________
From: Jose Gomez <jose@...>
To: Vantage <vantage@yahoogroups.com>
Sent: Thursday, June 20, 2013 2:50 PM
Subject: Re: [Vantage] 4GL Loop issue


Add No-ERROR to the find, also are you sure your RowMod='A? you may want to
display your RowMod to make sure.


*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/>
 <http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*


On Thu, Jun 20, 2013 at 2:35 PM, Ted Koch <tkoch77@...> wrote:

> **
>
>
> DEF VAR op AS CHARACTER NO-UNDO.
> DEF VAR opCode AS CHARACTER NO-UNDO.
> DEF VAR i AS INTEGER.
> DEF VAR opList AS CHARACTER.
>
> FIND FIRST TTJOBASMBL WHERE TTJOBASMBL.RowMod = 'A'.
>Â Â MESSAGE 'HELLO!!!!!!!!!!'.
>
>Â Â ASSIGN opList = RIGHT-TRIM(TTJOBASMBL.Character04, "~~").
>Â Â REPEAT i = 1 TO NUM-ENTRIES(opList, "~~"):
>Â Â Â Â ASSIGN op = ENTRY(i, opList, "~~").
>Â Â Â Â ASSIGN opCode = SUBSTRING(op, 1, INDEX(op, ":") - 1).
>Â Â Â Â MESSAGE OPCODE.
>Â Â Â Â Â Â FIND FIRST OPMASTER WHERE OPMASTER.Company =
> TTJOBASMBL.Company AND OPMASTER.OpCode = opCode NO-LOCK.
>Â Â Â Â Â Â Â Â Â Â RUN bpm\TAIT\AddOpsToSubAsm.p (input
> ttjobasmbl.JobNum, input ttjobasmbl.AssemblySeq, input
> OPMASTER.Subcontract, input opCode, input OPMASTER.OpDesc, input
> TTJOBASMBL.Character02, input TTJOBASMBL.Character03).
>Â Â END.
>
> ________________________________
> From: Jose Gomez <jose@...>
> To: Vantage <vantage@yahoogroups.com>
> Sent: Thursday, June 20, 2013 2:24 PM
>
> Subject: Re: [Vantage] 4GL Loop issue
>
>
> What code are you using for the search
>
> On Thu, Jun 20, 2013 at 2:22 PM, Ted Koch <tkoch77@...> wrote:
>
> >Â -- ** FIND FIRST/LAST failed for table ttJobAsmbl. (565)
> >
> >
>
> *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/>
>Â <http://www.usdoingstuff.com>
>
> *Quis custodiet ipsos custodes?*
>
> [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/linksYahoo! Groups Links
>
> [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/.%c2%a0
(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/linksYahoo! Groups Links



[Non-text portions of this message have been removed]
That might work doesn't matter much whther its in BPM or DD its gonna get
executed so impact should be about the same.


*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/>
<http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*


On Thu, Jun 20, 2013 at 4:08 PM, Ted Koch <tkoch77@...> wrote:

> **
>
>
> When I add a new assembly then save, the only rowmod that is showing is U
> in the standard data directive. I am just going to do this via
> JobEntry.Update method directive, that should be the only time assemblies
> are being added. I really wanted to do it with a data directive since I
> have a bunch of BPMs already on JobEntry.Update
>
>
> ________________________________
> From: Jose Gomez <jose@...>
> To: Vantage <vantage@yahoogroups.com>
> Sent: Thursday, June 20, 2013 2:50 PM
>
> Subject: Re: [Vantage] 4GL Loop issue
>
>
> Add No-ERROR to the find, also are you sure your RowMod='A? you may want to
> display your RowMod to make sure.
>
> *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/>
> <http://www.usdoingstuff.com>
>
> *Quis custodiet ipsos custodes?*
>
> On Thu, Jun 20, 2013 at 2:35 PM, Ted Koch <tkoch77@...> wrote:
>
> > **
>
> >
> >
> > DEF VAR op AS CHARACTER NO-UNDO.
> > DEF VAR opCode AS CHARACTER NO-UNDO.
> > DEF VAR i AS INTEGER.
> > DEF VAR opList AS CHARACTER.
> >
> > FIND FIRST TTJOBASMBL WHERE TTJOBASMBL.RowMod = 'A'.
> > MESSAGE 'HELLO!!!!!!!!!!'.
> >
> > ASSIGN opList = RIGHT-TRIM(TTJOBASMBL.Character04, "~~").
> > REPEAT i = 1 TO NUM-ENTRIES(opList, "~~"):
> > ASSIGN op = ENTRY(i, opList, "~~").
> > ASSIGN opCode = SUBSTRING(op, 1, INDEX(op, ":") - 1).
> > MESSAGE OPCODE.
> > FIND FIRST OPMASTER WHERE OPMASTER.Company =
> > TTJOBASMBL.Company AND OPMASTER.OpCode = opCode NO-LOCK.
> > RUN bpm\TAIT\AddOpsToSubAsm.p (input
> > ttjobasmbl.JobNum, input ttjobasmbl.AssemblySeq, input
> > OPMASTER.Subcontract, input opCode, input OPMASTER.OpDesc, input
> > TTJOBASMBL.Character02, input TTJOBASMBL.Character03).
> > END.
> >
> > ________________________________
> > From: Jose Gomez <jose@...>
> > To: Vantage <vantage@yahoogroups.com>
> > Sent: Thursday, June 20, 2013 2:24 PM
> >
> > Subject: Re: [Vantage] 4GL Loop issue
> >
> >
> > What code are you using for the search
> >
> > On Thu, Jun 20, 2013 at 2:22 PM, Ted Koch <tkoch77@...> wrote:
> >
> > > -- ** FIND FIRST/LAST failed for table ttJobAsmbl. (565)
> > >
> > >
> >
> > *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/>
> > <http://www.usdoingstuff.com>
> >
> > *Quis custodiet ipsos custodes?*
> >
> > [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/linksYahoo! Groups Links
> >
> > [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/linksYahoo! Groups Links
>
> [Non-text portions of this message have been removed]
>
>
>


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