Thank you so much Andrew that works perfect.
~Charlie
_____
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
andrew.tapper
Sent: Friday, January 23, 2009 4:48 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: BPM Key Word
Charlie,
Change the code to the following:
find first ttOrderDtl where ttOrderDtl.RowMod = 'U' or
ttOrderDtl.RowMod = 'A' no-lock.
if available ttOrderDtl then do:
assign ttOrderDtl.Date10 = TODAY.
end.
Basically the first line of the original code changes to the first two
of the above. Again watch out for line wrapping if you copy and paste.
Andrew
--- In vantage@yahoogroups <mailto:vantage%40yahoogroups.com> .com, "Charlie
Wilson" <foamdesigncsw@...>
wrote:
Behalf Of
Checked by AVG - http://www.avg.com
Version: 8.0.176 / Virus Database: 270.10.10/1905 - Release Date: 1/23/2009
7:28 AM
[Non-text portions of this message have been removed]
~Charlie
_____
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
andrew.tapper
Sent: Friday, January 23, 2009 4:48 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: BPM Key Word
Charlie,
Change the code to the following:
find first ttOrderDtl where ttOrderDtl.RowMod = 'U' or
ttOrderDtl.RowMod = 'A' no-lock.
if available ttOrderDtl then do:
assign ttOrderDtl.Date10 = TODAY.
end.
Basically the first line of the original code changes to the first two
of the above. Again watch out for line wrapping if you copy and paste.
Andrew
--- In vantage@yahoogroups <mailto:vantage%40yahoogroups.com> .com, "Charlie
Wilson" <foamdesigncsw@...>
wrote:
>I get
> I believe I finally got the code correct but now when the BPM fires
> the another user has changed this record refresh and make yourchanges again
> message. Any help on what is causing this?[mailto:vantage@yahoogroups <mailto:vantage%40yahoogroups.com> .com] On
>
>
>
> ~Charlie
>
> _____
>
> From: vantage@yahoogroups <mailto:vantage%40yahoogroups.com> .com
Behalf Of
> andrew.tapper"Charlie
> Sent: Friday, January 23, 2009 2:50 PM
> To: vantage@yahoogroups <mailto:vantage%40yahoogroups.com> .com
> Subject: [Vantage] Re: BPM Key Word
>
>
>
> Yes.
>
> --- In vantage@yahoogroups <mailto:vantage%40yahoogroups.com> .com,
> Wilson" <foamdesigncsw@>line?
> wrote:
> >
> > Are there suppose to be periods at the end of the first and third
> >.com] On
> >
> >
> > ~Charlie
> >
> > _____
> >
> > From: vantage@yahoogroups <mailto:vantage%40yahoogroups.com> .com
> [mailto:vantage@yahoogroups <mailto:vantage%40yahoogroups.com> .com] On
> Behalf Of
> > andrew.tapper
> > Sent: Friday, January 23, 2009 1:50 PM
> > To: vantage@yahoogroups <mailto:vantage%40yahoogroups.com> .com
> > Subject: [Vantage] Re: BPM Key Word
> >
> >
> >
> > I tried my code and it works, but I was able to recreate that error
> > message by putting a comma between no-lock & no-error. There should
> > only be a space between these two commands.
> >
> > Andrew
> >
> > --- In vantage@yahoogroups <mailto:vantage%40yahoogroups.com> .com,
> "Charlie
> > Wilson" <foamdesigncsw@>
> > wrote:
> > >
> > > I typed your code in just as it appears and it gives an error
> > stating do not
> > > understand after no-lock.
> > >
> > >
> > >
> > > We need the check box to stay checked because we have a dash board
> > where we
> > > are doing some tracking based off it and once that check box and a
> > series of
> > > others are checked showing that a bunch of different operations have
> > been
> > > completed it falls off the dash board.
> > >
> > >
> > >
> > > ~Charlie
> > >
> > > _____
> > >
> > > From: vantage@yahoogroups <mailto:vantage%40yahoogroups.com> .com
> > [mailto:vantage@yahoogroups <mailto:vantage%40yahoogroups.com>
> > Behalf Ofam I
> > > andrew.tapper
> > > Sent: Friday, January 23, 2009 9:32 AM
> > > To: vantage@yahoogroups <mailto:vantage%40yahoogroups.com> .com
> > > Subject: [Vantage] Re: BPM Key Word
> > >
> > >
> > >
> > > I forgot about the canned condition of "the specified field has been
> > > changed from any to any". I have never tried it.
> > >
> > > I clear the check boxes so that I can retrigger the action easily.
> > > Just a standard that I have adopted.
> > >
> > > Andrew
> > >
> > > --- In vantage@yahoogroups <mailto:vantage%40yahoogroups.com> .com,
> > "Charlie
> > > Wilson" <foamdesigncsw@>
> > > wrote:
> > > >
> > > > Can't I set up a condition that basically checks to see if the
> > check box
> > > > changed from false to true or null to true before executing your
> > > code? If it
> > > > is true and changes to true wouldn't the action not trigger or
> > > missingThen
> > > > something?
> > > >
> > > >
> > > >
> > > > ~Charlie
> > > >
> > > > _____
> > > >
> > > > From: vantage@yahoogroups <mailto:vantage%40yahoogroups.com> .com
> > > [mailto:vantage@yahoogroups <mailto:vantage%40yahoogroups.com>
> .com] On
> > > Behalf Of
> > > > andrew.tapper
> > > > Sent: Thursday, January 22, 2009 6:33 PM
> > > > To: vantage@yahoogroups <mailto:vantage%40yahoogroups.com> .com
> > > > Subject: [Vantage] Re: BPM Key Word
> > > >
> > > >
> > > >
> > > > Charlie,
> > > >
> > > > First let me tell you to stay away from orderdtl.date01 if you
> are on
> > > > 8.03.405a. (see my post #72101)
> > > >
> > > > Setup a pre-process method with the condition on you checkbox.
> > > > for 4gl code try:assuming
> > > >
> > > > find first ttOrderDtl no-lock no-error.
> > > > if available ttOrderDtl then do:
> > > > assign ttOrderDtl.Date10 = TODAY.
> > > > end.
> > > >
> > > > Finally you will probably want to add an action that unchecks the
> > > > checkbox, otherwise everytime the BPM gets triggered (I am
> > > > you are doing this to the Update method) the date will getupdated.
> > > >.com,
> > > > BTW. I suggest retyping the above code into the 4GL editor. I
> have had
> > > > line wrapping problems with cutting and pasting.
> > > >
> > > > Good Luck,
> > > >
> > > > Andrew
> > > >
> > > > PS, Thank Nigel for this, since all I know I learned from him.
> > > >
> > > > --- In vantage@yahoogroups <mailto:vantage%40yahoogroups.com>
> > > "Charlieif the
> > > > Wilson" <foamdesigncsw@>
> > > > wrote:
> > > > >
> > > > > I have done very simple things in 4gl but mostly returning rows
> > > that get
> > > > > counted that kinda thing.
> > > > >
> > > > >
> > > > >
> > > > > Basically I need to set ttorderdtl.date01 too today's date
> > > > > ttorderdtl.checkbox01 changed from false to true or from null to.com
> > > > true. Can
> > > > > anyone give me an example of something similar to this in 4gl?
> > > > >
> > > > >
> > > > >
> > > > > ~Charlie
> > > > >
> > > > > _____
> > > > >
> > > > > From: vantage@yahoogroups <mailto:vantage%40yahoogroups.com>
> > > > [mailto:vantage@yahoogroups <mailto:vantage%40yahoogroups.com>.com
> > .com] On
> > > > Behalf Of
> > > > > bw2868bond
> > > > > Sent: Thursday, January 22, 2009 10:59 AM
> > > > > To: vantage@yahoogroups <mailto:vantage%40yahoogroups.com> .com
> > > > > Subject: [Vantage] Re: BPM Key Word
> > > > >
> > > > >
> > > > >
> > > > > Sadly, that is one of the severe limitations of the 'canned'
> > actions.
> > > > > To be able to set fields to constants like DCD-USERID or system
> > > > > variables like Today, requires you to do it in 4gl code. Even
> > trying
> > > > > to include the user id in an email requires the entire email
> action
> > > > > be done in 4gl :-(
> > > > >
> > > > > --- In vantage@yahoogroups <mailto:vantage%40yahoogroups.com>
> .com,
> > > > "Charlie
> > > > > Wilson" <foamdesigncsw@>
> > > > > wrote:
> > > > > >
> > > > > > I'm using one of the canned actions called "set the specific
> > field
> > > > > of the
> > > > > > changed row to value". It tells me that today is not a valid
> > entry.
> > > > > >
> > > > > >
> > > > > >
> > > > > > ~Charlie
> > > > > >
> > > > > > _____
> > > > > >
> > > > > > From: vantage@yahoogroups <mailto:vantage%40yahoogroups.com>
> .com
> > > > > [mailto:vantage@yahoogroups <mailto:vantage%40yahoogroups.com>
> > > .com] On
> > > > > Behalf Of
> > > > > > Carl Peterson
> > > > > > Sent: Thursday, January 22, 2009 10:43 AM
> > > > > > To: vantage@yahoogroups <mailto:vantage%40yahoogroups.com>
> > > > > > Subject: RE: [Vantage] BPM Key Word.com
> > > > > >
> > > > > >
> > > > > >
> > > > > > Datefield = today. You can also do math on today, too. Today
> - 1
> > > > > and so
> > > > > > on.
> > > > > >
> > > > > > From: vantage@yahoogroups <mailto:vantage%40yahoogroups.com>
> .com
> > > > > > [mailto:vantage@yahoogroups <mailto:vantage%
> > > > > 40yahoogroups.com> .com] On
> > > > > > Behalf Of
> > > > > > Charlie Wilson
> > > > > > Sent: Thursday, January 22, 2009 10:29 AM
> > > > > > To: vantage@yahoogroups <mailto:vantage%40yahoogroups.com>
> > > > > > Subject: [Vantage] BPM Key Wordset it
> > > > > >
> > > > > > All,
> > > > > >
> > > > > > I'm working on a bpm and I am using the action that allows
> you to
> > > > > set a
> > > > > > specific field to a value. I'm setting a date field and was
> > > > > wondering if
> > > > > > there was some sort of key word I could enter that would
> > > > > today's<http://www.avg <http://www.avg.com> com>
> > > > > > date.
> > > > > >
> > > > > > Thank you
> > > > > >
> > > > > > ~Charlie
> > > > > >
> > > > > > [Non-text portions of this message have been removed]
> > > > > >
> > > > > >
> > > > > > [Non-text portions of this message have been removed]
> > > > > >
> > > > > >
> > > > > >
> > > > > > No virus found in this incoming message.
> > > > > > Checked by AVG - http://www.avg <http://www.avg
> > > <http://www.avg <http://www.avg <http://www.avg
> com> com> com>com> com> com>
> > > > com> com
> > > > > > Version: 8.0.176 / Virus Database: 270.10.10/1905 - Release
> Date:
> > > > > 1/21/2009
> > > > > > 7:07 AM
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > [Non-text portions of this message have been removed]
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > No virus found in this incoming message.
> > > > > Checked by AVG - http://www.avg <http://www.avg
> > <http://www.avg <http://www.avg <http://www.avg <http://www.avg.com>
> > > com> comDate:
> > > > > Version: 8.0.176 / Virus Database: 270.10.10/1905 - Release
> > > > 1/21/2009<http://www.avg <http://www.avg.com> com>
> > > > > 7:07 AM
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > [Non-text portions of this message have been removed]
> > > > >
> > > >
> > > >
> > > >
> > > > No virus found in this incoming message.
> > > > Checked by AVG - http://www.avg <http://www.avg
> <http://www.avg <http://www.avg <http://www.avg.com> com> com>
> > com> com
> > > > Version: 8.0.176 / Virus Database: 270.10.10/1905 - Release Date:
> > > 1/22/2009
> > > > 7:08 AM
> > > >
> > > >
> > > >
> > > >
> > > > [Non-text portions of this message have been removed]
> > > >
> > >
> > >
> > >
> > > No virus found in this incoming message.
> > > Checked by AVG - http://www.avg <http://www.avg
> com> comcom> com
> > > Version: 8.0.176 / Virus Database: 270.10.10/1905 - Release Date:
> > 1/23/2009
> > > 7:28 AM
> > >
> > >
> > >
> > >
> > > [Non-text portions of this message have been removed]
> > >
> >
> >
> >
> > No virus found in this incoming message.
> > Checked by AVG - http://www.avg <http://www.avg <http://www.avg.com>
> > Version: 8.0.176 / Virus Database: 270.10.10/1905 - Release Date:1/23/2009
> 1/23/2009
> > 7:28 AM
> >
> >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg <http://www.avg.com> com
> Version: 8.0.176 / Virus Database: 270.10.10/1905 - Release Date:
> 7:28 AMNo virus found in this incoming message.
>
>
>
>
> [Non-text portions of this message have been removed]
>
Checked by AVG - http://www.avg.com
Version: 8.0.176 / Virus Database: 270.10.10/1905 - Release Date: 1/23/2009
7:28 AM
[Non-text portions of this message have been removed]