Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
How to modify/delete data on existing report through API
hamsa
Hi
I have a question is there any way i can delete the data from existing report or modify the data existing report through progrmatic.
Thanks
Hamsa
Find more posts tagged with
Comments
JasonW
There are a lot of ways of doing this. Are you viewing the reports in the Viewer or did you write your own servlet?
Jason
hamsa
I have written java program. In that i am opening a existing report and adding data source, data set. Dynamic query. It always adding bottom of existing report. Instead of i need to delete that existing report data and need to add new data.
If i need i will send my sample program.
Need your help
Thanks in advance
Hamsa
JasonW
You can delete all the contents of a report using the design handle, but why not just start with a blank report design?
Jason
hamsa
Hi Jason,
Thanks for your reply. In some cases i need to delete one table/graph instead of complete report. In that case i need to use same report.
designHandle.getBody().dropAndClear(1); It is clearning one table. How do i know the index of that table?
give me some sample code..
thanks
Hamsa
JasonW
If you name each element in the report like Table1, Chart1 etc in the general properties you can drop that one item like:
beforeFactory script
reportContext.getDesignHandle().findElement("Table1").drop();
Jason
hamsa
Thanks for your help. I will try that one.
Thanks
Hamsa