returning single pieces of data in an oda [message #904885] |
Wed, 29 August 2012 06:21  |
Eclipse User |
|
|
|
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 #905080 is a reply to message #905079] |
Wed, 29 August 2012 12:35  |
Eclipse User |
|
|
|
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.04710 seconds