Anyway to get the server name in formula?

I'm trying to create a dynamic hyperlink in my report.  To know which server the link needs to go to, I need to know which database server the report is being generated from.  Such as Development/Production
I know I can just put a parameter in the report which I can pass in as I'm changing the report source in my report viewer page.  But I was wondering if their is already something built in to the designer that I can use instead?

Hi Mark,
You can get the information of the Database to which the current report is linked to from the Set data source Location option available. i.e. click on the Database menu->Set Datasource Location.
The new window which appears, from the Current Data source you will find all the information under the Properties section like. Database type, Database name, User Id etc
I hope this helps you.
Regards,
Prashant

Similar Messages

  • How to get the Server Name in Crystal

    Hi All,
    We created a Crystal Report that pulls images from a File Location at the run time and this File Location is different for each environment (D-Q-P). We are trying to automate the file location by the server name. Is there any function in Crystal Reports that we can get the server name so we know if it is D-Q or P system?
    Thank you,

    Hi,
    There is no function in CR that can fetch the Server Name. That is something you need to provide to the formula.
    If you're loading images from a location on the Server, you can always use a Relative Path. For eg: if the images would be stored in a folder called Images, then you can write a formula on the 'Graphic Location' for the OLE object as:
    "/Images/Crystal.jpg"
    This will load the image from the folder when it is run on D, Q or P.
    Hope this helps!
    -Abhilash

  • How to get the server name/hostname on which JVM is running?

    How to get the server name/hostname on which JVM is running from the Servlet or normal class?

    InetAddress.getLocalHost()

  • How to get the Server name only?

    Hello,
    I would like to get this part of server's URL: "http://<host_name>"
    I am familiar with the Object WDURLGenerator but I don't see a method to do that, all the methods require manipulating the received String. Is there a method to get only the part I've mentioned?
    Roy

    Hi,
    String sysname = System.getProperty("SAPSYSTEMNAME");
    String hostname = System.getProperty("j2ee.dbhost");
    will give the server name..then u can say http://<hostname>...

  • Whats the best way to get the server name in a servlet deployed to a cluster?

              Hi,
              I have a servlet in a web application that is deployed to a cluster, just
              wondering what is the best way to get the name of the node that the server is
              running on at run time??
              Thanks
              

              Please try to modify the following code and test for your purpose: (check Weblogic
              class document for detail)
              import javax.naming.*;
              import weblogic.jndi.*;
              import weblogic.management.*;
              import weblogic.management.configuration.*;
              import weblogic.management.runtime.*;
              MBeanHome home = null;
                   try{
                        //The Environment class represents the properties used to create
                             //an initial Context. DEfault constructor constructs an Environment
                             //with default properties, that is, with a WebLogic initial context.
                             //If unset, the properties for principal and credentials default to
                             //guest/guest, and the provider URL defaults to "t3://localhost:7001".
                             Environment env = new Environment();
                             //Sets the Context.PROVIDER_URL property value to the value of
                             //the argument url.
                             if(admin_url!=null){
                                  env.setProviderUrl(admin_url);
                                  //Sets the Context.SECURITY_PRINCIPAL property to the value of
                                  //the argument principal.
                                  env.setSecurityPrincipal(username);
                                  //Sets the value of the Context.SECURITY_CREDENTIAL property to
                                  //the value of the argument cedentials
                                  env.setSecurityCredentials(password);
                                  //Returns an initial context based on the properties in an Environment.
                                  ctx = env.getInitialContext();
                             }else ctx = new InitialContext();
                             home = (MBeanHome) ctx.lookup(MBeanHome.ADMIN_JNDI_NAME);
                             ctx.close(); //free resource
                             // or if looking up a specific MBeanHome
                             //home = (MBeanHome) ctx.lookup(MBeanHome.JNDI_NAME + "." + serverName);
                             DomainMBean dmb = home.getActiveDomain(); //Get Active Domain
                             ServerMBean[] sbeans = dmb.getServers(); //Get all servers
                             if(sbeans!=null){
                                  for(int s1=0; s1<sbeans.length; s1++){
                                       String privip = sbeans[s1].getListenAddress();
                                  sbeans[s1].getName();
                             sbeans[s1].getListenPort();
                                                 WebServerMBean wmb = sbeans[s1].getWebServer();
                   }catch(Exception ex){
              "Gao Jun" <[email protected]> wrote:
              >Is there any sample code? Thanks
              >
              >Best Regards,
              >Jun Gao
              >
              >"Xiang Rao" <[email protected]> wrote in message
              >news:[email protected]...
              >>
              >> Sure. You can use the Weblogic management APIs to query ServerBean.
              >>
              >>
              >> "Me" <[email protected]> wrote:
              >> >
              >> >Thanks for your reply, i was hoping to find a better way for example
              >> >a class in
              >> >weblogic API.
              >> >
              >> >Thanks
              >> >
              >> >"Xiang Rao" <[email protected]> wrote:
              >> >>
              >> >>Physical: InetAddress.getLocalHost().getHostName()
              >> >>Weblogic: System.getProperty("weblogic.Name");
              >> >>
              >> >>
              >> >>"Me" <[email protected]> wrote:
              >> >>>
              >> >>>Hi,
              >> >>> I have a servlet in a web application that is deployed to a
              >cluster,
              >> >>>just
              >> >>>wondering what is the best way to get the name of the node that
              >the
              >> >>server
              >> >>>is
              >> >>>running on at run time??
              >> >>>
              >> >>>Thanks
              >> >>
              >> >
              >>
              >
              >
              

  • Get the server name

    my data
    http://localhost/ReportServer/reports/report1&rs:Command=Render&rs:format=PDF
    http://testhost/ReportServer/reports/report1&rs:Command=Render&rs:format=PDF
    http://prodhost/ReportServer/reports/report1&rs:Command=Render&rs:format=PDF
    i need to write an sql query to select
    localhost
    testhost
    prodhost
    ShanmugaRaj

    DEclare @a varchar(100)
    set @a='http://localhost/ReportServer/reports/report1&rs:Command=Render&rs:format=PDF'
    select substring(substring(@a,len('http://')+1,len(@a)),0,patindex('%/%',substring(@a,len('http://')+1,len(@a))))Full test code is belowcreate table #temp
    name varchar(100)
    insert into #temp values('http://localhost/ReportServer/reports/report1&rs:Command=Render&rs:format=PDF')
    insert into #temp values('http://testhost/ReportServer/reports/report1&rs:Command=Render&rs:format=PDF')
    insert into #temp values('http://prodhost/ReportServer/reports/report1&rs:Command=Render&rs:format=PDF')
    select substring(substring(name,len('http://')+1,len(name)),0,patindex('%/%',substring(name,len('http://')+1,len(name))))
    from #temp
    --Prashanth

  • How to get a server name through the load balancer

    Hi.
    I'd like to get the server name where is my application installed. There are some servers and clients access there throuth the load balancer. When I try to get it with request.getServerName(), I get the virtual address of the load balancer.
    Any suggestions?
    Thanks.

    Dear Sikindar;
    THanks for your cooperation, but I believe that these Tcodes will eb helpful if I know the table name, actually we don't know its name and that's what I'm asking about, how can I get the table name for the ABAPer?
    Appreciating your cooperation.
    Best Regards;
    Lobna

  • How to get the Host name and port number

    Hi all,
    I am working in xRPM. I need to get the server name, host name & port number for the portal and i need to diaplay as a link in the Workflow step. I cant give the portal link as static, as it will vary depends on the DEV, QUAL, PROD. Is there any FM or class is available, so i can get the server name, port no. for my purpose?.
    Regards,
    Vinoth

    Hi Kanagaraja,
    My client has configured the portal and backend in different stack. So when i execute the FM you provided and with class: CL_HTTP_SERVER, CL_WD_UTILITIES, i am getting only the backend host name and port no. not the portal's info. So please help is there any way we can get the portal's info.
    Thanks for your reply.
    -Vinoth

  • Can you select the server name or I.P. from SQL

    I am trying to find where I can get the server name or IP address from an SQL query, Can you Help?

    Do you mean the database host? It's like this:
    SQL> select host_name from v$instance;
    HOST_NAME
    sqlintdb4                                                                                                                                                                                                                                                                                                                               

  • How to get the server URL?

    I am running WLS server on my machine to host a web app in ADF. How can I get the server name in my manged bean. I dont want to hardcode. The URL is something like this
    http://<my-machine-name>:<port>/epmos/faces/myapp/MyPage.jspx
    How can I retrieve the part
    http://<my-machine-name>:<port>

    In JSFUtils there is a getPageURL method. it will give the whole URL of your page. you can play with the URL string to get the part you need.
       * Method to create a redirect URL. The assumption is that the JSF servlet mapping is
       * "faces", which is the default
       * @param view the JSP or JSPX page to redirect to
       * @return a URL to redirect to
      public static String getPageURL(String view)
        FacesContext facesContext = getFacesContext();
        ExternalContext externalContext = facesContext.getExternalContext();
        String url =
          ((HttpServletRequest) externalContext.getRequest()).getRequestURL().toString();
        StringBuffer newUrlBuffer = new StringBuffer();
        newUrlBuffer.append(url.substring(0, url.lastIndexOf("faces/")));
        newUrlBuffer.append("faces");
        String targetPageUrl = view.startsWith("/")? view: "/" + view;
        newUrlBuffer.append(targetPageUrl);
        return newUrlBuffer.toString();
      }

  • Getting error when i am giving the server name in JDBC

    Hi All,
    When i am trying to connect to JDBC then i am getting the error in Servername
    {color:#3366ff}********************INPUT OF Testing.java************************
    package com.fidelity.ereview.utils;{color}
    {color:#3366ff}import java.io.*;
    import java.sql.*;{color}
    {color:#3366ff}public class Testing {
    public static void main(String[] args) throws SQLException {{color}
    {color:#3366ff} Connection con;
    SQLServerDataSource ds = new SQLServerDataSource();
    ds.setServerName("01HW059726\SQL2K5"); {color:#ff0000}//here getting error{color}
    ds.setPortNumber(1433);
    ds.setUser("eReview");
    ds.setPassword("Password123");
    ds.setDatabaseName("migration");
    con = ds.getConnection();
    if (con != null) {
    System.out.println("Successfully connected");
    else
    System.out.println("Not Successfully connected");
    Kindly anybody tell me that how shell i give the server name (My server name is :01HW059726\SQL2K5) in the
    ds.setServerName???{color}

    Replace \ in server name with \\ like
    01HW059726*{color:#ff0000}\\{color}*SQL2K5

  • Getting the server Host name in Action Script?

    Good Morning --
    Is it possible in a flash movie (CS3/AS 3.0) to get the host
    name of the
    server running the flash movie?
    For example, if the URL is
    http://www.domain.com/movie.swf,
    I would like to
    be able to read a variable / function and have the result be
    "domain.com"
    Thanks
    Rich

    Excellent! Thank you. I will give this a shot.
    Rich
    "David Stiller" <[email protected]> wrote in
    message
    news:ff57ge$hj2$[email protected]..
    > Rich,
    >
    >> Is it possible in a flash movie (CS3/AS 3.0) to get
    the host name
    >> of the server running the flash movie?
    >
    > In AS2, it was a simple matter of checking
    MovieClip._url against the
    > root, since the main timeline is, after all, a movie
    clip ...
    >
    > trace(_root._url);
    >
    > ... then manipulating the string -- say, with
    String.substr() -- to format
    > it how you need.
    >
    > In AS3, it's a simple matter of checking the LoaderInfo
    instance
    > associated with the root. In AS3, the main timeline is
    an instance or
    > subclass of DisplayObject (such as Sprite or MovieClip),
    and
    > DisplayObject's have a loaderInfo property that refers
    to the necessary
    > associated LoaderInfo instance, which has a loaderURL
    property that points
    > to what you're after:
    >
    > trace(root.loaderInfo.loaderURL);
    >
    > If you pop a quick dynamic text field in the main
    timeline and give it
    > the instance name output, you could put this line of
    code in a script
    > layer:
    >
    > output.text = root.loaderInfo.loaderURL;
    >
    > ... and you'd see the info you're after. Again, use
    String methods to
    > chop off whatever part of the string you don't need.
    >
    >
    > David Stiller
    > Co-author, Foundation Flash CS3 for Designers
    >
    http://tinyurl.com/2k29mj
    > "Luck is the residue of good design."
    >

  • Hi, I'm trying to set up my Time Machine, but I get this message: The server may not exist or it is unavailable at this time. Check the server name or IP address, check your network connection, and then try again. how to resolve?

    Hi, I'm trying to set up my Time Machine, but I get this message: The server may not exist or it is unavailable at this time. Check the server name or IP address, check your network connection, and then try again. how to resolve?

    Did you reboot the TC? That is always the first step.
    Reboot the whole network if that is not enough.
    If you still have issues.. come back to us but generally the best way is to factory reset the TC and start over.
    We need a bit more info on the whole network layout and what OS you are running. What model TC you have??

  • Script to get all the Server Names on Central Site in the SCCM 2007 Hierarchy

    I want a script which will run on Central Site, and give all the SCCM server names in the hierarchy.
    Thanks and Regards, Mohd Zaid www.techforcast.com

    Duplicated post of
    http://social.technet.microsoft.com/Forums/systemcenter/en-US/97910cd5-8f8b-46a7-86fa-c00932571d0d/script-to-get-all-the-server-names-on-central-site-in-the-sccm-2007-heirarchy?forum=configmgrgeneral
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • Every time I try to connect to my 2TB Airport Time Capsule I get the following msg - "The server may not exist or it is unavailable at this time. Check the server name or IP address, check your network connection, and

    Every time I try to connect to my 2TB Airport Time Capsule I get the following message "The server may not exist or is unavailable at this time.  Check the server name or IP address, check your network connection, and then try again."  However, if I unplug it and then plug it in again, I can connect to it.  How can this be corrected without having to unplug it all the time?

    Are you using Yosemite??
    This is stock standard yosemite bug and we have no simple fix for you..
    You can fix it at its source..
    Hack in DNS from Mavericks.. so Yosemite can be raised to a level of reliability above GHASTLY.. !!
    http://arstechnica.com/apple/2015/01/why-dns-in-os-x-10-10-is-broken-and-what-yo u-can-do-to-fix-it/
    Apple still have not fixed it.. and users are now sick and tired of the problem.. so have resorted to what can only be described as extreme measures.. in fact I wonder why people don't just revert to Mavericks.. or earlier.. whatever OS was reliable.. instead of seeing the latest greatest update as necessity.

Maybe you are looking for

  • COPA vs New GL

    I am looking for feedback regarding reporting, as we are trying to finalize our reporting design.  I am working with a SAP shop that uses COPA and FICO in R/3 (4.6C release) and BW3.5 and are upgrading to ECC and BI 7. As part of their project we hav

  • Sending mail to a particular positon in org structure via workflow

    hi all i have a problem regarding sending mail to particular position in org structure on runtime execution  via workflow so that i neednt hard court the particular position to achieve this i am using expressions,first i have created a new container

  • Hp printer not hooking up

    I have a new wireless hp photosmart 7520. I am unable to connect. In eprint setup, it wants a proxy address. Tried everything. Finally used ip address, now it wants a port. New at this, what do I put there?

  • How to create a Button Map easly?

    I am trying to make a clickable map where you can click on small areas and be linked to another page.... I can of course break the map to 100 pieces and make 100 buttons and put them together... But this is so time consuming and I am sure there is a

  • No windows involved- recovery mode in ipod using only imac

    hi, i see multiple questions re recovery mode and ipods but all with windows- i can't find anything about it happening when using OSX. i have tried to restore multiple times but keep getting the "recovery" message. i have updated the software, tried