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)
Assign Value To "author"!!
birtq
Hi,
IS THERE ANY WAY TO ASSIGN VALUE TO "AUTHOR" IN PROPERTY EDITOR OF REPORT USING SCRIPT????
THANKS
birtq
Find more posts tagged with
Comments
mwilliams
Hi birtq,
You should be able to use this line to set the name:
reportContext.getReportRunnable().designHandle.getDesignHandle().setProperty("author", "Author_Name");
And this one to get it:
reportContext.getReportRunnable().designHandle.getDesignHandle().getProperty("author");
birtq
Hi Michael,
Thanks for your Reply .that statement is Throwing some exception.
please find the report as attachment and let me know where the fault is.
Thanks,
birtq
mwilliams
birtq,
The problem is with the text editor in here creating random spaces when copying and pasting. When I copied the script line in....there was no space in getDesignHandle(). When I submitted, it put the space in there, so when you copied and pasted it over, it had a space in it. Try going to your beforeFactory method of the report and deleting that space. That will fix the exception.
birtq
Hi
Yeah it works.
Thanks
birtq