Customer.Comment pop up at order entry

Oh perfect! Thank you so much. I am new to this I appreciate the patients you all have shown.

Josh. G

--- In vantage@yahoogroups.com, Jose Gomez <jose@...> wrote:
>
> Yahoo List File Repo
>
> *Jose C Gomez*
> *Software Engineer*
> *
> *
> *checkout my new blog <http://www.usdoingstuff.com> *
> *
> *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 16, 2011 at 4:17 PM, jgiese1988
> <jgiese@...>wrote:
>
> > **
> >
> >
> > Ahh of course I would have to call the information from the tt table to be
> > able to compare against it in a query! My bad that was stupid. I am knew to
> > ABL and it's syntax but not running (IMO SQLish) queries. Thank you so much!
> > Does anyone know of good resources to find BPMs premade that I can use for
> > example. It's hard to learn this stuff from the Progress ABL resource, as it
> > does not include Epicor's dip into it.
> >
> > Josh G
> >
> >
> > --- In vantage@yahoogroups.com, Waffqle <waffqle@> wrote:
> > >
> > > Are you running pre or post processing?
> > > Also, before you were hard coding the custnum, did you code look like:
> > >
> > > FIND FIRST Customer WHERE Customer.CustNum = ttOrderHed.CustNum.
> > >
> > > Or like:
> > >
> > > FOR FIRST ttOrderHed, FIRST Customer WHERE Customer.CustNum =
> > > ttOrderHed.CustNum.
> > >
> > > The second one would be the proper way. Just because the ttTables are
> > there
> > > doesn't mean you have selected rows available. Usually you'll get an
> > error
> > > if you try to reference a table that doesn't have a row selected; but
> > I've
> > > seen occasions where it just acts like a query that doesn't return any
> > rows.
> > >
> > > On Thu, Jun 16, 2011 at 3:28 PM, jgiese1988
> > > <jgiese@>wrote:
> >
> > >
> > > >
> > > >
> > > > I am looking to do some sort of customer pop up at order entry after
> > the
> > > > ChangeCustomer method runs. I am using the code below:
> > > >
> > > > DEFINE VARIABLE customerPop AS CHARACTER .
> > > > FIND FIRST Customer WHERE Customer.CustNum = 2 .
> > > > IF AVAILABLE Customer THEN
> > > > DO :
> > > > ASSIGN customerPop = String(Customer.Comment) .
> > > > {lib/PublishInfoMsg.i &InfoMsg=customerPop}
> > > > {& Throw_private}.
> > > > END .
> > > >
> > > > Where the 2 is, is supposed to be the variable ttOrderHed.CustNum but
> > for
> > > > some reason that does not work. The code above works just fine when I
> > force
> > > > the ID in the code. Why at the SalesOrder.ChangeCustomer post process
> > is
> > > > this failing? that information should be available? I have been in
> > contact
> > > > with Epicor's BPM support and we together cannot figure out what is
> > wrong
> > > > with the code. I have written this same function many different ways so
> > far,
> > > > this seemed the cleanest.
> > > >
> > > > Josh G.
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > *Waffqle Driggers*
> > > *High End Dev, System Design, Profit Drinking
> > > *
> > > *:: 904.962.2887*
> > > *:: waffqle@*
> >
> > > *:: NO FAXES*
> > >
> > > *
> > >
> > > *
> > >
> > >
> > > [Non-text portions of this message have been removed]
> > >
> >
> >
> >
>
>
> [Non-text portions of this message have been removed]
>
I am looking to do some sort of customer pop up at order entry after the ChangeCustomer method runs. I am using the code below:

DEFINE VARIABLE customerPop AS CHARACTER .
FIND FIRST Customer WHERE Customer.CustNum = 2 .
IF AVAILABLE Customer THEN
DO :
ASSIGN customerPop = String(Customer.Comment) .
{lib/PublishInfoMsg.i &InfoMsg=customerPop}
{& Throw_private}.
END .

Where the 2 is, is supposed to be the variable ttOrderHed.CustNum but for some reason that does not work. The code above works just fine when I force the ID in the code. Why at the SalesOrder.ChangeCustomer post process is this failing? that information should be available? I have been in contact with Epicor's BPM support and we together cannot figure out what is wrong with the code. I have written this same function many different ways so far, this seemed the cleanest.

