Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

error passing parameter in BIRT

Posted on 2012-03-26
2
Medium Priority
?
824 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

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

How to increase the row limit in Jasper Server.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Suggested Courses

609 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