Jump to content
Changes to the Jaspersoft community edition download ×

Is use of a Variable in <sortField>?


t3_chris

Recommended Posts

Hi!

 

I'm in need to sort my report by the value of the followingvVariable:
 


<variable name="characterString" class="java.lang.String" resetType="None" calculation="Nothing">
        <variableExpression><![CDATA[$F{virtualVendingmachine}.getVendingmachine().getBasemachine().getType().getCharacter().toString()]]></variableExpression>
        <initialValueExpression><![CDATA["init"]]></initialValueExpression>
    </variable>


 

Is it possible to use a variable as sortField?

 


<sortField name="$V{characterString}" />


 

Thanks for your help in anticipation!

 

Best regards,

 christian

Link to comment
Share on other sites

  • 2 years later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...