Josh G.
do you have a tt Table on OnChangeCustomer? are yo doing it post or pre
processing?

*Jose C Gomez*
*Software Engineer*
*
*
*checkout my new blog <http://www.usdoingstuff.com> *
*
*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 16, 2011 at 3:28 PM, jgiese1988
<jgiese@...>wrote:

> **
>
>
> I am looking to do some sort of customer pop up at order entry after the
> ChangeCustomer method runs. I am using the code below:
>
> DEFINE VARIABLE customerPop AS CHARACTER .
> FIND FIRST Customer WHERE Customer.CustNum = 2 .
> IF AVAILABLE Customer THEN
> DO :
> ASSIGN customerPop = String(Customer.Comment) .
> {lib/PublishInfoMsg.i &InfoMsg=customerPop}
> {& Throw_private}.
> END .
>
> Where the 2 is, is supposed to be the variable ttOrderHed.CustNum but for
> some reason that does not work. The code above works just fine when I force
> the ID in the code. Why at the SalesOrder.ChangeCustomer post process is
> this failing? that information should be available? I have been in contact
> with Epicor's BPM support and we together cannot figure out what is wrong
> with the code. I have written this same function many different ways so far,
> this seemed the cleanest.
>
> Josh G.
>
>
>


[Non-text portions of this message have been removed]
Are you running pre or post processing?
Also, before you were hard coding the custnum, did you code look like:

FIND FIRST Customer WHERE Customer.CustNum = ttOrderHed.CustNum.

Or like:

FOR FIRST ttOrderHed, FIRST Customer WHERE Customer.CustNum =
ttOrderHed.CustNum.

The second one would be the proper way. Just because the ttTables are there
doesn't mean you have selected rows available. Usually you'll get an error
if you try to reference a table that doesn't have a row selected; but I've
seen occasions where it just acts like a query that doesn't return any rows.

On Thu, Jun 16, 2011 at 3:28 PM, jgiese1988
<jgiese@...>wrote:

>
>
> I am looking to do some sort of customer pop up at order entry after the
> ChangeCustomer method runs. I am using the code below:
>
> DEFINE VARIABLE customerPop AS CHARACTER .
> FIND FIRST Customer WHERE Customer.CustNum = 2 .
> IF AVAILABLE Customer THEN
> DO :
> ASSIGN customerPop = String(Customer.Comment) .
> {lib/PublishInfoMsg.i &InfoMsg=customerPop}
> {& Throw_private}.
> END .
>
> Where the 2 is, is supposed to be the variable ttOrderHed.CustNum but for
> some reason that does not work. The code above works just fine when I force
> the ID in the code. Why at the SalesOrder.ChangeCustomer post process is
> this failing? that information should be available? I have been in contact
> with Epicor's BPM support and we together cannot figure out what is wrong
> with the code. I have written this same function many different ways so far,
> this seemed the cleanest.
>
> Josh G.
>
>
>



--
*Waffqle Driggers*
*High End Dev, System Design, Profit Drinking
*
*:: 904.962.2887*
*:: waffqle@...*
*:: NO FAXES*

*

*


[Non-text portions of this message have been removed]
Ahh of course I would have to call the information from the tt table to be able to compare against it in a query! My bad that was stupid. I am knew to ABL and it's syntax but not running (IMO SQLish) queries. Thank you so much! Does anyone know of good resources to find BPMs premade that I can use for example. It's hard to learn this stuff from the Progress ABL resource, as it does not include Epicor's dip into it.

Josh G

