Jump to content
Changes to the Jaspersoft community edition download ×

2005 IR Help

Recommended Posts

By: Tom Eugelink - tbee

XML logic?

2004-05-13 22:48

I am a bit confused about the semantics of the XML used. From a user perspective, if I want a textfield somewhere I would expect to have to enter something like:

 

<textfield x="0" y="4" width="50" height="15"

textAlignment="Right"

class="java.lang.String"

>

<![CDATA[$F{name}]]>

</textfield>

 

Straight forward, I think. But instead I have to enter 3x as much "code".

 

<textField>

<reportElement x="0" y="4" width="50"

height="15"

/>

<textElement textAlignment="Right"/>

<textFieldExpression class="java.lang.String">

<![CDATA[$F{name}]]>

</textFieldExpression>

</textField>

 

Why?

 

 

 

 

By: Mark Engstrom - me2kme

RE: XML logic?

2004-05-14 01:20

 

In it's simplest form you don't need the CDATA element. That reduces it a bit.

 

<textField>

<reportElement x="0" y="4" width="50"

height="15"

/>

<textElement textAlignment="Right"/>

<textFieldExpression class="java.lang.String">$F{name}

</textFieldExpression>

</textField>

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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...