Solved

error passing parameter in BIRT

Posted on 2012-03-26
2
770 Views
Last Modified: 2012-04-04
Hello I am having an error on this ScalarParameter portion of my code.

Can you have a look and make a recommendation?

The error I am geetting is attributeBean cannot be resolved

or



<%-----------------------------------------------------------------------------
      Checkbox parameter control
-----------------------------------------------------------------------------%>
<%
      ScalarParameterBean parameterBean = ( ScalarParameterBean ) attributeBean.getParameterBean( );
      String encodedParameterName = ParameterAccessor.htmlEncode( parameterBean.getName( ) );
%>

<%-----------------------------------------------------------------------------
      Combo box parameter control
-----------------------------------------------------------------------------%>
<%
      ScalarParameterBean parameterBean = ( ScalarParameterBean ) attributeBean.getParameterBean( );
      String encodedParameterName = ParameterAccessor.htmlEncode( parameterBean.getName( ) );
      String paramValue = parameterBean.getValue( );
      String displayText = parameterBean.getDisplayText( );
      String defaultValue = parameterBean.getDefaultValue( );
      String defaultDisplayText = parameterBean.getDefaultDisplayText( );
      boolean isDisplayTextInList = parameterBean.isDisplayTextInList( );
      boolean allowMultiValue = !parameterBean.allowNewValues( ) && parameterBean.getParameter( ).isMultiValue( );
      List values = parameterBean.getValueList( );      
%>


error on these (3) are:

multiple annotations found at this line:
-attributeBean cannot be resolved
-ScalarParameterBean cannot be resolved to a type
<%-----------------------------------------------------------------------------
      Hidden parameter control
-----------------------------------------------------------------------------%>
<%
      ScalarParameterBean parameterBean = ( ScalarParameterBean ) attributeBean.getParameterBean( );
      String encodedParameterName = ParameterAccessor.htmlEncode( parameterBean.getName( ) );
      String value = parameterBean.getValue( );
      if( value != null )
      {
%>
<%-----------------------------------------------------------------------------
      Content fragment
-----------------------------------------------------------------------------%>
<%
      ParameterGroupBean parameterGroupBean = ( ParameterGroupBean ) attributeBean.getParameterBean( );
%>

<%-----------------------------------------------------------------------------
      Radio button parameter control
-----------------------------------------------------------------------------%>
<%
      ScalarParameterBean parameterBean = ( ScalarParameterBean ) attributeBean.getParameterBean( );
      String encodedParameterName = ParameterAccessor.htmlEncode( parameterBean.getName( ) );
      boolean isDisplayTextInList = parameterBean.isDisplayTextInList( );
%>
0
Comment
Question by:Midani22
2 Comments
 
LVL 5

Accepted Solution

by:
Becky earned 500 total points
ID: 37769292
I don't see anywhere in that code where you declared attributeBean...so you're using an object you never created - of course it's not going to be resolvable.  

My guess is you're missing this:

<jsp:useBean id="attributeBean" type="org.eclipse.birt.report.context.BaseAttributeBean" scope="request" />
0
 

Author Closing Comment

by:Midani22
ID: 37808284
Thanks
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Problem Statement In an SAP BI BO Integration project when a BO universe is built on a BEx query, there can be an issue of unit & formatted value objects not getting generated in a BO universe for some key figures. This results in an issue whereb…
Hello, In my precious Article  (http://www.experts-exchange.com/Database/Reporting/A_15280-Create-Project-in-Microstrategy-Part-I.html)we saw the Configuration part for Microstrategy which included Metadata Creation and DataSource Preparation as …
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will learn how to implement Singleton Design Pattern in Java.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now