Solved

error passing parameter in BIRT

Posted on 2012-03-26
2
793 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 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Hi, I am very much excited today since I'm going to share something very exciting Tool used for Analytical Reporting and that's nothing but MICROSTRATEGY. Actually there are lot of other tools available in the market for Reporting Such as Co…
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:
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

707 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