Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » sending a report parameter as an argument to a function
sending a report parameter as an argument to a function [message #71349] Fri, 02 September 2005 16:22 Go to next message
Eclipse UserFriend
Originally posted by: sai.yelamanchili.gmail.com

Hi,
I want to send a report parameter as an argument to a function in a java
class. I'm working on Scripted Data Source. Does anyone have any ideas
on this.
Help Appreciated.
Thanks
Sai
Is this supported [message #71368 is a reply to message #71349] Fri, 02 September 2005 16:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sai.yelamanchili.gmail.com

Is there really a way to do this ? Does report parameters work with
Scripted Data Sources ? Is this supported ?
Thanks!

Sai Yelamanchili wrote:
> Hi,
> I want to send a report parameter as an argument to a function in a java
> class. I'm working on Scripted Data Source. Does anyone have any ideas
> on this.
> Help Appreciated.
> Thanks
> Sai
Re: Is this supported [message #71423 is a reply to message #71368] Fri, 02 September 2005 17:46 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Sai,
You should be able to do this.
As an example I have a class that I use as an RSS reader and in my open
method I use a parameter to set the feed.

open method on Data Set

brss = new Packages.org.birt.examples.sds.BirtRssReader();
brss..setFeed(params["RssFeed"]);
brss.readFeed();
....

Jason Weathersby
BIRT PMC



"Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
news:df9vb6$6a3$1@news.eclipse.org...
> Is there really a way to do this ? Does report parameters work with
> Scripted Data Sources ? Is this supported ?
> Thanks!
>
> Sai Yelamanchili wrote:
>> Hi,
>> I want to send a report parameter as an argument to a function in a java
>> class. I'm working on Scripted Data Source. Does anyone have any ideas on
>> this.
>> Help Appreciated.
>> Thanks
>> Sai
Re: Is this supported [message #71461 is a reply to message #71423] Fri, 02 September 2005 18:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sai.yelamanchili.gmail.com

Jason,
really looks like its gonna help me. Can you make this a little clear.
Suppose, if I'm referencing a class A and invoking function B(with
argument) of that class, I mean

In open() function:

importPackage(Packages x.x.x.x.);
var x = new A().B();

and now I need a argument to be set to B from a user input, how do I do
that ?

Thanks much!
Sai

Jason Weathersby wrote:
> Sai,
> You should be able to do this.
> As an example I have a class that I use as an RSS reader and in my open
> method I use a parameter to set the feed.
>
> open method on Data Set
>
> brss = new Packages.org.birt.examples.sds.BirtRssReader();
> brss..setFeed(params["RssFeed"]);
> brss.readFeed();
> ...
>
> Jason Weathersby
> BIRT PMC
>
>
>
> "Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
> news:df9vb6$6a3$1@news.eclipse.org...
>
>>Is there really a way to do this ? Does report parameters work with
>>Scripted Data Sources ? Is this supported ?
>>Thanks!
>>
>>Sai Yelamanchili wrote:
>>
>>>Hi,
>>>I want to send a report parameter as an argument to a function in a java
>>>class. I'm working on Scripted Data Source. Does anyone have any ideas on
>>>this.
>>>Help Appreciated.
>>>Thanks
>>>Sai
>
>
>
Re: Is this supported [message #71480 is a reply to message #71461] Fri, 02 September 2005 18:36 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Sai,

You should be able to just add
var x = new A().B(params["yourparametername"]);
One caveat. Dont do this in the open method of the Data Source. I believe
there is a problem with this.
Try it on the Data Set open method.

Jason Weathersby
BIRT PMC


"Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
news:dfa5mo$etj$1@news.eclipse.org...
> Jason,
> really looks like its gonna help me. Can you make this a little clear.
> Suppose, if I'm referencing a class A and invoking function B(with
> argument) of that class, I mean
>
> In open() function:
>
> importPackage(Packages x.x.x.x.);
> var x = new A().B();
>
> and now I need a argument to be set to B from a user input, how do I do
> that ?
>
> Thanks much!
> Sai
>
> Jason Weathersby wrote:
>> Sai,
>> You should be able to do this.
>> As an example I have a class that I use as an RSS reader and in my open
>> method I use a parameter to set the feed.
>>
>> open method on Data Set
>>
>> brss = new Packages.org.birt.examples.sds.BirtRssReader();
>> brss..setFeed(params["RssFeed"]);
>> brss.readFeed();
>> ...
>>
>> Jason Weathersby
>> BIRT PMC
>>
>>
>>
>> "Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>> news:df9vb6$6a3$1@news.eclipse.org...
>>
>>>Is there really a way to do this ? Does report parameters work with
>>>Scripted Data Sources ? Is this supported ?
>>>Thanks!
>>>
>>>Sai Yelamanchili wrote:
>>>
>>>>Hi,
>>>>I want to send a report parameter as an argument to a function in a java
>>>>class. I'm working on Scripted Data Source. Does anyone have any ideas
>>>>on this.
>>>>Help Appreciated.
>>>>Thanks
>>>>Sai
>>
>>
Thanks [message #71499 is a reply to message #71480] Fri, 02 September 2005 18:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sai.yelamanchili.gmail.com

Jason,
Thanks much!.
I'm trying this.
yeah I was talking abt the open method in Data Set only.

Thanks
Sai


Jason Weathersby wrote:
> Sai,
>
> You should be able to just add
> var x = new A().B(params["yourparametername"]);
> One caveat. Dont do this in the open method of the Data Source. I believe
> there is a problem with this.
> Try it on the Data Set open method.
>
> Jason Weathersby
> BIRT PMC
>
>
> "Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
> news:dfa5mo$etj$1@news.eclipse.org...
>
>>Jason,
>>really looks like its gonna help me. Can you make this a little clear.
>>Suppose, if I'm referencing a class A and invoking function B(with
>>argument) of that class, I mean
>>
>>In open() function:
>>
>>importPackage(Packages x.x.x.x.);
>>var x = new A().B();
>>
>>and now I need a argument to be set to B from a user input, how do I do
>>that ?
>>
>>Thanks much!
>>Sai
>>
>>Jason Weathersby wrote:
>>
>>>Sai,
>>>You should be able to do this.
>>>As an example I have a class that I use as an RSS reader and in my open
>>>method I use a parameter to set the feed.
>>>
>>>open method on Data Set
>>>
>>>brss = new Packages.org.birt.examples.sds.BirtRssReader();
>>>brss..setFeed(params["RssFeed"]);
>>>brss.readFeed();
>>>...
>>>
>>>Jason Weathersby
>>>BIRT PMC
>>>
>>>
>>>
>>>"Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>>news:df9vb6$6a3$1@news.eclipse.org...
>>>
>>>
>>>>Is there really a way to do this ? Does report parameters work with
>>>>Scripted Data Sources ? Is this supported ?
>>>>Thanks!
>>>>
>>>>Sai Yelamanchili wrote:
>>>>
>>>>
>>>>>Hi,
>>>>>I want to send a report parameter as an argument to a function in a java
>>>>>class. I'm working on Scripted Data Source. Does anyone have any ideas
>>>>>on this.
>>>>>Help Appreciated.
>>>>>Thanks
>>>>>Sai
>>>
>>>
>
Error [message #71518 is a reply to message #71480] Fri, 02 September 2005 18:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sai.yelamanchili.gmail.com

Jason
Can You please tell mewhy do I get the following error :
"Some required parameter values are not set or set to incompatible data
type." what parameter values is this referring to ?

I appreciate Your time and effort.

Thanks i advance
Sai

Jason Weathersby wrote:
> Sai,
>
> You should be able to just add
> var x = new A().B(params["yourparametername"]);
> One caveat. Dont do this in the open method of the Data Source. I believe
> there is a problem with this.
> Try it on the Data Set open method.
>
> Jason Weathersby
> BIRT PMC
>
>
> "Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
> news:dfa5mo$etj$1@news.eclipse.org...
>
>>Jason,
>>really looks like its gonna help me. Can you make this a little clear.
>>Suppose, if I'm referencing a class A and invoking function B(with
>>argument) of that class, I mean
>>
>>In open() function:
>>
>>importPackage(Packages x.x.x.x.);
>>var x = new A().B();
>>
>>and now I need a argument to be set to B from a user input, how do I do
>>that ?
>>
>>Thanks much!
>>Sai
>>
>>Jason Weathersby wrote:
>>
>>>Sai,
>>>You should be able to do this.
>>>As an example I have a class that I use as an RSS reader and in my open
>>>method I use a parameter to set the feed.
>>>
>>>open method on Data Set
>>>
>>>brss = new Packages.org.birt.examples.sds.BirtRssReader();
>>>brss..setFeed(params["RssFeed"]);
>>>brss.readFeed();
>>>...
>>>
>>>Jason Weathersby
>>>BIRT PMC
>>>
>>>
>>>
>>>"Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>>news:df9vb6$6a3$1@news.eclipse.org...
>>>
>>>
>>>>Is there really a way to do this ? Does report parameters work with
>>>>Scripted Data Sources ? Is this supported ?
>>>>Thanks!
>>>>
>>>>Sai Yelamanchili wrote:
>>>>
>>>>
>>>>>Hi,
>>>>>I want to send a report parameter as an argument to a function in a java
>>>>>class. I'm working on Scripted Data Source. Does anyone have any ideas
>>>>>on this.
>>>>>Help Appreciated.
>>>>>Thanks
>>>>>Sai
>>>
>>>
>
Error [message #71541 is a reply to message #71480] Fri, 02 September 2005 18:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sai.yelamanchili.gmail.com

Jason
Can You please tell me why do I get the following error :
"Some required parameter values are not set or set to incompatible data
type."

what parameter values is this referring to ?

I appreciate Your time and effort.

Thanks in advance
Sai

Jason Weathersby wrote:
> Sai,
>
> You should be able to just add
> var x = new A().B(params["yourparametername"]);
> One caveat. Dont do this in the open method of the Data Source. I believe
> there is a problem with this.
> Try it on the Data Set open method.
>
> Jason Weathersby
> BIRT PMC
>
>
> "Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
> news:dfa5mo$etj$1@news.eclipse.org...
>
>>Jason,
>>really looks like its gonna help me. Can you make this a little clear.
>>Suppose, if I'm referencing a class A and invoking function B(with
>>argument) of that class, I mean
>>
>>In open() function:
>>
>>importPackage(Packages x.x.x.x.);
>>var x = new A().B();
>>
>>and now I need a argument to be set to B from a user input, how do I do
>>that ?
>>
>>Thanks much!
>>Sai
>>
>>Jason Weathersby wrote:
>>
>>>Sai,
>>>You should be able to do this.
>>>As an example I have a class that I use as an RSS reader and in my open
>>>method I use a parameter to set the feed.
>>>
>>>open method on Data Set
>>>
>>>brss = new Packages.org.birt.examples.sds.BirtRssReader();
>>>brss..setFeed(params["RssFeed"]);
>>>brss.readFeed();
>>>...
>>>
>>>Jason Weathersby
>>>BIRT PMC
>>>
>>>
>>>
>>>"Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>>news:df9vb6$6a3$1@news.eclipse.org...
>>>
>>>
>>>>Is there really a way to do this ? Does report parameters work with
>>>>Scripted Data Sources ? Is this supported ?
>>>>Thanks!
>>>>
>>>>Sai Yelamanchili wrote:
>>>>
>>>>
>>>>>Hi,
>>>>>I want to send a report parameter as an argument to a function in a java
>>>>>class. I'm working on Scripted Data Source. Does anyone have any ideas
>>>>>on this.
>>>>>Help Appreciated.
>>>>>Thanks
>>>>>Sai
>>>
>>>
>
Re: Error [message #71579 is a reply to message #71541] Fri, 02 September 2005 19:07 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Sai,
Is your paramater a string?
If so make sure its double quoted.

Jason Weathersby
BIRT PMC

"Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
news:dfa75k$gme$2@news.eclipse.org...
> Jason
> Can You please tell me why do I get the following error :
> "Some required parameter values are not set or set to incompatible data
> type."
>
> what parameter values is this referring to ?
>
> I appreciate Your time and effort.
>
> Thanks in advance
> Sai
>
> Jason Weathersby wrote:
>> Sai,
>>
>> You should be able to just add
>> var x = new A().B(params["yourparametername"]);
>> One caveat. Dont do this in the open method of the Data Source. I
>> believe there is a problem with this.
>> Try it on the Data Set open method.
>>
>> Jason Weathersby
>> BIRT PMC
>>
>>
>> "Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>> news:dfa5mo$etj$1@news.eclipse.org...
>>
>>>Jason,
>>>really looks like its gonna help me. Can you make this a little clear.
>>>Suppose, if I'm referencing a class A and invoking function B(with
>>>argument) of that class, I mean
>>>
>>>In open() function:
>>>
>>>importPackage(Packages x.x.x.x.);
>>>var x = new A().B();
>>>
>>>and now I need a argument to be set to B from a user input, how do I do
>>>that ?
>>>
>>>Thanks much!
>>>Sai
>>>
>>>Jason Weathersby wrote:
>>>
>>>>Sai,
>>>>You should be able to do this.
>>>>As an example I have a class that I use as an RSS reader and in my open
>>>>method I use a parameter to set the feed.
>>>>
>>>>open method on Data Set
>>>>
>>>>brss = new Packages.org.birt.examples.sds.BirtRssReader();
>>>>brss..setFeed(params["RssFeed"]);
>>>>brss.readFeed();
>>>>...
>>>>
>>>>Jason Weathersby
>>>>BIRT PMC
>>>>
>>>>
>>>>
>>>>"Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>>>news:df9vb6$6a3$1@news.eclipse.org...
>>>>
>>>>
>>>>>Is there really a way to do this ? Does report parameters work with
>>>>>Scripted Data Sources ? Is this supported ?
>>>>>Thanks!
>>>>>
>>>>>Sai Yelamanchili wrote:
>>>>>
>>>>>
>>>>>>Hi,
>>>>>>I want to send a report parameter as an argument to a function in a
>>>>>>java class. I'm working on Scripted Data Source. Does anyone have any
>>>>>>ideas on this.
>>>>>>Help Appreciated.
>>>>>>Thanks
>>>>>>Sai
>>>>
>>>>
>>
Re: Error [message #71597 is a reply to message #71579] Fri, 02 September 2005 19:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sai.yelamanchili.gmail.com

Jason,
Its a date paramater. Its of Type DateTime.

Thanks


Jason Weathersby wrote:
> Sai,
> Is your paramater a string?
> If so make sure its double quoted.
>
> Jason Weathersby
> BIRT PMC
>
> "Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
> news:dfa75k$gme$2@news.eclipse.org...
>
>>Jason
>>Can You please tell me why do I get the following error :
>>"Some required parameter values are not set or set to incompatible data
>>type."
>>
>>what parameter values is this referring to ?
>>
>> I appreciate Your time and effort.
>>
>>Thanks in advance
>>Sai
>>
>>Jason Weathersby wrote:
>>
>>>Sai,
>>>
>>>You should be able to just add
>>>var x = new A().B(params["yourparametername"]);
>>>One caveat. Dont do this in the open method of the Data Source. I
>>>believe there is a problem with this.
>>>Try it on the Data Set open method.
>>>
>>>Jason Weathersby
>>>BIRT PMC
>>>
>>>
>>>"Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>>news:dfa5mo$etj$1@news.eclipse.org...
>>>
>>>
>>>>Jason,
>>>>really looks like its gonna help me. Can you make this a little clear.
>>>>Suppose, if I'm referencing a class A and invoking function B(with
>>>>argument) of that class, I mean
>>>>
>>>>In open() function:
>>>>
>>>>importPackage(Packages x.x.x.x.);
>>>>var x = new A().B();
>>>>
>>>>and now I need a argument to be set to B from a user input, how do I do
>>>>that ?
>>>>
>>>>Thanks much!
>>>>Sai
>>>>
>>>>Jason Weathersby wrote:
>>>>
>>>>
>>>>>Sai,
>>>>>You should be able to do this.
>>>>>As an example I have a class that I use as an RSS reader and in my open
>>>>>method I use a parameter to set the feed.
>>>>>
>>>>>open method on Data Set
>>>>>
>>>>>brss = new Packages.org.birt.examples.sds.BirtRssReader();
>>>>>brss..setFeed(params["RssFeed"]);
>>>>>brss.readFeed();
>>>>>...
>>>>>
>>>>>Jason Weathersby
>>>>>BIRT PMC
>>>>>
>>>>>
>>>>>
>>>>>"Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>>>>news:df9vb6$6a3$1@news.eclipse.org...
>>>>>
>>>>>
>>>>>
>>>>>>Is there really a way to do this ? Does report parameters work with
>>>>>>Scripted Data Sources ? Is this supported ?
>>>>>>Thanks!
>>>>>>
>>>>>>Sai Yelamanchili wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>>Hi,
>>>>>>>I want to send a report parameter as an argument to a function in a
>>>>>>>java class. I'm working on Scripted Data Source. Does anyone have any
>>>>>>>ideas on this.
>>>>>>>Help Appreciated.
>>>>>>>Thanks
>>>>>>>Sai
>>>>>
>>>>>
>
>
Re: Error [message #71654 is a reply to message #71597] Fri, 02 September 2005 19:33 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Sai,
Have you tried
var dt = new Date(params["yourparameter"]);
new A().B( dt);

Jason Weathersby
BIRT PMC
"Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
news:dfa88u$ich$1@news.eclipse.org...
> Jason,
> Its a date paramater. Its of Type DateTime.
>
> Thanks
>
>
> Jason Weathersby wrote:
>> Sai,
>> Is your paramater a string?
>> If so make sure its double quoted.
>>
>> Jason Weathersby
>> BIRT PMC
>>
>> "Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>> news:dfa75k$gme$2@news.eclipse.org...
>>
>>>Jason
>>>Can You please tell me why do I get the following error :
>>>"Some required parameter values are not set or set to incompatible data
>>>type."
>>>
>>>what parameter values is this referring to ?
>>>
>>> I appreciate Your time and effort.
>>>
>>>Thanks in advance
>>>Sai
>>>
>>>Jason Weathersby wrote:
>>>
>>>>Sai,
>>>>
>>>>You should be able to just add
>>>>var x = new A().B(params["yourparametername"]);
>>>>One caveat. Dont do this in the open method of the Data Source. I
>>>>believe there is a problem with this.
>>>>Try it on the Data Set open method.
>>>>
>>>>Jason Weathersby
>>>>BIRT PMC
>>>>
>>>>
>>>>"Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>>>news:dfa5mo$etj$1@news.eclipse.org...
>>>>
>>>>
>>>>>Jason,
>>>>>really looks like its gonna help me. Can you make this a little clear.
>>>>>Suppose, if I'm referencing a class A and invoking function B(with
>>>>>argument) of that class, I mean
>>>>>
>>>>>In open() function:
>>>>>
>>>>>importPackage(Packages x.x.x.x.);
>>>>>var x = new A().B();
>>>>>
>>>>>and now I need a argument to be set to B from a user input, how do I do
>>>>>that ?
>>>>>
>>>>>Thanks much!
>>>>>Sai
>>>>>
>>>>>Jason Weathersby wrote:
>>>>>
>>>>>
>>>>>>Sai,
>>>>>>You should be able to do this.
>>>>>>As an example I have a class that I use as an RSS reader and in my
>>>>>>open method I use a parameter to set the feed.
>>>>>>
>>>>>>open method on Data Set
>>>>>>
>>>>>>brss = new Packages.org.birt.examples.sds.BirtRssReader();
>>>>>>brss..setFeed(params["RssFeed"]);
>>>>>>brss.readFeed();
>>>>>>...
>>>>>>
>>>>>>Jason Weathersby
>>>>>>BIRT PMC
>>>>>>
>>>>>>
>>>>>>
>>>>>>"Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>>>>>news:df9vb6$6a3$1@news.eclipse.org...
>>>>>>
>>>>>>
>>>>>>
>>>>>>>Is there really a way to do this ? Does report parameters work with
>>>>>>>Scripted Data Sources ? Is this supported ?
>>>>>>>Thanks!
>>>>>>>
>>>>>>>Sai Yelamanchili wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>Hi,
>>>>>>>>I want to send a report parameter as an argument to a function in a
>>>>>>>>java class. I'm working on Scripted Data Source. Does anyone have
>>>>>>>>any ideas on this.
>>>>>>>>Help Appreciated.
>>>>>>>>Thanks
>>>>>>>>Sai
>>>>>>
>>>>>>
>>
Re: Error [message #71673 is a reply to message #71654] Fri, 02 September 2005 19:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sai.yelamanchili.gmail.com

Yes I did,
Error persists.

Thanks
Sai



Jason Weathersby wrote:
> Sai,
> Have you tried
> var dt = new Date(params["yourparameter"]);
> new A().B( dt);
>
> Jason Weathersby
> BIRT PMC
> "Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
> news:dfa88u$ich$1@news.eclipse.org...
>
>>Jason,
>>Its a date paramater. Its of Type DateTime.
>>
>>Thanks
>>
>>
>>Jason Weathersby wrote:
>>
>>>Sai,
>>>Is your paramater a string?
>>>If so make sure its double quoted.
>>>
>>>Jason Weathersby
>>>BIRT PMC
>>>
>>>"Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>>news:dfa75k$gme$2@news.eclipse.org...
>>>
>>>
>>>>Jason
>>>>Can You please tell me why do I get the following error :
>>>>"Some required parameter values are not set or set to incompatible data
>>>>type."
>>>>
>>>>what parameter values is this referring to ?
>>>>
>>>>I appreciate Your time and effort.
>>>>
>>>>Thanks in advance
>>>>Sai
>>>>
>>>>Jason Weathersby wrote:
>>>>
>>>>
>>>>>Sai,
>>>>>
>>>>>You should be able to just add
>>>>>var x = new A().B(params["yourparametername"]);
>>>>>One caveat. Dont do this in the open method of the Data Source. I
>>>>>believe there is a problem with this.
>>>>>Try it on the Data Set open method.
>>>>>
>>>>>Jason Weathersby
>>>>>BIRT PMC
>>>>>
>>>>>
>>>>>"Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>>>>news:dfa5mo$etj$1@news.eclipse.org...
>>>>>
>>>>>
>>>>>
>>>>>>Jason,
>>>>>>really looks like its gonna help me. Can you make this a little clear.
>>>>>>Suppose, if I'm referencing a class A and invoking function B(with
>>>>>>argument) of that class, I mean
>>>>>>
>>>>>>In open() function:
>>>>>>
>>>>>>importPackage(Packages x.x.x.x.);
>>>>>>var x = new A().B();
>>>>>>
>>>>>>and now I need a argument to be set to B from a user input, how do I do
>>>>>>that ?
>>>>>>
>>>>>>Thanks much!
>>>>>>Sai
>>>>>>
>>>>>>Jason Weathersby wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>>Sai,
>>>>>>>You should be able to do this.
>>>>>>>As an example I have a class that I use as an RSS reader and in my
>>>>>>>open method I use a parameter to set the feed.
>>>>>>>
>>>>>>>open method on Data Set
>>>>>>>
>>>>>>>brss = new Packages.org.birt.examples.sds.BirtRssReader();
>>>>>>>brss..setFeed(params["RssFeed"]);
>>>>>>>brss.readFeed();
>>>>>>>...
>>>>>>>
>>>>>>>Jason Weathersby
>>>>>>>BIRT PMC
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>"Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>>>>>>news:df9vb6$6a3$1@news.eclipse.org...
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>Is there really a way to do this ? Does report parameters work with
>>>>>>>>Scripted Data Sources ? Is this supported ?
>>>>>>>>Thanks!
>>>>>>>>
>>>>>>>>Sai Yelamanchili wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>>Hi,
>>>>>>>>>I want to send a report parameter as an argument to a function in a
>>>>>>>>>java class. I'm working on Scripted Data Source. Does anyone have
>>>>>>>>>any ideas on this.
>>>>>>>>>Help Appreciated.
>>>>>>>>>Thanks
>>>>>>>>>Sai
>>>>>>>
>>>>>>>
>
Re: Error [message #71692 is a reply to message #71673] Fri, 02 September 2005 20:00 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Sai,

I had a similar error in the past with a string parameter.
Have you checked the log file for anything under
org.eclipse.birt.report.viewer_1.0.1\birt\logs
Additionally is this the only paramter?

Jason Weathersby
BIRT PMC

"Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
news:dfa9m5$k4r$1@news.eclipse.org...
>
> Yes I did,
> Error persists.
>
> Thanks
> Sai
>
>
>
> Jason Weathersby wrote:
>> Sai,
>> Have you tried
>> var dt = new Date(params["yourparameter"]);
>> new A().B( dt);
>>
>> Jason Weathersby
>> BIRT PMC
>> "Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>> news:dfa88u$ich$1@news.eclipse.org...
>>
>>>Jason,
>>>Its a date paramater. Its of Type DateTime.
>>>
>>>Thanks
>>>
>>>
>>>Jason Weathersby wrote:
>>>
>>>>Sai,
>>>>Is your paramater a string?
>>>>If so make sure its double quoted.
>>>>
>>>>Jason Weathersby
>>>>BIRT PMC
>>>>
>>>>"Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>>>news:dfa75k$gme$2@news.eclipse.org...
>>>>
>>>>
>>>>>Jason
>>>>>Can You please tell me why do I get the following error :
>>>>>"Some required parameter values are not set or set to incompatible data
>>>>>type."
>>>>>
>>>>>what parameter values is this referring to ?
>>>>>
>>>>>I appreciate Your time and effort.
>>>>>
>>>>>Thanks in advance
>>>>>Sai
>>>>>
>>>>>Jason Weathersby wrote:
>>>>>
>>>>>
>>>>>>Sai,
>>>>>>
>>>>>>You should be able to just add
>>>>>>var x = new A().B(params["yourparametername"]);
>>>>>>One caveat. Dont do this in the open method of the Data Source. I
>>>>>>believe there is a problem with this.
>>>>>>Try it on the Data Set open method.
>>>>>>
>>>>>>Jason Weathersby
>>>>>>BIRT PMC
>>>>>>
>>>>>>
>>>>>>"Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>>>>>news:dfa5mo$etj$1@news.eclipse.org...
>>>>>>
>>>>>>
>>>>>>
>>>>>>>Jason,
>>>>>>>really looks like its gonna help me. Can you make this a little
>>>>>>>clear.
>>>>>>>Suppose, if I'm referencing a class A and invoking function B(with
>>>>>>>argument) of that class, I mean
>>>>>>>
>>>>>>>In open() function:
>>>>>>>
>>>>>>>importPackage(Packages x.x.x.x.);
>>>>>>>var x = new A().B();
>>>>>>>
>>>>>>>and now I need a argument to be set to B from a user input, how do I
>>>>>>>do that ?
>>>>>>>
>>>>>>>Thanks much!
>>>>>>>Sai
>>>>>>>
>>>>>>>Jason Weathersby wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>Sai,
>>>>>>>>You should be able to do this.
>>>>>>>>As an example I have a class that I use as an RSS reader and in my
>>>>>>>>open method I use a parameter to set the feed.
>>>>>>>>
>>>>>>>>open method on Data Set
>>>>>>>>
>>>>>>>>brss = new Packages.org.birt.examples.sds.BirtRssReader();
>>>>>>>>brss..setFeed(params["RssFeed"]);
>>>>>>>>brss.readFeed();
>>>>>>>>...
>>>>>>>>
>>>>>>>>Jason Weathersby
>>>>>>>>BIRT PMC
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>"Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>>>>>>>news:df9vb6$6a3$1@news.eclipse.org...
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>>Is there really a way to do this ? Does report parameters work with
>>>>>>>>>Scripted Data Sources ? Is this supported ?
>>>>>>>>>Thanks!
>>>>>>>>>
>>>>>>>>>Sai Yelamanchili wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>>Hi,
>>>>>>>>>>I want to send a report parameter as an argument to a function in
>>>>>>>>>>a java class. I'm working on Scripted Data Source. Does anyone
>>>>>>>>>>have any ideas on this.
>>>>>>>>>>Help Appreciated.
>>>>>>>>>>Thanks
>>>>>>>>>>Sai
>>>>>>>>
>>>>>>>>
>>
Re: Error [message #71709 is a reply to message #71692] Fri, 02 September 2005 20:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sai.yelamanchili.gmail.com

Jason
This is the only parameter.

Thanks
sai

Jason Weathersby wrote:
> Sai,
>
> I had a similar error in the past with a string parameter.
> Have you checked the log file for anything under
> org.eclipse.birt.report.viewer_1.0.1\birt\logs
> Additionally is this the only paramter?
>
> Jason Weathersby
> BIRT PMC
>
> "Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
> news:dfa9m5$k4r$1@news.eclipse.org...
>
>>Yes I did,
>>Error persists.
>>
>>Thanks
>>Sai
>>
>>
>>
>>Jason Weathersby wrote:
>>
>>>Sai,
>>>Have you tried
>>>var dt = new Date(params["yourparameter"]);
>>>new A().B( dt);
>>>
>>>Jason Weathersby
>>>BIRT PMC
>>>"Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>>news:dfa88u$ich$1@news.eclipse.org...
>>>
>>>
>>>>Jason,
>>>>Its a date paramater. Its of Type DateTime.
>>>>
>>>>Thanks
>>>>
>>>>
>>>>Jason Weathersby wrote:
>>>>
>>>>
>>>>>Sai,
>>>>>Is your paramater a string?
>>>>>If so make sure its double quoted.
>>>>>
>>>>>Jason Weathersby
>>>>>BIRT PMC
>>>>>
>>>>>"Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>>>>news:dfa75k$gme$2@news.eclipse.org...
>>>>>
>>>>>
>>>>>
>>>>>>Jason
>>>>>>Can You please tell me why do I get the following error :
>>>>>>"Some required parameter values are not set or set to incompatible data
>>>>>>type."
>>>>>>
>>>>>>what parameter values is this referring to ?
>>>>>>
>>>>>>I appreciate Your time and effort.
>>>>>>
>>>>>>Thanks in advance
>>>>>>Sai
>>>>>>
>>>>>>Jason Weathersby wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>>Sai,
>>>>>>>
>>>>>>>You should be able to just add
>>>>>>>var x = new A().B(params["yourparametername"]);
>>>>>>>One caveat. Dont do this in the open method of the Data Source. I
>>>>>>>believe there is a problem with this.
>>>>>>>Try it on the Data Set open method.
>>>>>>>
>>>>>>>Jason Weathersby
>>>>>>>BIRT PMC
>>>>>>>
>>>>>>>
>>>>>>>"Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>>>>>>news:dfa5mo$etj$1@news.eclipse.org...
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>Jason,
>>>>>>>>really looks like its gonna help me. Can you make this a little
>>>>>>>>clear.
>>>>>>>>Suppose, if I'm referencing a class A and invoking function B(with
>>>>>>>>argument) of that class, I mean
>>>>>>>>
>>>>>>>>In open() function:
>>>>>>>>
>>>>>>>>importPackage(Packages x.x.x.x.);
>>>>>>>>var x = new A().B();
>>>>>>>>
>>>>>>>>and now I need a argument to be set to B from a user input, how do I
>>>>>>>>do that ?
>>>>>>>>
>>>>>>>>Thanks much!
>>>>>>>>Sai
>>>>>>>>
>>>>>>>>Jason Weathersby wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>>Sai,
>>>>>>>>>You should be able to do this.
>>>>>>>>>As an example I have a class that I use as an RSS reader and in my
>>>>>>>>>open method I use a parameter to set the feed.
>>>>>>>>>
>>>>>>>>>open method on Data Set
>>>>>>>>>
>>>>>>>>>brss = new Packages.org.birt.examples.sds.BirtRssReader();
>>>>>>>>>brss..setFeed(params["RssFeed"]);
>>>>>>>>>brss.readFeed();
>>>>>>>>>...
>>>>>>>>>
>>>>>>>>>Jason Weathersby
>>>>>>>>>BIRT PMC
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>"Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>>>>>>>>news:df9vb6$6a3$1@news.eclipse.org...
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>>Is there really a way to do this ? Does report parameters work with
>>>>>>>>>>Scripted Data Sources ? Is this supported ?
>>>>>>>>>>Thanks!
>>>>>>>>>>
>>>>>>>>>>Sai Yelamanchili wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>>Hi,
>>>>>>>>>>>I want to send a report parameter as an argument to a function in
>>>>>>>>>>>a java class. I'm working on Scripted Data Source. Does anyone
>>>>>>>>>>>have any ideas on this.
>>>>>>>>>>>Help Appreciated.
>>>>>>>>>>>Thanks
>>>>>>>>>>>Sai
>>>>>>>>>
>>>>>>>>>
>
>
Detailed Idea [message #72101 is a reply to message #71709] Mon, 05 September 2005 17:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sai.yelamanchili.gmail.com

Jason
What I'm exactly doing is :
I have an object A and a class B. Class B has a function that takes an
argument "x", which is a date and returns ArrayList of A objects.
Now, I have to use the Scripetd Data Source to make a report from the
returned ArrayList.
In my open and fetch of Data Set, I'm usig the following code:

Open()
importPackage(Packages.com.rpc.core.accounting.model);
dt = new Date(params["input"]);
c = new B().A(dt);
itrLista = c.iterator();

Fetch()
while(itrLista.hasNext())
{
a = itrLista.next();
row["1"]= a.get1();
row["2"]= a.get2();
row["3"]= a.get3();
row["4"]= a.get4();
row["5"]= a.5();
return true;
}
return false;

I get the following error :
" Some required parameter values are not set or set to incompatible data
type."

1. while creating the report parameter input, Do I have to select type
as String or Datetime.
And any other ideas how I can proceed with this. Cudnt't find any
online-help. I'm actually new to reporting.
I appreciate Ur help.

Thanks
Sai


Sai Yelamanchili wrote:
> Jason
> This is the only parameter.
>
> Thanks
> sai
>
> Jason Weathersby wrote:
>
>> Sai,
>>
>> I had a similar error in the past with a string parameter.
>> Have you checked the log file for anything under
>> org.eclipse.birt.report.viewer_1.0.1\birt\logs
>> Additionally is this the only paramter?
>>
>> Jason Weathersby
>> BIRT PMC
>>
>> "Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>> news:dfa9m5$k4r$1@news.eclipse.org...
>>
>>> Yes I did,
>>> Error persists.
>>>
>>> Thanks
>>> Sai
>>>
>>>
>>>
>>> Jason Weathersby wrote:
>>>
>>>> Sai,
>>>> Have you tried
>>>> var dt = new Date(params["yourparameter"]);
>>>> new A().B( dt);
>>>>
>>>> Jason Weathersby
>>>> BIRT PMC
>>>> "Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>>> news:dfa88u$ich$1@news.eclipse.org...
>>>>
>>>>
>>>>> Jason,
>>>>> Its a date paramater. Its of Type DateTime.
>>>>>
>>>>> Thanks
>>>>>
>>>>>
>>>>> Jason Weathersby wrote:
>>>>>
>>>>>
>>>>>> Sai,
>>>>>> Is your paramater a string?
>>>>>> If so make sure its double quoted.
>>>>>>
>>>>>> Jason Weathersby
>>>>>> BIRT PMC
>>>>>>
>>>>>> "Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>>>>> news:dfa75k$gme$2@news.eclipse.org...
>>>>>>
>>>>>>
>>>>>>
>>>>>>> Jason
>>>>>>> Can You please tell me why do I get the following error :
>>>>>>> "Some required parameter values are not set or set to
>>>>>>> incompatible data type."
>>>>>>>
>>>>>>> what parameter values is this referring to ?
>>>>>>>
>>>>>>> I appreciate Your time and effort.
>>>>>>>
>>>>>>> Thanks in advance
>>>>>>> Sai
>>>>>>>
>>>>>>> Jason Weathersby wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> Sai,
>>>>>>>>
>>>>>>>> You should be able to just add
>>>>>>>> var x = new A().B(params["yourparametername"]);
>>>>>>>> One caveat. Dont do this in the open method of the Data Source.
>>>>>>>> I believe there is a problem with this.
>>>>>>>> Try it on the Data Set open method.
>>>>>>>>
>>>>>>>> Jason Weathersby
>>>>>>>> BIRT PMC
>>>>>>>>
>>>>>>>>
>>>>>>>> "Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>>>>>>> news:dfa5mo$etj$1@news.eclipse.org...
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>> Jason,
>>>>>>>>> really looks like its gonna help me. Can you make this a little
>>>>>>>>> clear.
>>>>>>>>> Suppose, if I'm referencing a class A and invoking function
>>>>>>>>> B(with argument) of that class, I mean
>>>>>>>>>
>>>>>>>>> In open() function:
>>>>>>>>>
>>>>>>>>> importPackage(Packages x.x.x.x.);
>>>>>>>>> var x = new A().B();
>>>>>>>>>
>>>>>>>>> and now I need a argument to be set to B from a user input, how
>>>>>>>>> do I do that ?
>>>>>>>>>
>>>>>>>>> Thanks much!
>>>>>>>>> Sai
>>>>>>>>>
>>>>>>>>> Jason Weathersby wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> Sai,
>>>>>>>>>> You should be able to do this.
>>>>>>>>>> As an example I have a class that I use as an RSS reader and
>>>>>>>>>> in my open method I use a parameter to set the feed.
>>>>>>>>>>
>>>>>>>>>> open method on Data Set
>>>>>>>>>>
>>>>>>>>>> brss = new Packages.org.birt.examples.sds.BirtRssReader();
>>>>>>>>>> brss..setFeed(params["RssFeed"]);
>>>>>>>>>> brss.readFeed();
>>>>>>>>>> ...
>>>>>>>>>>
>>>>>>>>>> Jason Weathersby
>>>>>>>>>> BIRT PMC
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> "Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in
>>>>>>>>>> message news:df9vb6$6a3$1@news.eclipse.org...
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>> Is there really a way to do this ? Does report parameters
>>>>>>>>>>> work with Scripted Data Sources ? Is this supported ?
>>>>>>>>>>> Thanks!
>>>>>>>>>>>
>>>>>>>>>>> Sai Yelamanchili wrote:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>> Hi,
>>>>>>>>>>>> I want to send a report parameter as an argument to a
>>>>>>>>>>>> function in a java class. I'm working on Scripted Data
>>>>>>>>>>>> Source. Does anyone have any ideas on this.
>>>>>>>>>>>> Help Appreciated.
>>>>>>>>>>>> Thanks
>>>>>>>>>>>> Sai
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>
>>
Re: Detailed Idea [message #72121 is a reply to message #72101] Mon, 05 September 2005 18:42 Go to previous message
Eclipse UserFriend
Originally posted by: sai.yelamanchili.gmail.com

Jason
What I'm exactly doing is :
I have an object A and a class B. Class B has a function that takes an
argument "x", which is a date and returns ArrayList of A objects.
Now, I have to use the Scripetd Data Source to make a report from the
returned ArrayList.
In my open and fetch of Data Set, I'm usig the following code:

Open()
importPackage(Packages.com.rpc.core.accounting.model);
dt = new Date(params["input"]);
c = new B().A(dt);
itrLista = c.iterator();

Fetch()
while(itrLista.hasNext())
{
a = itrLista.next();
row["1"]= a.get1();
row["2"]= a.get2();
row["3"]= a.get3();
row["4"]= a.get4();
row["5"]= a.5();
return true;
}
return false;

I get the following error :
" Some required parameter values are not set or set to incompatible data
type."
After I enter the date,
the error is:
" Script engine error: TypeError: findOpenDepositsAsOfDate is not a
function. (DataSet:OpenVendorDeposit.open#2 "

1. while creating the report parameter input, Do I have to select type
as String or Datetime.
And any other ideas how I can proceed with this. Cudnt't find any
online-help. I'm actually new to reporting.
I appreciate Ur help.

Thanks
Sai



Sai Yelamanchili wrote:
> Jason
> What I'm exactly doing is :
> I have an object A and a class B. Class B has a function that takes an
> argument "x", which is a date and returns ArrayList of A objects.
> Now, I have to use the Scripetd Data Source to make a report from the
> returned ArrayList.
> In my open and fetch of Data Set, I'm usig the following code:
>
> Open()
> importPackage(Packages.com.rpc.core.accounting.model);
> dt = new Date(params["input"]);
> c = new B().A(dt);
> itrLista = c.iterator();
>
> Fetch()
> while(itrLista.hasNext())
> {
> a = itrLista.next();
> row["1"]= a.get1();
> row["2"]= a.get2();
> row["3"]= a.get3();
> row["4"]= a.get4();
> row["5"]= a.5();
> return true;
> }
> return false;
>
> I get the following error :
> " Some required parameter values are not set or set to incompatible data
> type."
>
> 1. while creating the report parameter input, Do I have to select type
> as String or Datetime.
> And any other ideas how I can proceed with this. Cudnt't find any
> online-help. I'm actually new to reporting.
> I appreciate Ur help.
>
> Thanks
> Sai
>
>
> Sai Yelamanchili wrote:
>
>> Jason
>> This is the only parameter.
>>
>> Thanks
>> sai
>>
>> Jason Weathersby wrote:
>>
>>> Sai,
>>>
>>> I had a similar error in the past with a string parameter.
>>> Have you checked the log file for anything under
>>> org.eclipse.birt.report.viewer_1.0.1\birt\logs
>>> Additionally is this the only paramter?
>>>
>>> Jason Weathersby
>>> BIRT PMC
>>>
>>> "Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>> news:dfa9m5$k4r$1@news.eclipse.org...
>>>
>>>> Yes I did,
>>>> Error persists.
>>>>
>>>> Thanks
>>>> Sai
>>>>
>>>>
>>>>
>>>> Jason Weathersby wrote:
>>>>
>>>>> Sai,
>>>>> Have you tried
>>>>> var dt = new Date(params["yourparameter"]);
>>>>> new A().B( dt);
>>>>>
>>>>> Jason Weathersby
>>>>> BIRT PMC
>>>>> "Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>>>> news:dfa88u$ich$1@news.eclipse.org...
>>>>>
>>>>>
>>>>>> Jason,
>>>>>> Its a date paramater. Its of Type DateTime.
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>>
>>>>>> Jason Weathersby wrote:
>>>>>>
>>>>>>
>>>>>>> Sai,
>>>>>>> Is your paramater a string?
>>>>>>> If so make sure its double quoted.
>>>>>>>
>>>>>>> Jason Weathersby
>>>>>>> BIRT PMC
>>>>>>>
>>>>>>> "Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>>>>>> news:dfa75k$gme$2@news.eclipse.org...
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> Jason
>>>>>>>> Can You please tell me why do I get the following error :
>>>>>>>> "Some required parameter values are not set or set to
>>>>>>>> incompatible data type."
>>>>>>>>
>>>>>>>> what parameter values is this referring to ?
>>>>>>>>
>>>>>>>> I appreciate Your time and effort.
>>>>>>>>
>>>>>>>> Thanks in advance
>>>>>>>> Sai
>>>>>>>>
>>>>>>>> Jason Weathersby wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>> Sai,
>>>>>>>>>
>>>>>>>>> You should be able to just add
>>>>>>>>> var x = new A().B(params["yourparametername"]);
>>>>>>>>> One caveat. Dont do this in the open method of the Data
>>>>>>>>> Source. I believe there is a problem with this.
>>>>>>>>> Try it on the Data Set open method.
>>>>>>>>>
>>>>>>>>> Jason Weathersby
>>>>>>>>> BIRT PMC
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> "Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in
>>>>>>>>> message news:dfa5mo$etj$1@news.eclipse.org...
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> Jason,
>>>>>>>>>> really looks like its gonna help me. Can you make this a
>>>>>>>>>> little clear.
>>>>>>>>>> Suppose, if I'm referencing a class A and invoking function
>>>>>>>>>> B(with argument) of that class, I mean
>>>>>>>>>>
>>>>>>>>>> In open() function:
>>>>>>>>>>
>>>>>>>>>> importPackage(Packages x.x.x.x.);
>>>>>>>>>> var x = new A().B();
>>>>>>>>>>
>>>>>>>>>> and now I need a argument to be set to B from a user input,
>>>>>>>>>> how do I do that ?
>>>>>>>>>>
>>>>>>>>>> Thanks much!
>>>>>>>>>> Sai
>>>>>>>>>>
>>>>>>>>>> Jason Weathersby wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>> Sai,
>>>>>>>>>>> You should be able to do this.
>>>>>>>>>>> As an example I have a class that I use as an RSS reader and
>>>>>>>>>>> in my open method I use a parameter to set the feed.
>>>>>>>>>>>
>>>>>>>>>>> open method on Data Set
>>>>>>>>>>>
>>>>>>>>>>> brss = new Packages.org.birt.examples.sds.BirtRssReader();
>>>>>>>>>>> brss..setFeed(params["RssFeed"]);
>>>>>>>>>>> brss.readFeed();
>>>>>>>>>>> ...
>>>>>>>>>>>
>>>>>>>>>>> Jason Weathersby
>>>>>>>>>>> BIRT PMC
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> "Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in
>>>>>>>>>>> message news:df9vb6$6a3$1@news.eclipse.org...
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>> Is there really a way to do this ? Does report parameters
>>>>>>>>>>>> work with Scripted Data Sources ? Is this supported ?
>>>>>>>>>>>> Thanks!
>>>>>>>>>>>>
>>>>>>>>>>>> Sai Yelamanchili wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>> I want to send a report parameter as an argument to a
>>>>>>>>>>>>> function in a java class. I'm working on Scripted Data
>>>>>>>>>>>>> Source. Does anyone have any ideas on this.
>>>>>>>>>>>>> Help Appreciated.
>>>>>>>>>>>>> Thanks
>>>>>>>>>>>>> Sai
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>
>>>
Previous Topic:Thanks for all who helped to answer questions in this forum
Next Topic:Binding a Data Set Parameter to Report Parameter Not Working
Goto Forum:
  


Current Time: Wed Jul 17 03:32:18 GMT 2024

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

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

Back to the top