|
Re: returning single pieces of data in an oda [message #905054 is a reply to message #904885] |
Wed, 29 August 2012 15:41 |
|
James
Does the number stay the same for the entire dataset? If so, you could
always setup an outputParameter for the oda dataset and set the value there.
Jason
On 8/29/2012 6:21 AM, James Whitehead wrote:
> Hi,
>
> Sorry for 2 posts in 2 days, but I'm a bit stuck. I have created an oda
> that links to my webservice. It is returning a list of documents with
> data (text, date etc) I am putting this data into columns. So far so
> good. What is also returned is a count of how many documents have been
> returned overall.
>
> I would like to be able to capture this number and perhaps tie it to a
> parameter, but so far I can't figure out how to do this(all I can think
> of at them moment is making a column that just repeats this value for
> every row).
>
> Any help would be much appreciated.
>
> Thanks,
>
> James
|
|
|
|
Re: returning single pieces of data in an oda [message #905079 is a reply to message #905056] |
Wed, 29 August 2012 16:35 |
|
Output parameters do show up in the data set editor, but that does not
mean that they can be set. When they show up users can reference them
in a bound table by calling outputParams["myoutputparameter"]. If you
want to implement one you need to implement the getParameterMetaData()
method in the class that implements the IQuery. Also return true in
your class that implements IDataSetMetaData for the the
supportsOutParameters method.
Jason
On 8/29/2012 11:48 AM, James Whitehead wrote:
> Hi,
>
> It does stay the same, I thought about setting up an output parameter,
> but couldn't figure out where in the oda would be set? The only place
> parameters seem to be called is in the UI customDataSetWizardPage, which
> isn't ideal.
>
> Thanks for your help,
>
> James
|
|
|
Re: returning single pieces of data in an oda [message #905080 is a reply to message #905079] |
Wed, 29 August 2012 16:35 |
|
BTW if you think this will be to difficult for your users to find, I
would just add it as a column.
Jason
On 8/29/2012 12:35 PM, Jason Weathersby wrote:
> Output parameters do show up in the data set editor, but that does not
> mean that they can be set. When they show up users can reference them
> in a bound table by calling outputParams["myoutputparameter"]. If you
> want to implement one you need to implement the getParameterMetaData()
> method in the class that implements the IQuery. Also return true in
> your class that implements IDataSetMetaData for the the
> supportsOutParameters method.
>
> Jason
>
>
> On 8/29/2012 11:48 AM, James Whitehead wrote:
>> Hi,
>>
>> It does stay the same, I thought about setting up an output parameter,
>> but couldn't figure out where in the oda would be set? The only place
>> parameters seem to be called is in the UI customDataSetWizardPage, which
>> isn't ideal.
>>
>> Thanks for your help,
>>
>> James
>
|
|
|
Powered by
FUDForum. Page generated in 0.03737 seconds