I found out that part of this was actually working!! I can set the Create RFQ to true on the SugPODtl Table. So if I reload my suggestions it will show that all parts with a certain part class are checked as true. But it doesn't show on the ttsugpodtl or when I hit refresh. If anyone has some suggestions on how to make it show on the temp table screen that would be great. I have tried a ton of variations where I assign the ttsugpodtlcreaterfq box equal to true, but none of them seem to work.
For Each ttsugpodtl, each sugPOdtl where sugPOdtl.JobNum <> "" and sugpodtl.sugType = 'M' and sugpodtl.JobSeq > 0 and sugpodtl.ClassID = ttCallContextBPMdata.Character01.
assign sugpodtl.CreateRFQ = true.
End.
--- In vantage@yahoogroups.com, <ralmon@...> wrote:Here is what I have for the BPM now, still no success:
For each ttCallContextBpmData:
for each ttSugPoDtl, each SugPODtl where ttSugPODtl.JobNUM <> "" and ttSugPODtl.SugType = 'M' and ttSugPODtl.JobSeq > 0 and ttSugPoDtl.ClassID = ttCallContextBpmData.Character01.
assign ttsugpodtl.CreateRFQ = true sugpodtl.createRFQ = True.
end.
end.
I have also tried this with no success:
For each ttCallContextClient.
FIND ttSugPoDtl no-lock where ttSugPoDtl.ClassID = ttCallContextBpmData.Character01 and ttsugpodtl.CreateRFQ = FALSE.
for each SugPODtl where SugPODtl.Company = ttSugPODtl.Company and SugPODtl.plant = ttSugPODtl.plant and
SugPOdtl.SugNum = ttSugPOdtl.SugNum:
if available sugpodtl then do:
assign ttsugpodtl.CreateRFQ = true sugpodtl.createRFQ = true.
end.
end.
end.
While we are on the topic of BPMs would someone also be able to explain the purpose behind the Record "call" and "Return" options. What are they for and how would they be used?
Thanks,
Bobby
--- In vantage@yahoogroups.com, <ralmon@...> wrote:Does it matter that i am trying to update multiple rows at the same time? I find when I run a trace that every time you click from one CreateRFQ checkbox to the next, it runs the update method. Do i need to account for this somehow in the BPM. I know with updateable dashoboards i have to check "allow update of multiple rows."
Also I added the For each ttcallcontextbpmdata: and tried multiple variations of the rest of my code and haven't been able to get this to work.
-Bobby
--- In vantage@yahoogroups.com, <jose@...> wrote:Try this,
Do something like this , please note that this is NOT syntactically correct its just a general pseudo codeCall your BPM Form, thenFOR EACH ttCallContextBPMData:
FOR EACH SugPODtl WHERE SugPODtl.ClassID = ttCallContextBPMData.Character01.Assing SigPODtl.CreateRFQ = True
END.END.
Jose C GomezSoftware Engineer
T: 904.469.1524 mobile
Quis custodiet ipsos custodes?