facebook

birt reports

  1. MyEclipse Archived
  2.  > 
  3. Blue Feature Requests
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #320527 Reply

    gme58
    Member

    how can you pass a jsp parameter to a birt report

    #320539 Reply

    support-swapna
    Moderator

    gme58 ,

    Parameters can be passed as URL parameters by entering the &parmname=value syntax, passed in a html form, or passed using the jsp:parm tag.

    Take a look at these links :
    http://www.birt-exchange.org/org/devshare/designing-birt-reports/1383-how-to-pass-parameter-to-birt-report-from-jsp/
    http://stackoverflow.com/questions/3036602/how-do-you-pass-a-date-value-to-birt-report-via-querystring

    Hope this helps.

    #320659 Reply

    gme58
    Member

    thanks for the help

    #320671 Reply

    support-swapna
    Moderator

    gme58 ,

    Glad that we could be of help.
    Do let us know if you have any other issues.

    #320680 Reply

    gme58
    Member

    hi i have the parameter set up in the jsp page as bellow

    <birt:viewer id=”birtViewer” reportDesign=”reports/new_report_4.rptdesign”
    pattern=”run”
    height=”600″
    width=”1000″
    format=”html”
    scrolling=”yes”
    showParameterPage=”false”>
    <birt:param name=”user_id” value=’gbreen’></birt:param>
    </birt:viewer>

    and try to pass it to the birt as below with no luck

    <structure>
    <property name=”name”>user_id</property>
    <property name=”dataType”>string</property>
    <property name=”position”>1</property>
    <property name=”isInput”>true</property>
    <property name=”isOutput”>false</property>
    </structure>

    #320693 Reply

    support-tony
    Keymaster

    gme58,

    You need to link the query parameter with your report parameter.

    Double click on your data set then go to the Parameters view, where you declared your user_id query parameter. Now click on the user_id parameter and click Edit. There is a field there, “Linked to Report Parameter”. Select your “user_id” report parameter and you should be all set.

    Please let us know if this works for you.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: birt reports

You must be logged in to post in the forum log in