That worked! Thank you so much Ken for your help. Now I just need to figure out how to make it uncheck the quoted box. But I really appreciate your continued help.
Emily
Emily
--- In vantage@yahoogroups.com, Ken Williams <kwilliams@...> wrote:
>
> Here's exact code taken from job entry where we verify the part number exists:
>
> for each ttJobMtl where (ttJobMtl.RowMod = 'A') no-lock , each Part where (Part.PartNum = ttJobMtl.PartNum and Part.PartNum <> '') no-lock
>
> Based on that maybe try:
>
> for each ttQuoteHed where (ttQuoteHed.RowMod = 'U') no-lock , each QuoteCnt where (QuoteCnt.QuoteNum = ttQuoteHed.QuoteNum and QuoteCnt.ConNum <> '') no-lock
>
> It seems that last part (<> '') is redundant...but I'm using the first code above and it works to verify a valid part #. Seems you should be able to do the same to verify a valid Quote contact.
>
> Good luck,
> Ken
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Emily
> Sent: Sunday, August 22, 2010 12:49 PM
> To: vantage@yahoogroups.com
> Subject: [Vantage] Re: BPM or BAM for quoted box - Email found in subject - Email found in subject
>
>
>
> I finally got a chance to try this fix and I received the following message.
>
> ttQuoteHed QuoteNum must be a quoted constant or an unabbreviated, unambiguous buffer/field reference for buffers known to query . (7328)
>
> Ideas?
>
> --- In vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>, Ken Williams <kwilliams@> wrote:
> >
> > You're going to want to use a trigger based on a "query". We have one that runs only when results are found where the condition is "number of rows in the 'xxxxxx' query is not less than 1. You could flip this to get what you're looking for below. Our query for this particular trigger is:
> >
> > for each ttJobMtl where (ttJobMtl.RowMod = 'A') no-lock
> >
> > You'd want something similar, using the QuoteCnt table. Shooting blind, but something like
> >
> > for each ttQuoteCnt where (ttQuoteCnt.QuoteNum = ttQuoteHed.QuoteNum)
> >
> > The idea being if it finds any results, your query will be > 0 and should not trigger the BPM. However, if it finds no results, the query will return 0 and triggers the BPM to stop the saving of the quote.
> >
> > Good luck,
> > Ken
> >
> >
> > From: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>] On Behalf Of Emily
> > Sent: Wednesday, August 11, 2010 11:27 AM
> > To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>
> > Subject: [Vantage] Re: BPM or BAM for quoted box - Email found in subject
> >
> >
> >
> > I've worked on this BPM some more and it still isn't work. I've confirmed my other BPMs for Quote-> Update are working. I think the issue is that since a quote can be created without a customer contact if there isn't one created then there isn't an added or updated row to check. I've written it to check the QuoteCnt.PrimeContact, QuoteCnt.Name, QuoteCnt.ConNum with various options of equal to False, " ", null, etc.
> >
> > I'm all ears for some ideas. Thank you in advance.
> >
> > --- In vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com>, "Emily" <emverbeke@> wrote:
> > >
> > > Does anyone have a BPM or a BAM to make the quoted check box unavailable until a specific field is filled in or complted? We want our sales people to have to have to fill in a contact before they can make the quote as quoted.
> > >
> >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
>
>
> [Non-text portions of this message have been removed]
>