Subject | Re: [IBO] TIBOQuery - master child relationship |
---|---|
Author | Helen Borrie |
Post date | 2007-08-16T04:19:48Z |
At 12:45 PM 16/08/2007, you wrote:
1. Make sure the SP actually is a selectable procedure. If it
doesn't return its output via a SUSPEND statement, it's not a
selectable procedure.
2. What's the actual fieldname of the linking key? Is it ItemRef or
"ItemRef"? They're not the same.
3. Is ItemRef in the master a unique key? The M/D linkage will be
garbled if it's not.
4. And I suppose this should be the first check: have you actually
tested the SP independently, with parameters, to see whether it
returns the output you expect?
Helen
>HiI assume you mean Datasource. TIBOQuery doesn't have a Mastersource property.
>
>I have used TIBOQuerys as children in a number of master / child
>relationships without problem. However I have one query that gets
>results from a Stored Procedure that is failing
>
>The SQL is
>
>SELECT isp.xxx, isp.xxx....
>FROM Pr_ItemSellPrices (:ItemRef, 'T') isp
>
>
>I have the mastersource
>pointing to a datasource with a 'ItemRef' fieldA few things:
>however this doesn't seem to trigger. Any ideas?
1. Make sure the SP actually is a selectable procedure. If it
doesn't return its output via a SUSPEND statement, it's not a
selectable procedure.
2. What's the actual fieldname of the linking key? Is it ItemRef or
"ItemRef"? They're not the same.
3. Is ItemRef in the master a unique key? The M/D linkage will be
garbled if it's not.
4. And I suppose this should be the first check: have you actually
tested the SP independently, with parameters, to see whether it
returns the output you expect?
Helen