Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
DATA SET "FROM parameter"
xARNOx
hello dear community.
maybe a dumb question but how do i set a tablename with a parameter?
i tried it with a String-parameter in my data set like so:
SELECT *
FROM ?
...
? = string-parameter.
but i get an error.
anyone an idea?
sry for my bad english.
Find more posts tagged with
Comments
Lesbea
<blockquote class='ipsBlockquote' data-author="'xARNOx'" data-cid="111988" data-time="1354531424" data-date="03 December 2012 - 03:43 AM"><p>
hello dear community.<br />
<br />
maybe a dumb question but how do i set a tablename with a parameter?<br />
<br />
i tried it with a String-parameter in my data set like so:<br />
<br />
SELECT *<br />
FROM ?<br />
...<br />
<br />
? = string-parameter.<br />
<br />
but i get an error.<br />
<br />
<br />
anyone an idea?<br />
<br />
sry for my bad english.<br /></p></blockquote>
<br />
You will need to attach the parameter for the report to the dataset by using the Parameters tab on the dataset editor
xARNOx
maybe i dont unterstand you correctly or i dont have enough experience.
how do i use the Parameters tab on the dataset editor?
Lesbea
<blockquote class='ipsBlockquote' data-author="'xARNOx'" data-cid="111991" data-time="1354537664" data-date="03 December 2012 - 05:27 AM"><p>
maybe i dont unterstand you correctly or i dont have enough experience.<br />
<br />
how do i use the Parameters tab on the dataset editor?<br /></p></blockquote>
<br />
if you look at the screen shot you will see the dataset editor with the parameter tab on the left hand side when you are in this click NEW and add the data in like my example at the bottom is your link between the report parameter and the WHERE xxxx = ?<br />
<br />
in my case it was the BranchCode parameter
xARNOx
ok i think i understand you.
but thats not my problem.
i already have used parameters in my data sets going well when containing a condition used as WHERE xxxx = ?.
what i want is a parameter which contains the tablename i want to select from:
on this one i get an error (maybe a datatype-conflict)
Hans_vd
Take a look at this:
http://www.birt-exchange.org/org/forum/index.php/topic/19097-set-query-from-table-using-report-parameter/
xARNOx
thx for the link.
worked very well!