BIRT Exchange Forum: Capturing server details dynamically - BIRT Exchange Forum

Jump to content


 

No Latest Open Poll.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Capturing server details dynamically Getting ip,user,pwd and volume names Rate Topic: -----

#1 User is offline   siva_birt Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 28
  • Joined: 08-June 08


Posted 04 April 2012 - 02:04 PM

Hi,
I need to capture (1)ipaddress of iServer hosting m/c (2) Management console password(assuming user is administrator) (3) Volume name. Can some one help me how to code in rptdesign file to capture this information?
Thanks....Siva
0

#2 User is offline   johnw Icon

  • Senior Member
  • View blog
  • Group: Members
  • Posts: 712
  • Joined: 08-May 08


Posted 05 April 2012 - 06:04 AM

Everything except the management console password is available in the reportContext object. Check the Working with Actuate BIRT documentation. The section on getting iServer environment variables is here: http://www.birt-exch...rver.19.01.html
0

#3 User is offline   siva_birt Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 28
  • Joined: 08-June 08


Posted 05 April 2012 - 07:30 AM

Thank you very much. I am able to grab volume and user names. I could not locate the code for IPADDRESS of hosting m/c. Can u please guide me to find it? Also, any other suggestions about password?
0

#4 User is offline   averma Icon

  • Senior Member
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 713
  • Joined: 08-August 07


Posted 05 April 2012 - 09:51 AM

Hi siva_birt,
Try the following for server ip
reportContext.getHttpServletRequest().getLocalAddr()


Why would you need management console password in your BIRT report?
Ashwini

Follow me on Twitter
Read my Blog BIRT Rocks!
0

#5 User is offline   siva_birt Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 28
  • Joined: 08-June 08


Posted 05 April 2012 - 10:30 AM

I need to send them as parameters to another birt report(report bursting)
0

#6 User is offline   siva_birt Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 28
  • Joined: 08-June 08


Posted 05 April 2012 - 10:35 AM

Getting the error " Can not call the method "getLocalAddr""
0

#7 User is offline   siva_birt Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 28
  • Joined: 08-June 08


Posted 05 April 2012 - 10:51 AM

I got it by using :
reportContext.getAppContext().get("ServerURL");
0

#8 User is offline   siva_birt Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 28
  • Joined: 08-June 08


Posted 05 April 2012 - 10:58 AM

I got a better solution:
importPackage( Packages.java.net );
myownIP = new InetAddress.getLocalHost();
myownIP.getHostAddress();
Now, can someone help me, how to get password?
0

#9 User is offline   averma Icon

  • Senior Member
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 713
  • Joined: 08-August 07


Posted 05 April 2012 - 03:07 PM

I dont think you can get password, that would be a security violation. The workaround would be to customize your Information Console single-sign on (IPSE) mechanism.
Ashwini

Follow me on Twitter
Read my Blog BIRT Rocks!
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users