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)
Retrieving User's Login TIMEZONE
singsing
Hi,
I've been having difficulties with retrieving user login TimeZone and apply it to date as dataset parameter.
Found solution on this forum to use reportContext.getAppContext().get("AppRuntimeTimeZone"), however,, this works onRENDER, not on Initialize before Dataset is executed. So when run the report.
What I did was
1. On Initialize retrieve Timezone by reportContext.getAppContext().get("AppRuntimeTimeZone") etc, and then
2. apply timezone to date Report Parameter on Initialize phase as well.
3. Data set parameter is linked to Report parameter; therefore, I expect by the time dataset is executed, dataset will get date parameter with correct timezone.
But it doesn't work.
Please please please kindly help to solve TimeZone issue.
thank you.
sing
Find more posts tagged with
Comments
mwilliams
You might try setting up a customer parameter page where you could use script to determine the timezone, then pass that value to the report through a parameter. I haven't done it, but it should be able to be done. You could possibly also modify the parameter dialog jsp page for the standard parameter page to pass this info along.
Here's a devShare that will describe how to create a custom parameter page:
http://www.birt-exchange.org/org/devshare/deploying-birt-reports/298-2.2-birt-tag-library/
singsing
Thank you so much for your suggestion. will try to use custom parameters & update whether or not it's working.
I thought it will be simple to retrieve user Timezone just as Login Local Language without additional customization just by calling ReportContext.
mwilliams
I have not tried it, either way. I was just answering based on your having tried the same in both places and the one you wanted not working.
I'll take a closer look. Let me know if you get something working.
mwilliams
Looks like you've been working on this with Brian, as well. I'll just link this thread to that one:
http://www.birt-exchange.org/org/forum/index.php/topic/29088-retrieving-users-login-timezone/
singsing
Oh Yes, I have other thread that was unintentionally created.
Thank you. Will surely update when we have a progress.