Field default - BPM instead of customization

oh, and "assign ttQuoteHed.Reference = substr(ttQuoteHed.ShipToAddrList,1,10)." is there to rip out the first part of the delivery address as a reference.

--- In vantage@yahoogroups.com, "Kerry_Muntz" <kerry_muntz@...> wrote:
>
> Hi, here's a couple, currently both preprocessing:
>
> Condition:
> there is at least one added row in the ttQuoteHed table
>
> Action:
> [custom source code]
>
> Custom Code:
> assign ttQuoteHed.ShortChar01 = DCD-USERID.
> assign ttQuoteHed.Reference = substr(ttQuoteHed.ShipToAddrList,1,10).
>
>
> The above code sets a user field to the id of the person raising the quote.
>
> The next directive is part of a pair. To prevent accidental deletion of quotes, by default we set up every quote as a template, and have a bpm that doesn't allow deletion of templates:
>
> Condition:
> there is at least one added row in the ttQuoteDtl table
>
> Action:
> set the QuoteDtl.Template field of the added row to the true value
>
>
> coupled with the other directive as mentioned:
> Condition:
> set the QuoteDtl.Template field of the added row to the true value
>
> Action:
> set the QuoteDtl.Template field of the added row to the true value
>
> Exception Message:
> Deletion of Template Quote Lines is not currently allowed by FPG processes.
>
>
> I hope this helps. Certainly I've found this forum awesome at getting my head around these kind of problems. Thanks heaps to all those who've gone before me!
>
> Kerry.
>
>
>
>
>
> --- In vantage@yahoogroups.com, "cooner_55421" <cooner_55421@> wrote:
> >
> > >8.03.400 and Epicor 9 - additional business code
> > > has been added.
> > > Recommended using a BPM instead.
> >
> > Does any body have a BPM example for setting default values when a new record is started?
> >
> > Thanks
> >
>
Post Process on the "GetNewXXXXX" method.



Action = "Set the Specified Field of the Changed Table to the Specified
Value"



Terry S. Ellis

Tri Gem Co.

<http://trigemco.com/images/3diamonds.jpg>
http://TriGemCo.com/images/3diamonds-150x115.jpg

Phone: (914) 827-5665

Fax: (914) 827-5640

Mobile: (716) 983-8827

TSE@...



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
cooner_55421
Sent: Friday, December 10, 2010 2:50 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Field default - BPM instead of customization





>8.03.400 and Epicor 9 - additional business code
> has been added.
> Recommended using a BPM instead.

Does any body have a BPM example for setting default values when a new
record is started?

Thanks





[Non-text portions of this message have been removed]
Hi, here's a couple, currently both preprocessing:

Condition:
there is at least one added row in the ttQuoteHed table

Action:
[custom source code]

Custom Code:
assign ttQuoteHed.ShortChar01 = DCD-USERID.
assign ttQuoteHed.Reference = substr(ttQuoteHed.ShipToAddrList,1,10).


The above code sets a user field to the id of the person raising the quote.

The next directive is part of a pair. To prevent accidental deletion of quotes, by default we set up every quote as a template, and have a bpm that doesn't allow deletion of templates:

Condition:
there is at least one added row in the ttQuoteDtl table

Action:
set the QuoteDtl.Template field of the added row to the true value


coupled with the other directive as mentioned:
Condition:
set the QuoteDtl.Template field of the added row to the true value

Action:
set the QuoteDtl.Template field of the added row to the true value

Exception Message:
Deletion of Template Quote Lines is not currently allowed by FPG processes.


I hope this helps. Certainly I've found this forum awesome at getting my head around these kind of problems. Thanks heaps to all those who've gone before me!

Kerry.





--- In vantage@yahoogroups.com, "cooner_55421" <cooner_55421@...> wrote:
>
> >8.03.400 and Epicor 9 - additional business code
> > has been added.
> > Recommended using a BPM instead.
>
> Does any body have a BPM example for setting default values when a new record is started?
>
> Thanks
>