This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Declaring a field in XML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Declaring a field in XML" Watch "Declaring a field in XML" New topic

Declaring a field in XML

Muralidhar Sanapala

Joined: May 03, 2012
Posts: 1
now i am working on jasper reports instead of ROWNUM i am usaing REPORT_COUNT
while using report count i am getting error like "sort field ROWNUM not declared".
in xml i have the following code

<field name="ASSIGN_VEHICLE_ID" class="java.math.BigDecimal"/>
<field name="SERVICE_ID" class="java.math.BigDecimal"/>
<field name="VEHICLE_ID" class="java.math.BigDecimal"/>
<field name="DRIVER_MASTER_ID" class="java.math.BigDecimal"/>
<field name="DESCRIPTION" class="java.lang.String"/>
<field name="JOURNEY_DATE" class="java.sql.Timestamp"/>
<field name="CREATED_BY" class="java.math.BigDecimal"/>
<field name="CREATED_DATE" class="java.sql.Timestamp"/>
<field name="MODIFIED_BY" class="java.math.BigDecimal"/>
<field name="MODIFIED_DATE" class="java.sql.Timestamp"/>
<field name="SERVICE_NAME" class="java.lang.String"/>
<field name="DRIVER_NAME" class="java.lang.String"/>
<field name="REGISTRATION_NO" class="java.lang.String"/>
<sortField name="REPORTCOUNT"/>
can any one help me urgent

Campbell Ritchie

Joined: Oct 13, 2005
Posts: 41084
Welcome to the Ranch

This forum is for asking questions about the website, so I shall move your discussion elsewhere . . . I hope to the right place!
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 41084
Muralidhar Sanapala wrote: . . .
can any one help me urgent

No, it isn’t. There is no such thing as “urgent” here.
rocket mass heater kickstarter
subject: Declaring a field in XML