Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Error in setting the Content for Header Label
levanter
Hi,
when i try to set the Header Content using the following the Code
DesignElementHandle eaderLabel=efactory.newLabel("headerLabel");
headerLabel.setStringProperty("Content","Test");
i am getting the following error
org.eclipse.birt.report.model.api.command.PropertyNameException: The property "Content" is invalid for element "headerLabel".
at org.eclipse.birt.report.model.command.PropertyCommand.setProperty(PropertyCommand.java:121)
at org.eclipse.birt.report.model.api.DesignElementHandle.setProperty(DesignElementHandle.java:512)
at org.eclipse.birt.report.model.api.DesignElementHandle.setStringProperty(DesignElementHandle.java:550)
why is it???
Find more posts tagged with
Comments
mwilliams
Hi levanter,
Did you try it with a lower case 'c'? That may be the issue.
levanter
Thanks for your reply Williams
i got the answer, the property "Content" can be set only for the textItem and not for the label. For label the property should be set as "text". i got it by looking into the xml source file which is auto generated by the
BIRT designer.
mwilliams
Ah. Excellent. Thanks for sharing the solution you found.