Parameter in ireport

hai
how to write sql query with parameters in ireport's report query like(select * from emp where empid=?). i tried with above query but it doesn't show fields that are retrived automatically. also in library windows i did get any fields from table. plz help me for this.
Thanks in advance

Hay!
in iReport u can write parameterized query like below
select * from emp where empid = $P{EMPID}
EMPID is the parameter. but u have to create it using iReport. There is a menu for that in View menu. u can find it. (View --> Parameter)
in iReport,
$P is represent the parameters
$V is represent the variables
$F is represent the Fields
Use HashMap to pass parameters to the report when using in ur java coding.
now hope u got solved ur problem.
BR
Indunil

Similar Messages

  • How to write sql query with many parameter in ireport

    hai,
    i'm a new user in ireport.how to write sql query with many parameters in ireport's report query?i already know to create a parameter like(select * from payment where entity=$P{entity}.
    but i don't know to create query if more than 1 parameter.i also have parameter such as
    $P{entity},$P{id},$P{ic}.please help me for this.
    thanks

    You are in the wrong place. The ireport support forum may be found here
    http://www.jasperforge.org/index.php?option=com_joomlaboard&Itemid=215&func=showcat&catid=9

  • How to pass the parameter of a stored procedure to iReport

    Hi... i don't know how to pass the parameter of the stored procedure to the iReport.
    In the Report Query, i tried
    1. sp_storedprocedure ' value'
    2. sp_storedprocedure +''''+$P{parameter}+''''+
    3. sp_storedprocedure +$V+$P{parameter}++$F($F is a variable having a value of ' (a single quote))may you enlighten us please? thank you

    For M$ SQL server I find that it only works when U use the fully qualified name...
    e.g. catalod.dbo.my_procedure_name 'variable'
    My full query in the Report Query window is something like this:
    EXEC arc.dbo.jasper_Invoice 1000
    Note that you may find that selecting from VIEWS / TABLES fails for no apparent reason and iReport will prompt you with the usual very unhelpful (we have what we "pay" for) prompt, stating that "The document is empty".
    To work around this issue, where a statement like "SELECT * FROM arc.dbo.acc_invoices WHERE Invoice_id=1000" does not work, simply create a PROC, something like:
    CREATE PROC jasper_MyProc (@my_rec_id integer) AS
    SELECT * FROM arc.dbo.acc_invoices WHERE Invoice_id= @my_rec_id integer
    ...to wrap your SELECT statement, then call the PROC
    Edited by: Sylinsr on Apr 22, 2008 4:23 PM

  • Bug while using string parameter values in postgresql query

    Hi,
    I have the following query for the postgresql database:
    Code:
    <queryString><![CDATA[SELECT
    evt_src_mgr_rpt_v."evt_src_mgr_name" AS esm_name,
    evt_src_collector_rpt_v."evt_src_collector_name" AS collector_name,
    evt_src_grp_rpt_v."evt_src_grp_name" AS grp_name,
    evt_src_grp_rpt_v."state_ind" AS state_ind,
    evt_src_rpt_v."evt_src_name" AS src_name,
    evt_src_rpt_v."date_modified" AS date_modified,
    evt_src_rpt_v."date_created" AS date_created,
    CASE WHEN $P{mysortfield} = 'evt_src_mgr_name' THEN evt_src_mgr_name
    WHEN $P{mysortfield} = 'evt_src_collector_name' THEN evt_src_collector_name
    WHEN $P{mysortfield} = 'evt_src_grp_name' THEN evt_src_grp_name
    ELSE evt_src_name END as sort
    FROM
    "evt_src_mgr_rpt_v" evt_src_mgr_rpt_v
    LEFT JOIN
    "evt_src_collector_rpt_v" evt_src_collector_rpt_v
    ON EVT_SRC_MGR_RPT_V."evt_src_mgr_id" = evt_src_collector_rpt_v."evt_src_mgr_id"
    LEFT JOIN
    "evt_src_grp_rpt_v" evt_src_grp_rpt_v
    ON evt_src_collector_rpt_v."evt_src_collector_id" = evt_src_grp_rpt_v."evt_src_collector_id"
    LEFT JOIN
    "evt_src_rpt_v" evt_src_rpt_v
    ON evt_src_grp_rpt_v."evt_src_grp_id" = evt_src_rpt_v."evt_src_grp_id"
    LEFT JOIN
    "evt_src_offset_rpt_v" evt_src_offset_rpt_v
    ON evt_src_rpt_v."evt_src_id" = evt_src_offset_rpt_v."evt_src_id"
    WHERE
    $P!{mysortfield} LIKE '$P!{searchvalue}' || '%']]></queryString>
    That is I try to select only the records where the field which is
    selected by user as report parameter ($P{mysortfield}) contains data
    starting with the text entered by user as a report parameter
    ($P{searchvalue}).
    When I try to run the report in iReport with active connection to the
    database the report is generated as expected.
    But when I try to run the report from Sentinel Log Manager I get the
    following error: "java.lang.String cannot be cast to
    net.sf.jasperreports.engine.JRValueParameter".
    After several detailed debug sessions I finally came into a conclusion
    that this error is related to the use of parameter values (
    $P!{mysortfield} and $P!{searchvalue} ).
    I even tried using the following WHERE clause (which emulates the
    queries as used in standart reports (especially at VendorProduct related
    SQL queries ) with no success:
    Code:
    WHERE
    ($P{mysortfield} = 'evt_src_mgr_name' AND evt_src_mgr_name LIKE ($P{searchvalue} || '%')) OR
    ($P{mysortfield} = 'evt_src_collector_name' AND evt_src_collector_name LIKE ($P{searchvalue} || '%')) OR
    ($P{mysortfield} = 'evt_src_grp_name' AND evt_src_grp_name LIKE ($P{searchvalue} || '%')) OR
    ($P{mysortfield} = 'evt_src_name' AND evt_src_name LIKE ($P{searchvalue} || '%'))
    Any suggestions?
    hkalyoncu
    hkalyoncu's Profile: http://forums.novell.com/member.php?userid=63527
    View this thread: http://forums.novell.com/showthread.php?t=450687

    bweiner12345;2167651 Wrote:
    > I'm not 100% sure the $P! (instead of just $P) is needed in that WHERE
    > portion of your SQL statement.
    >
    > What I would suggest doing is building the WHERE portion of your query
    > up again step by step. That is, instead of using any parameters in your
    > WHERE:
    >
    > $P!{mysortfield} LIKE '$P!{searchvalue}' || '%'
    >
    > ... take a step back and literally hard-code some values in there, such
    > as:
    >
    > evt_src_mgr_name LIKE '%' || '%'
    >
    > ... and run it on your box to make sure it works fine.
    >
    > If it works fine, start substituting the parameters one by one:
    >
    > $P{mysortfield} LIKE '%' || '%'
    >
    > .... test on the box.
    >
    > $P{mysortfield} LIKE '$P{searchvalue}' || '%'
    >
    > .... test on the box.
    >
    > It may be a little tedious, but at least you'll find out where the
    > problem is occurring... and may be quicker in the long run.
    >
    > (Note: In my above example steps I didn't use the ! in with the
    > parameters, as I don't think they are needed in the WHERE clause... but
    > I could be wrong... and by following the above step-by-step technique
    > should answer that for sure.)
    Thank you for the suggestions:
    While trying to implement your suggestions I realized that there was a
    error at the parameter name I used inside the where clause (it should be
    $P{searchfield}).
    Here are my results:
    Code:
    vt_src_mgr_name LIKE '%' || '%'
    worked as expected.
    Code:
    $P{searchfield} LIKE '%' || '%'
    produced PDF but wrong output.
    Code:
    $P!{searchfield} LIKE '%' || '%'
    resulted with the error "java.lang.String cannot be cast to
    net.sf.jasperreports.engine.JRValueParameter" and no PDF.
    Then I tried the following where clause which resulted in exactly as
    expected PDF:
    Code:
    WHERE
    ($P{searchfield} = 'evt_src_mgr_name' AND evt_src_mgr_name LIKE ($P{searchvalue} || '%')) OR
    ($P{searchfield} = 'evt_src_collector_name' AND evt_src_collector_name LIKE ($P{searchvalue} || '%')) OR
    ($P{searchfield} = 'evt_src_grp_name' AND evt_src_grp_name LIKE ($P{searchvalue} || '%')) OR
    ($P{searchfield} = 'evt_src_name' AND evt_src_name LIKE ($P{searchvalue} || '%'))
    As a summary:
    * The query which works in iRepord do not work in Sentinel Log
    Manager.
    * I found a workaround for my case.
    * I did not checked, but the reports provided in Sentinel RD which use
    the same technique for VendorProduct parameter (i.e. the reports with
    query string containing
    Code:
    LIKE ($P{VendorProduct} || '%')
    will most probably not work as expected IF Sentinel RD uses the same
    code as Sentinel Log Manager.
    hkalyoncu
    hkalyoncu's Profile: http://forums.novell.com/member.php?userid=63527
    View this thread: http://forums.novell.com/showthread.php?t=450687

  • Modify default value for static parameter field programmatically

    Hi,
    I have my Crystal Reports stored in a BO Enterprise system. I have written a java programm that scans the repository, loads the CR reports one by one into a ReportClientDocument, modifies the data source and then stores the updated report back to repository (it overwrites the existing objects).
    I was even able to modify the default values for the parameters, which are used for scheduling of each report.
    But what I am trying to do know is to overwrite the default value used when invoking the report interactively. This should be the value found under the Default Value field, when the Properties window of the parameter is opened in the CR designer.
    This is what I have tried so far:
    Option 1: First I tried to set the default values using com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.getDataDefinition().getParameterFieldController().getField(...).getDefaultValues() . The only thing I have managed to do using this approach is to modify the static LOVs that are associated to static parameters. The actual selected value (shown under Default Value in the Properties window for the given parameter field) remained unchanged, when invoking the report in the InfoView or opening it in the CR designer.
    Option 2: I have used com.crystaldecisions.sdk.plugin.desktop.report.IReport.getReportParameters().get(ik).getDefaultValues() to change the default values. I was able to see my changes in the BO repository (using a query on CI_INFOOBJECTS), still the changes did not really have an impact to what is displayed as default value when invoking the report in the InfoView.
    Any help will be appreciated.
    It would be great to know if someone of you has already implemented successfully such a use-case.
    Regards,
    Stratos
    Edited by: Efstratios Karaivazoglou on Dec 9, 2009 8:52 AM
    Edited by: Efstratios Karaivazoglou on Dec 15, 2009 11:33 PM

    Hi,
    For Crystal Design related queries, close this thread and start the thread in the [SAP Crystal Reports Design forums|http://forums.sdn.sap.com/forum.jspa?forumID=300&start=0]
    - Bhushan

  • Add parameter in jasper report query string

    Dear Experts,
    i developed a pdf report using jasperreports . in this reports i used a query string where dont have any parameter, now i want to add a parameter between querystring. how can i do this?? (i know another solution and that is using jrDatasource) in this context i dont want to do this beacuse then i have to do it again from begining.
    here is my XML FILE
    i just want to add a parameter in querysting
    like
    <queryString><![CDATA[SELECT   CH_RECORD_ID,FH_PRODUCT_ID,
    CH_SEQUENCE_NO FROM TABLE_NAE WHERE ID='<![CDATA[$P{CH_FULL_NAME}]]>'can i do this or how can i do this
    <?xml version="1.0" encoding="UTF-8"  ?>
    <!-- Created with iReport - A designer for JasperReports -->
    <!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">
    <jasperReport
               name="Statement"
               columnCount="1"
               printOrder="Vertical"
               orientation="Portrait"
               pageWidth="612"
               pageHeight="864"
               columnWidth="612"
               columnSpacing="0"
               leftMargin="0"
               rightMargin="0"
               topMargin="0"
               bottomMargin="0"
               whenNoDataType="BlankPage"
               isTitleNewPage="true"
               isSummaryNewPage="false">
         <queryString><![CDATA[SELECT   CH_RECORD_ID,FH_PRODUCT_ID,
    CH_SEQUENCE_NO,
    CH_CUSTOMER_NO,
    CH_FULL_NAME,
    CH_COMPANY_NAME,
    CH_ADDR1 as ADD1,
    CH_ADDR2 as ADD2,
    CH_CITY,
    CH_STATE,
    CH_CNTRY,
    CH_POSTCODE,
    CH_STMT_DATE,
    CH_STMT_END_DATE,
    CH_PAYDUE_DATE,
    CH_COMBINE_LIMIT,
    CH_BARCODED_COMBINE_LIMIT,
    AH_RECORD_ID,
    AH_SEQUENCE_NO,
    AH_CARDHOLDER_NO,
    AH_CARD_DESC,
    AH_CARD_DESC2,
    AH_BILLING_CURR_CD,
    AH_OUTSTD_BAL,
    AH_OUTSTD_BAL_S,
    AH_MIN_PMT,
    AH_BPON_OPEN,
    AH_BPNT_EARN,
    AH_BPNT_EARN_S,
    AH_BPNT_MGM,
    AH_BPNT_MGM_S,
    AH_BPNT_REDEEM,
    AH_BPNT_REDEEM_S,
    AH_BPNT_EXPIRY_MTH,
    AH_BPNT_EXPIRY_MTH_S,
    AH_BPNT_CLOSE,
    AH_BPNT_EXPIRY,
    AH_BPNT_EXP_DATE,
    AH_REWARDS_IND,
    AH_LINE_LIMIT,
    AH_AVAIL_LIMIT,
    AH_AVAIL_LIMIT_S,
    AH_AVAIL_CASH_LIMIT,
    AH_AVAIL_CASH_LIMIT_S,
    TD_RECORD_ID,
    TD_RECORD_TAG,
    TD_CARDHOLDER_NO,
    TD_CARDHOLDER_NAME,
    TD_BILLING_CURR_CD,
    TD_BAS_SUPP_IND,
    if(TD_TRXN_DATE="00000000",'        ',TD_TRXN_DATE) as TD_TRXN_DATE,
    if(TD_POST_DATE="00000000",'        ',TD_POST_DATE) as TD_POST_DATE ,
    TD_DESCRIPTION,
    TD_AMOUNT,
    TD_AMOUNT_S,
    TD_CARD_LIMIT FROM CUSTOMER_HEADER,
    ACCOUNT_HEADER, TRANSACTION_DETAIL,FILE_HEADER
    WHERE
    CH_RECORD_ID = AH_RECORD_ID AND
    AH_RECORD_ID = TD_RECORD_ID AND
    AH_BILLING_CURR_CD = TD_BILLING_CURR_CD AND
    TD_DESCRIPTION!='SUB TOTAL'
    ORDER BY CH_RECORD_ID,
    AH_BILLING_CURR_CD,
    TD_BILLING_CURR_CD,
    TD_RECORD_TAG, TD_POST_DATE]]></queryString>
         <field name="ADD1" class="java.lang.String"/>
         <field name="ADD2" class="java.lang.String"/>
         <field name="AH_AVAIL_CASH_LIMIT" class="java.lang.String"/>
         <field name="AH_AVAIL_CASH_LIMIT_S" class="java.lang.String"/>
         <field name="AH_AVAIL_LIMIT" class="java.lang.String"/>
         <field name="AH_AVAIL_LIMIT_S" class="java.lang.String"/>
         <field name="AH_BILLING_CURR_CD" class="java.lang.String"/>
         <field name="AH_BPNT_CLOSE" class="java.lang.String"/>
         <field name="AH_BPNT_EARN" class="java.lang.String"/>
         <field name="AH_BPNT_EARN_S" class="java.lang.String"/>
         <field name="AH_BPNT_EXPIRY" class="java.lang.String"/>
         <field name="AH_BPNT_EXPIRY_MTH" class="java.lang.String"/>
         <field name="AH_BPNT_EXPIRY_MTH_S" class="java.lang.String"/>
         <field name="AH_BPNT_EXP_DATE" class="java.lang.String"/>
         <field name="AH_BPNT_MGM" class="java.lang.String"/>
         <field name="AH_BPNT_MGM_S" class="java.lang.String"/>
         <field name="AH_BPNT_REDEEM" class="java.lang.String"/>
         <field name="AH_BPNT_REDEEM_S" class="java.lang.String"/>
         <field name="AH_BPON_OPEN" class="java.lang.String"/>
         <field name="AH_CARDHOLDER_NO" class="java.lang.String"/>
         <field name="AH_CARD_DESC" class="java.lang.String"/>
         <field name="AH_CARD_DESC2" class="java.lang.String"/>
         <field name="AH_LINE_LIMIT" class="java.lang.String"/>
         <field name="AH_MIN_PMT" class="java.lang.String"/>
         <field name="AH_OUTSTD_BAL" class="java.lang.String"/>
         <field name="AH_OUTSTD_BAL_S" class="java.lang.String"/>
         <field name="AH_RECORD_ID" class="java.lang.String"/>
         <field name="AH_REWARDS_IND" class="java.lang.String"/>
         <field name="AH_SEQUENCE_NO" class="java.lang.String"/>
         <field name="CH_BARCODED_COMBINE_LIMIT" class="java.lang.String"/>
         <field name="CH_CITY" class="java.lang.String"/>
         <field name="CH_CNTRY" class="java.lang.String"/>
         <field name="CH_COMBINE_LIMIT" class="java.lang.String"/>
         <field name="CH_COMPANY_NAME" class="java.lang.String"/>
         <field name="CH_CUSTOMER_NO" class="java.lang.String"/>
         <field name="CH_FULL_NAME" class="java.lang.String"/>
         <field name="CH_PAYDUE_DATE" class="java.lang.String"/>
         <field name="CH_POSTCODE" class="java.lang.String"/>
         <field name="CH_RECORD_ID" class="java.lang.String"/>
         <field name="CH_SEQUENCE_NO" class="java.lang.String"/>
         <field name="CH_STATE" class="java.lang.String"/>
         <field name="CH_STMT_DATE" class="java.lang.String"/>
         <field name="CH_STMT_END_DATE" class="java.lang.String"/>
         <field name="FH_PRODUCT_ID" class="java.lang.String"/>
         <field name="TD_AMOUNT" class="java.lang.String"/>
         <field name="TD_AMOUNT_S" class="java.lang.String"/>
         <field name="TD_BAS_SUPP_IND" class="java.lang.String"/>
         <field name="TD_BILLING_CURR_CD" class="java.lang.String"/>
         <field name="TD_CARDHOLDER_NAME" class="java.lang.String"/>
         <field name="TD_CARDHOLDER_NO" class="java.lang.String"/>
         <field name="TD_CARD_LIMIT" class="java.lang.String"/>
         <field name="TD_DESCRIPTION" class="java.lang.String"/>
         <field name="TD_POST_DATE" class="java.lang.String"/>
         <field name="TD_RECORD_ID" class="java.lang.String"/>
         <field name="TD_RECORD_TAG" class="java.lang.String"/>
         <field name="TD_TRXN_DATE" class="java.lang.String"/>
              <group  name="Customer_header" isStartNewColumn="false" isStartNewPage="true" isResetPageNumber="true" isReprintHeaderOnEachPage="true" minHeightToStartNewPage="0" >
                   <groupExpression><![CDATA[$F{CH_RECORD_ID}]]></groupExpression>
                   <groupHeader>
                   <band height="208"  isSplitAllowed="true" >
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="168"
                                  y="84"
                                  width="274"
                                  height="16"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{CH_FULL_NAME}]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="168"
                                  y="116"
                                  width="281"
                                  height="14"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{ADD1}]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="168"
                                  y="100"
                                  width="179"
                                  height="14"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{CH_COMPANY_NAME}]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="239"
                                  y="148"
                                  width="119"
                                  height="14"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{CH_CITY}]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="168"
                                  y="148"
                                  width="70"
                                  height="14"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{CH_POSTCODE}]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="168"
                                  y="164"
                                  width="201"
                                  height="13"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{CH_CNTRY}]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="29"
                                  y="130"
                                  width="90"
                                  height="14"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Center" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{CH_STMT_DATE}.substring(6,8)+"."+$F{CH_STMT_DATE}.substring(4,6)+"."+$F{CH_STMT_DATE}.substring(0,4)]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="470"
                                  y="130"
                                  width="81"
                                  height="13"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Center" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{CH_PAYDUE_DATE}.substring(6,8)+"."+$F{CH_PAYDUE_DATE}.substring(4,6)+"."+$F{CH_PAYDUE_DATE}.substring(0,4)]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="476"
                                  y="67"
                                  width="46"
                                  height="13"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{FH_PRODUCT_ID}]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="168"
                                  y="132"
                                  width="236"
                                  height="14"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{ADD2}]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="529"
                                  y="67"
                                  width="28"
                                  height="13"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{CH_RECORD_ID}]]></textFieldExpression>
                        </textField>
                   </band>
                   </groupHeader>
                   <groupFooter>
                   <band height="0"  isSplitAllowed="true" >
                   </band>
                   </groupFooter>
              </group>
              <group  name="Account_Header" isStartNewColumn="false" isStartNewPage="false" isResetPageNumber="true" isReprintHeaderOnEachPage="true" minHeightToStartNewPage="0" >
                   <groupExpression><![CDATA[$F{AH_BILLING_CURR_CD}]]></groupExpression>
                   <groupHeader>
                   <band height="175"  isSplitAllowed="true" >
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="12"
                                  y="16"
                                  width="156"
                                  height="15"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Center" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{AH_CARDHOLDER_NO}.substring(0,4)+" "+$F{AH_CARDHOLDER_NO}.substring(4,8)+" "+$F{AH_CARDHOLDER_NO}.substring(8,12)+" "+$F{AH_CARDHOLDER_NO}.substring(12,16)]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="226"
                                  y="16"
                                  width="84"
                                  height="15"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Right" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{AH_OUTSTD_BAL}]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="417"
                                  y="16"
                                  width="90"
                                  height="15"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Right" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{AH_MIN_PMT}]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="0"
                                  y="95"
                                  width="128"
                                  height="14"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Center" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{AH_CARDHOLDER_NO}.substring(0,4)+" "+$F{AH_CARDHOLDER_NO}.substring(4,8)+" "+$F{AH_CARDHOLDER_NO}.substring(8,12)+" "+$F{AH_CARDHOLDER_NO}.substring(12,16)]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="191"
                                  y="95"
                                  width="216"
                                  height="14"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Center" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{CH_FULL_NAME}]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="517"
                                  y="95"
                                  width="35"
                                  height="14"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Center" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.Integer"><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="9"
                                  y="134"
                                  width="72"
                                  height="15"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Center" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{CH_STMT_DATE}.substring(6,8)+"."+$F{CH_STMT_DATE}.substring(4,6)+"."+$F{CH_STMT_DATE}.substring(0,4)]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="123"
                                  y="135"
                                  width="69"
                                  height="15"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Center" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{CH_PAYDUE_DATE}.substring(6,8)+"."+$F{CH_PAYDUE_DATE}.substring(4,6)+"."+$F{CH_PAYDUE_DATE}.substring(0,4)]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="201"
                                  y="135"
                                  width="82"
                                  height="15"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Right" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{AH_LINE_LIMIT}]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="332"
                                  y="135"
                                  width="88"
                                  height="15"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Right" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{AH_AVAIL_LIMIT}]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="461"
                                  y="136"
                                  width="79"
                                  height="15"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Right" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{AH_AVAIL_CASH_LIMIT}]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="284"
                                  y="135"
                                  width="44"
                                  height="15"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA["("+$F{AH_BILLING_CURR_CD}+")"]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="421"
                                  y="135"
                                  width="30"
                                  height="15"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{AH_AVAIL_LIMIT_S}.equals("-")?"CR":""]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="541"
                                  y="136"
                                  width="22"
                                  height="15"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{AH_AVAIL_CASH_LIMIT_S}.equals("-")?"CR":""]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="337"
                                  y="16"
                                  width="19"
                                  height="15"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{AH_OUTSTD_BAL_S}.equals("-")?"CR":""]]></textFieldExpression>
                        </textField>
                   </band>
                   </groupHeader>
                   <groupFooter>
                   <band height="0"  isSplitAllowed="true" >
                   </band>
                   </groupFooter>
              </group>
              <background>
                   <band height="0"  isSplitAllowed="true" >
                   </band>
              </background>
              <                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    HI.
    Try using Ireport for pass the parameters and edit the query easier.

  • Parameter Prompts

    Hi,
    I have created a report that filters the results returned by the use of
    a parameter using TAG (tag_name). When previewing the report in iReport
    it prompts for the TAG parameter, you enter a TAG name and it returns
    the results as expected. However, after importing the report definition
    (.rpz) into Sentinel the report always comes back blank with no results?
    Is there a simple setting I have missed?
    Also, testing in iReport shows that the value entered for the TAG name
    is case sensitive and will not return any results if entered incorrectly
    (i.e. abc instead of ABC). So i'd prefer to have a drop down menu to
    show all values of tag_event_source_association_v.tag_name instead of
    having to manually enter a value. Please could someone advise on how to
    implement this?
    Any help appreciated!
    kmcooke1
    kmcooke1's Profile: https://forums.netiq.com/member.php?userid=5806
    View this thread: https://forums.netiq.com/showthread.php?t=50862

    kmcooke1;244627 Wrote:
    > Hi,
    >
    > I have created a report that filters the results returned by the use of
    > a parameter using TAG (tag_name). When previewing the report in iReport
    > it prompts for the TAG parameter, you enter a TAG name and it returns
    > the results as expected. However, after importing the report definition
    > (.rpz) into Sentinel the report always comes back blank with no results?
    > Is there a simple setting I have missed?
    >
    > Also, testing in iReport shows that the value entered for the TAG name
    > is case sensitive and will not return any results if entered incorrectly
    > (i.e. abc instead of ABC). So i'd prefer to have a drop down menu to
    > show all values of tag_event_source_association_v.tag_name instead of
    > having to manually enter a value. Please could someone advise on how to
    > implement this?
    >
    > Any help appreciated!
    <OptionQuery> on a string parameter. The value is something derived
    from a SQL query, e.g. "SELECT <single field> AS VALUE FROM <table/join
    clause> WHERE <blah>"
    brandon.langley
    brandon.langley's Profile: https://forums.netiq.com/member.php?userid=350
    View this thread: https://forums.netiq.com/showthread.php?t=50862

  • The statement did not return a result set in ireport

    Hi,
        I am Building a Report in iReport(Jasper Reports). I called a stored procedure from iReport by passing a parameter in Query Editor. I am getting an exception saying "The statement did not return a result set". When
    i use Temp Tables in stored procedure i am getting the exception.
    If there is no temptable in Stored procedure there wont be any exception.
    This is my Stored procedure
    Create PROCEDURE [XUSP_REPORT_SOPRINT] @BNUM VARCHAR(20) AS
    BEGIN
    DECLARE @FQTY BIGINT
    DECLARE @ITNAME VARCHAR(100)
    DECLARE @COUNT INT=0
    DECLARE @COUNT1 INT=0
    CREATE TABLE #BILL_PRINT(
        [BNUM] [varchar](20) NOT NULL,
        [CNAME] [varchar](30) NOT NULL,
        [CNUM] [int] NOT NULL,
        [ITNAME] [varchar](100) NOT NULL,
        [ITEM#] [int] NOT NULL,
        [QTY] [int] NOT NULL DEFAULT 0,
        [UNIT] [varchar](5) NOT NULL,
        [PRICE] [float] NOT NULL DEFAULT 0,
        [BASIC] [float] NOT NULL DEFAULT 0,
        [DISCOUNT] [float] NOT NULL DEFAULT 0,
        [FRQTY] [int] NOT NULL DEFAULT 0,
        [BADDR] [varchar](300) NULL,
        [CADDR] [varchar](300) NOT NULL,
        [BDATE] [datetime] NULL DEFAULT (sysdatetime()),
        [BILLBY] [varchar](50) NOT NULL,
        [ROUTE] [varchar](200) NULL,
        [AMT] [float] NOT NULL DEFAULT 0,
        [VAT] [float] NOT NULL DEFAULT 0,
        [VAT AMT] [float] NOT NULL DEFAULT 0,
        [AMT_AF_DISC] [float] NOT NULL DEFAULT 0,
        [AMT_AF_VAT] [float] NOT NULL DEFAULT 0,
        [TOT_DISC] [float] NOT NULL DEFAULT 0,
        [ROUND_OFF] [float] NOT NULL DEFAULT 0,
        [TOT_VAT] [float] NOT NULL DEFAULT 0,
        [AMT_UNDER_VAT] [float] NOT NULL DEFAULT 0,
        [NETT] [float] NOT NULL DEFAULT 0,
        [TOS] [varchar](30) NULL DEFAULT 0,
        [CDISC] [float] NOT NULL DEFAULT 0,
        [SDISC] [float] NOT NULL DEFAULT 0
    insert into #BILL_PRINT SELECT [BNUM]
          ,[CNAME]
          ,[CNUM]
          ,[ITNAME]
          ,[ITEM#]
          ,[QTY]
          ,[UNIT]
          ,[PRICE]
          ,[BASIC]
          ,[DISCOUNT]
          ,[FRQTY]
          ,[BADDR]
          ,[CADDR]
          ,[BDATE]
          ,[BILLBY]
          ,[ROUTE]
          ,[AMT]
          ,[VAT]
          ,[VAT AMT]
          ,[AMT_AF_DISC]
          ,[AMT_AF_VAT]
          ,[TOT_DISC]
          ,[ROUND_OFF]
          ,[TOT_VAT]
          ,[AMT_UNDER_VAT]
          ,[NETT]
          ,[TOS]
          ,[CDISC]
          ,[SDISC]
      FROM [SALES_DETAILS] WHERE BNUM=@BNUM
    CREATE TABLE #ITNAME_0
    ITEM VARCHAR(100) NOT NULL,
    FREE BIGINT NOT NULL
    INSERT INTO #ITNAME_0 SELECT ITNAME,FRQTY FROM SALES_DETAILS WHERE FRQTY<>0 AND BNUM=@BNUM
    --SELECT * FROM #ITNAME_0
    SET @COUNT=(SELECT COUNT(*) FROM #ITNAME_0)
    WHILE @COUNT!=0
    BEGIN
    SET @FQTY=(SELECT TOP(1) FREE FROM #ITNAME_0)
    SET @ITNAME=(SELECT TOP(1) ITEM FROM #ITNAME_0)
    SET @COUNT1=(SELECT COUNT(*) FROM #BILL_PRINT WHERE ITNAME=@ITNAME AND BNUM=@BNUM)
    IF @COUNT1=2
    BEGIN
        UPDATE #BILL_PRINT
        SET FRQTY+=@FQTY
        WHERE ITNAME=@ITNAME AND QTY<>0
        DELETE FROM #ITNAME_0 WHERE ITEM=@ITNAME AND FREE=@FQTY
        DELETE FROM #BILL_PRINT WHERE  ITNAME=@ITNAME AND QTY=0
    END
    SET @COUNT=@COUNT-1
    END
    --SELECT *FROM sales_details
    SELECT *FROM #BILL_PRINT where bnum=@bnum
    DROP TABLE #BILL_PRINT
    DROP TABLE #ITNAME_0
    END
    Please help me out in this.
    Thanks,
    Shreyas M

    This is a forum for Reporting Services (SSRS). If you're using Jasper reports then you should be posting in relevenat forums. I'm not sure there would be enough people with Jasper report experience here to help you out!
    Anyways in SSRS when  we use Temp tables in procedure it will throw exception in editor but when you save and run it will still work fine. Did you try saving it and executing report? Did the error still persisted?
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How give parameter to jasper report form sun studio

    hi master
    sir i use ireport that run well but sir how call that report with parameter
    how give parameter and datasource to japer report
    please give me idea
    thank's
    aamir

    Hello,
    THIS IS NOT WORKING ...SHOWING AN ERROR CANNOT FIND MENU ITEM .This error means you are not giving the correct menu name and item name.
    Open the menu and select the menu which you want to enable/disable dynamically then press F3 (for calling object navigator). You will find the menu name and item name (selected). Note that menu name and item name then use as below...
    SET_MENU_ITEM_PROPERTY('MENU_NAME.ITEM_NAME',ENABLED,PROPERTY_TRUE);-Ammad

  • LDAP querying using iReport

    Hi
    Does anybody know if it is possible to make LDAP queries using iReport
    or if there is any LDAP Connection (datasource type) available that I
    could reuse?
    I am running iReport 3.0 and there are lots of datasource types but
    none of them is LDAP.
    I know, I believe that it is not a SLM/Sentinel report question but
    iReport in general but if someone has already done that before, please
    let me know. If someone also could get iReport to call an external Java
    code, it would be sufficient as well. I have not find an way to call
    external Java code as well.
    Regards
    HH
    hugohigashi
    hugohigashi's Profile: http://forums.novell.com/member.php?userid=89996
    View this thread: http://forums.novell.com/showthread.php?t=446788

    hugohigashi;10460 Wrote:
    > Yes, you are right. But is it possible to upload that custom datasource
    > driver on SLM and/or Sentinel report environment?
    >
    >
    > --
    > hugohigashi
    > ------------------------------------------------------------------------
    > hugohigashi's Profile: http://forums.novell.com/member.php?userid=89996
    > View this thread: http://forums.novell.com/showthread.php?t=446788
    This can likely be accomplished by publishing a LDAP connection library
    jar and writing some custom code to access LDAP. You'd have to have a
    system that was okay with running anonymous LDAP queries, or providing
    passwords in clear-text via a report parameter.
    So technically possible, but as David said - you're probably best off
    syncing this information into identities or if this is MSSQL, sync the
    data you want out into a SQL table, and use the built-in AD integration
    to join usernames.
    brandon.langley
    brandon.langley's Profile: https://forums.netiq.com/member.php?userid=350
    View this thread: https://forums.netiq.com/showthread.php?t=2441

  • How to make a JFreechart to be printed on a PDF from iReport?

    Hello everyone,
    I'm working on an application, which has in one of its Panels an animated JFreeChart Model [*chart = ChartFactory.createBarChart3D*], in which a 3D Bar chart is initialized(which bars are animated) to get at last a dual axis graph with 3D view Bars. While I was working to implement producing a Jasper report from the results, I couldn't find a solution which let me print the results of the chart on a report. After looking at some posts, I tried to save the chart as an Image, then to call this image as a parameter on the iReport. But the problem was, either i got an image totally black while using this [chart.createBufferedImage(width, height)], or I got only the background of my graph without its content (bars and their values) by using [ChartUtilities.writeChartAsPNG].
    Does anyone has an idea to help me?
    Thanks in advance.

    Image chartImg= jfc.createBufferedImage(200, 200, BufferedImage.TYPE_BYTE_INDEXED,null);
    parameters.put("image", chartImg); //image is a ireport parameter declared as java.awt.image

  • Help With IReport/JasperReport

    HI!
    I have created a File Through IReport and passing some parameter in it.So any one please help me with that.
    I am running it with main class. IT is giving some error.The errors are as follows...
    log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax).
    log4j:WARN Please initialize the log4j system properly.
    org.xml.sax.SAXParseException: Element type "property" must be declared.
         at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
         at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
         at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
         at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
         at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown Source)
         at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
         at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
         at org.apache.commons.digester.Digester.parse(Digester.java:1514)
         at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:373)
         at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:357)
         at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:337)
         at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:323)
         at dori.jasper.engine.JasperManager.loadXmlDesign(JasperManager.java:1017)
         at TestJasper.main(TestJasper.java:27)
    NESTED BY :
    org.xml.sax.SAXParseException: Element type "property" must be declared.
         at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
         at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
         at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
         at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
         at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown Source)
         at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
         at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
         at org.apache.commons.digester.Digester.parse(Digester.java:1514)
         at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:373)
         at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:357)
         at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:337)
         at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:323)
         at dori.jasper.engine.JasperManager.loadXmlDesign(JasperManager.java:1017)
         at TestJasper.main(TestJasper.java:27)
    NESTED BY :
    dori.jasper.engine.JRException: Element type "property" must be declared.
         at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:397)
         at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:357)
         at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:337)
         at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:323)
         at dori.jasper.engine.JasperManager.loadXmlDesign(JasperManager.java:1017)
         at TestJasper.main(TestJasper.java:27)
    Caused by: org.xml.sax.SAXParseException: Element type "property" must be declared.
         at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
         at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
         at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
         at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
         at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown Source)
         at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
         at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
         at org.apache.commons.digester.Digester.parse(Digester.java:1514)
         at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:373)Any any one help me in pointing out the error.

    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    import java.util.HashMap;
    import java.util.Map;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    import dori.jasper.engine.JRException;
    import dori.jasper.engine.JasperManager;
    import dori.jasper.engine.JasperPrint;
    import dori.jasper.engine.JasperReport;
    import dori.jasper.engine.design.JasperDesign;
    import dori.jasper.view.JasperViewer;
    public class TestJasper
          * @param args
         public static void main(String[] args) throws SAXParseException
              try
                   JasperDesign jasp = JasperManager.loadXmlDesign("TestReport.jrxml");
                   JasperReport jad = JasperManager.compileReport(jasp);
                   Map parameters = new HashMap();   
                   parameters.put("Title","Test Report");
                   String url = "jdbc:microsoft:sqlserver://10.10.10.50;portNumber=1433;DatabaseName=Empoyees";
                   Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
                   Connection con = DriverManager.getConnection(url, "sa", "windows");
                   JasperPrint jp = JasperManager.fillReport(jad, parameters, con);
                   JasperManager.printReportToPdf(jp);
                   JasperViewer.viewReport(jp);
              catch (JRException e)
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              catch (ClassNotFoundException e)
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              catch (SQLException e)
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    }

  • Handling Multivalue parameter in jsp

    Hi! Can anyone please send the piece of Java code through which multiple values can be handled dynamically and set for the report.I am stuck on that. I was done with drop down functionallity for single discrete values but couldn't set multiple default values selected by the user in the list box.
    Can anybody help? Thanks in advance.

    Hi Cocuz,
    Thanks a lot for the help, but this doesn't solve my purpose as my reports are deployed on the BO server and I am calling them through my JSP's from the server dynamically at run time. I am fetching current values set in the report as .getdefaultvalues() method is not working for list box selection. But the major concern is that in current values, it displays only the values set in the selected values box on the BO server. I want to refresh the list dynamically.
    Can you plz help in that?
    I have resolved the issue of selecting multiple values and setting for the report, but I want dynamic list to be populated in the list box on my parameter UI.....
    I am attaching the code I am using....
    IReport theReport = (IReport)oInfoObject; 
            //Get a List of Parameters
            List parameters = theReport.getReportParameters();
    IReportParameter pf = (IReportParameter)parameters.get(i);
    ParameterField field = (ParameterField)pf.getParameterField();
    System.out.println("List value 00000000:" +field);
    Values defaultValues = field.getValues();
    Iterator defaultValueIterator = defaultValues.iterator();
    while ( defaultValueIterator.hasNext() ){
                                       String[] arrTemp = null;
                                       Value def = (Value)defaultValueIterator.next();
    THANKS IN ADVANCE....

  • Using NetBeans + JasperReports + iReports

    Hi All,
    I�m trying iReports + Jasper, and i have a doubt
    How can i pass a parameter that's a collection or an ArrayList?
    I want to do something like this:
    Qty Desc. Price
    5 Blue Prints 15.6
    6 Bond Papercups 17.5
    This collection o arraylist contains objects (beans)
    How CAn i do That?

    Try posting this question on netbeans.org.

  • Logical AND in MDX Reporting Services Parameter

    Hi, I would like to implement logical AND on a cube parameter. I have seen examples of hard-coded logical AND in MDX.
    (http://salvoz.com/blog/2013/12/24/mdx-implementing-logical-and-on-members-of-the-same-hierarchy/)
    But I'm not sure how to apply this to a parameter's MDX dataset.
    Here is an example of the automatically generated MDX which uses logical OR:
    This is the drop down parameter:
    WITH MEMBER [Measures].[ParameterCaption] AS [Department].[Department].CURRENTMEMBER.MEMBER_CAPTION MEMBER
    [Measures].[ParameterValue] AS
    [Department].[Department].CURRENTMEMBER.UNIQUENAME MEMBER [Measures].[ParameterLevel] AS
    [Department].[Department].CURRENTMEMBER.LEVEL.ORDINAL
    SELECT {[Measures].[ParameterCaption], [Measures].[ParameterValue],
    [Measures].[ParameterLevel]} ON COLUMNS
    , [Department].[Department].ALLMEMBERS ON ROWS
    FROM [MyCube]
    And the demo report dataset is:
    SELECT NON EMPTY { [Measures].[CompanyTbl Count] } ON COLUMNS,
    NON EMPTY { ([Product Level No].[Product Level No].[Product Level No].ALLMEMBERS ) }
    DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS FROM
    ( SELECT ( STRTOSET(@DepartmentDepartment, CONSTRAINED) )
    ON COLUMNS FROM [MyCube]) WHERE
    ( IIF( STRTOSET(@DepartmentDepartment, CONSTRAINED).Count = 1,
    STRTOSET(@DepartmentDepartment, CONSTRAINED), [Department].[Department].currentmember ) )
    CELL PROPERTIES VALUE,
    BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING,
    FONT_NAME, FONT_SIZE, FONT_FLAGS

    Hi,
    I can see there just one parameter @Department@Department in your script. But if you had two parameters that should return resultset affected by two parameters. You can do it as either select from subselect from subselect.
    Example 1
    SELECT
    {x} ON COLUMNS,
    {ROWS_SET} ON ROWS
    FROM
    (SELECT StrToSet(@Param1) ON COLUMNS FROM
    (SELECT StrToSet(@Param2) ON COLUMNS FROM
    [CUBE_NAME]
    Or crossjoin between 2 parameters
    SELECT
    {x} ON COLUMNS,
    {ROWS_SET} ON ROWS
    FROM
    (SELECT StrToSet(@Param1)*StrToSet(@Param2) ON COLUMNS FROM
    [CUBE_NAME]
    Jiri
    Jiri Neoral

Maybe you are looking for

  • Warning Message in query result as 'Notification Number DBMAN 345'

    Hi , I have a warning message while executing the query 'Diagnosis Currently, it cannot be guaranteed that SIDs and master data exists for all characteristic attributes for the DataStore object to be read. There is a restriction on a navigation attri

  • Custom Manage Property does not pick up the value from mapping crawl property

    Hi All, I have created a custom list with the column name that's called "category". Then I ran full crawl and I saw the "ows_category" crawl property is created. Then I create the manage property names as "Category" and map with the "ows_category" an

  • Code snippet in a ALV report

    hello experts I would like to calclute the invoice value and display in the output (invoice value = VBEP-NETWR/VBEP-FKIMG) , where should i add the code? In the select stament? code help is higly appreciated. Thanks mohan  follows the program Global

  • How do I publish to a folder? Help Menu doesn't say.

    I have checked the iWeb Help menu, the "Welcome to iWeb" pages that I printed out, and the "iWeb 1.1 Help" that I printed out. No source answers the question that I have about publishing to a folder. When I go to the iWeb File > Publish to a folder,

  • How to determine fixed exchange rate or not on contract SD?

    Hi all, I am looking how we can determine if a contract has got fixed exchange rate or not? In header data (first tab) we can see currency and exchange rate but I do not see a flag (as in PO) for fixing this one... Thanks for your help. David31