Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » returning single pieces of data in an oda
returning single pieces of data in an oda [message #904885] Wed, 29 August 2012 10:21 Go to next message
James Whitehead is currently offline James WhiteheadFriend
Messages: 12
Registered: August 2012
Junior Member
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 #905054 is a reply to message #904885] Wed, 29 August 2012 15:41 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

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 #905056 is a reply to message #905054] Wed, 29 August 2012 15:48 Go to previous messageGo to next message
James Whitehead is currently offline James WhiteheadFriend
Messages: 12
Registered: August 2012
Junior Member
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 #905079 is a reply to message #905056] Wed, 29 August 2012 16:35 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

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 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

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
>
Previous Topic:[CentOS/Tomcat] Birt Viewer JDBC configured in XML
Next Topic:BIRT 2.6.1 Rhino java script support Question
Goto Forum:
  


Current Time: Sun Dec 05 00:03:51 GMT 2021

Powered by FUDForum. Page generated in 0.02073 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top