victorlizonglin Posted May 23, 2018 Share Posted May 23, 2018 I'm dealing with a jxml file with a table in there. Now I want to insert more columns and attributes to that table. However, insert a column one by one by manual is so troublesome and cumbersome. Is there a way to take in a CSV file with the names of attributes and bulk insert columns or create fields?Thanks a lot. Link to comment Share on other sites More sharing options...
victorlizonglin Posted May 23, 2018 Author Share Posted May 23, 2018 Can anyone let me know - whether this is possible to make in Jasper?Thanks! Link to comment Share on other sites More sharing options...
Solution riodavid Posted May 24, 2018 Solution Share Posted May 24, 2018 Hi Zonglin,It's not possible.But as you know the Jasper report is based on jrxml - which is in fact a xml file, you can write your own program to read column names from csv, then add these columns to jrxml.BRD Link to comment Share on other sites More sharing options...
victorlizonglin Posted May 24, 2018 Author Share Posted May 24, 2018 Hi David, Thanks for help, but each column has it's unique ID, like "uuid="d5725c8d-60f7-4ee7-99ea-9d7d0a6ca803", which generate by jasper. How could I add them by my code? Do you have any idea?Thanks!Zonglin Link to comment Share on other sites More sharing options...
riodavid Posted May 25, 2018 Share Posted May 25, 2018 Hi Zonglin,UUIDs are unique identifiers, I think it can be replaced with any other UUIDs.I tried to replace the UUIDs in my reports with some other random generated UUIDs, the report works fine.ThanksD Link to comment Share on other sites More sharing options...
victorlizonglin Posted May 29, 2018 Author Share Posted May 29, 2018 Thank you, David. That is helpful. Link to comment Share on other sites More sharing options...
victorlizonglin Posted May 29, 2018 Author Share Posted May 29, 2018 Hi David,I just realized that if I copy the table from one report to another report. Should I change the uuid of each column of the table? There are lots of columns are same in two reports so I just copy one and modified it, but the uuid will be same.Thanks! Link to comment Share on other sites More sharing options...
riodavid Posted June 5, 2018 Share Posted June 5, 2018 Hi Zonglin,"I tried to replace the UUIDs in my reports with some other random generated UUIDs, the report works fine. " Link to comment Share on other sites More sharing options...
victorlizonglin Posted June 5, 2018 Author Share Posted June 5, 2018 Hi David, thank you so much. 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