This is my Page On Leave code to update the descriptions on the quote or order header, depending on where the configurator was started.
IF QUOTENUMUSE > 0 AND QUOTELINEUSE > 0 THEN DO:
Find QUOTEDtl where QUOTEDtl.Company = "DA" and QUOTEdtl.QUOTENum =
integer(QUOTENumuse) and QUOTEDtl.QUOTELine = integer(QUOTELineuse) no-lock no-error.
Run lib\UpdateTableBuffer.p(input BUFFER QUOTEDtl:HANDLE, 'LINEDESC',
chrPartDesc).
END.
IF ORDERNUMUSE > 0 AND ORDERLINEUSE > 0 THEN DO:
Find ORDERDtl where ORDERDtl.Company = "DA" and ORDERdtl.ORDERNum =
integer(ORDERNumuse) and ORDERDtl.ORDERLine = integer(ORDERLineuse) no-lock no-error.
Run lib\UpdateTableBuffer.p(input BUFFER ORDERDtl:HANDLE, 'LINEDESC',
chrPartDesc).
END.
Note: as a standard on all my configurations (recommended by Epicor trainer), quotenumuse, quotelineuse, ordernumuse and orderlineuse are set up as my 2nd thru 5th input variables. My first input is always CODETRIGGER, which has an On Leave event of:
OrderNumUse = (GetCurrentOrderNum()).
OrderLineUse = (GetCurrentOrderLine()).
QuoteNumUse = (GetCurrentQuoteNum()).
QuoteLineUse = (GetCurrentQuoteLine()).
HTH, Kirstin
IF QUOTENUMUSE > 0 AND QUOTELINEUSE > 0 THEN DO:
Find QUOTEDtl where QUOTEDtl.Company = "DA" and QUOTEdtl.QUOTENum =
integer(QUOTENumuse) and QUOTEDtl.QUOTELine = integer(QUOTELineuse) no-lock no-error.
Run lib\UpdateTableBuffer.p(input BUFFER QUOTEDtl:HANDLE, 'LINEDESC',
chrPartDesc).
END.
IF ORDERNUMUSE > 0 AND ORDERLINEUSE > 0 THEN DO:
Find ORDERDtl where ORDERDtl.Company = "DA" and ORDERdtl.ORDERNum =
integer(ORDERNumuse) and ORDERDtl.ORDERLine = integer(ORDERLineuse) no-lock no-error.
Run lib\UpdateTableBuffer.p(input BUFFER ORDERDtl:HANDLE, 'LINEDESC',
chrPartDesc).
END.
Note: as a standard on all my configurations (recommended by Epicor trainer), quotenumuse, quotelineuse, ordernumuse and orderlineuse are set up as my 2nd thru 5th input variables. My first input is always CODETRIGGER, which has an On Leave event of:
OrderNumUse = (GetCurrentOrderNum()).
OrderLineUse = (GetCurrentOrderLine()).
QuoteNumUse = (GetCurrentQuoteNum()).
QuoteLineUse = (GetCurrentQuoteLine()).
HTH, Kirstin
--- In vantage@yahoogroups.com, "jckinneman" <jckinneman@...> wrote:
>
>
>
> What version of Epicor are you on? Assuming 8, If you are populating the quote and job via the Get details this is why you see the difference. The method rules do not fire until the get details step, since there is no get details step for a sales order the rule doesn't fire. In Epicor 9 there are document rules that do fire as part of saving the configurator and returning to a sales order and thus can update the sales order.
>
> For 8 you need to run some progress code in the configurrator, usually as part of the last page on-leave code that pulls in the order and updates the order information using the updatetablebuffer library routine that Epicor provides.
>
> Jim Kinneman
> Senior Consultant
> Encompass Solutions.
>
> --- In vantage@yahoogroups.com, "Blake Clemens" <blake.clemens@> wrote:
> >
> > All,
> >
> > Here is my issue.... We want to populate a field in Order Entry when
> > coming out of the Configurator. We are putting our programming on the
> > Alt field under the Rules Tab. Here is the programming we are using..
> > OrderDtl.Character08 = "ABC" Obviously I'm not able to get this to
> > work. Does anyone have any ideas as to why it isn't working and what I
> > should do to fix it. We are able to push values to fields in Quote and
> > Job when coming out of the Configurator just not in Order Entry. Any
> > help would be very much appreciated. Thanks in advance.
> >
> >
> >
> > Thanks,
> >
> > Blake Clemens
> >
> > IT Systems Engineer
> >
> > Delmarva Millwork Corporation
> >
> > (800) 360-2364 x132
> >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>