--- In vantage@yahoogroups.com, Waffqle <waffqle@...> wrote:
>
> Are you running pre or post processing?
> Also, before you were hard coding the custnum, did you code look like:
>
> FIND FIRST Customer WHERE Customer.CustNum = ttOrderHed.CustNum.
>
> Or like:
>
> FOR FIRST ttOrderHed, FIRST Customer WHERE Customer.CustNum =
> ttOrderHed.CustNum.
>
> The second one would be the proper way. Just because the ttTables are there
> doesn't mean you have selected rows available. Usually you'll get an error
> if you try to reference a table that doesn't have a row selected; but I've
> seen occasions where it just acts like a query that doesn't return any rows.
>
> On Thu, Jun 16, 2011 at 3:28 PM, jgiese1988
> <jgiese@...>wrote:
>
> >
> >
> > I am looking to do some sort of customer pop up at order entry after the
> > ChangeCustomer method runs. I am using the code below:
> >
> > DEFINE VARIABLE customerPop AS CHARACTER .
> > FIND FIRST Customer WHERE Customer.CustNum = 2 .
> > IF AVAILABLE Customer THEN
> > DO :
> > ASSIGN customerPop = String(Customer.Comment) .
> > {lib/PublishInfoMsg.i &InfoMsg=customerPop}
> > {& Throw_private}.
> > END .
> >
> > Where the 2 is, is supposed to be the variable ttOrderHed.CustNum but for
> > some reason that does not work. The code above works just fine when I force
> > the ID in the code. Why at the SalesOrder.ChangeCustomer post process is
> > this failing? that information should be available? I have been in contact
> > with Epicor's BPM support and we together cannot figure out what is wrong
> > with the code. I have written this same function many different ways so far,
> > this seemed the cleanest.
> >
> > Josh G.
> >
> >
> >
>
>
>
> --
> *Waffqle Driggers*
> *High End Dev, System Design, Profit Drinking
> *
> *:: 904.962.2887*
> *:: waffqle@...*
> *:: NO FAXES*
>
> *
>
> *
>
>
> [Non-text portions of this message have been removed]
>
Yahoo List File Repo

*Jose C Gomez*
*Software Engineer*
*
*
*checkout my new blog <http://www.usdoingstuff.com> *
*
*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 16, 2011 at 4:17 PM, jgiese1988
<jgiese@...>wrote:

> **
>
>
> Ahh of course I would have to call the information from the tt table to be
> able to compare against it in a query! My bad that was stupid. I am knew to
> ABL and it's syntax but not running (IMO SQLish) queries. Thank you so much!
> Does anyone know of good resources to find BPMs premade that I can use for
> example. It's hard to learn this stuff from the Progress ABL resource, as it
> does not include Epicor's dip into it.
>
> Josh G
>
>
> --- In vantage@yahoogroups.com, Waffqle <waffqle@...> wrote:
> >
> > Are you running pre or post processing?
> > Also, before you were hard coding the custnum, did you code look like:
> >
> > FIND FIRST Customer WHERE Customer.CustNum = ttOrderHed.CustNum.
> >
> > Or like:
> >
> > FOR FIRST ttOrderHed, FIRST Customer WHERE Customer.CustNum =
> > ttOrderHed.CustNum.
> >
> > The second one would be the proper way. Just because the ttTables are
> there
> > doesn't mean you have selected rows available. Usually you'll get an
> error
> > if you try to reference a table that doesn't have a row selected; but
> I've
> > seen occasions where it just acts like a query that doesn't return any
> rows.
> >
> > On Thu, Jun 16, 2011 at 3:28 PM, jgiese1988
> > <jgiese@...>wrote:
>
> >
> > >
> > >
> > > I am looking to do some sort of customer pop up at order entry after
> the
> > > ChangeCustomer method runs. I am using the code below:
> > >
> > > DEFINE VARIABLE customerPop AS CHARACTER .
> > > FIND FIRST Customer WHERE Customer.CustNum = 2 .
> > > IF AVAILABLE Customer THEN
> > > DO :
> > > ASSIGN customerPop = String(Customer.Comment) .
> > > {lib/PublishInfoMsg.i &InfoMsg=customerPop}
> > > {& Throw_private}.
> > > END .
> > >
> > > Where the 2 is, is supposed to be the variable ttOrderHed.CustNum but
> for
> > > some reason that does not work. The code above works just fine when I
> force
> > > the ID in the code. Why at the SalesOrder.ChangeCustomer post process
> is
> > > this failing? that information should be available? I have been in
> contact
> > > with Epicor's BPM support and we together cannot figure out what is
> wrong
> > > with the code. I have written this same function many different ways so
> far,
> > > this seemed the cleanest.
> > >
> > > Josh G.
> > >
> > >
> > >
> >
> >
> >
> > --
> > *Waffqle Driggers*
> > *High End Dev, System Design, Profit Drinking
> > *
> > *:: 904.962.2887*
> > *:: waffqle@...*
>
> > *:: NO FAXES*
> >
> > *
> >
> > *
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
>
>


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