rafaga Posted February 24, 2010 Share Posted February 24, 2010 Hi everyone, i was wondering if it's posible to use JasperReports variables and parameters inside Xpath expressions (for fields) if I use XML datasources. An example:Description of $F{Name}:Person[iD=$V{ID}]/NameorPerson[iD=$P{ID}]/NameI've tried the last two with no sucess.Maybe using variables and parameters in SQL queries is related, however i don't know how to do this either. Link to comment Share on other sites More sharing options...
rafaga Posted February 24, 2010 Author Share Posted February 24, 2010 Ja, ja, ja, ja. I found partially the answer here:http://jasperforge.org/plugins/espforum/view.php?group_id=102&forumid=103&topicid=23116However, it works only when I create a Sub Data Source for a subreport. any ideas about how accomplish the same in a field?Post Edited by rafaga at 02/24/2010 17:49 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now