?
Solved

error passing parameter in BIRT

Posted on 2012-03-26
2
Medium Priority
?
808 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 5

Accepted Solution

by:
Becky earned 1000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
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:
Suggested Courses
Course of the Month14 days, 10 hours left to enroll

771 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