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
> >
>