Add "target=newwin" to link component URL?

I want to be able to have a link open in a new browser window. There does not seem to be a parameter or setting that allows for this, so I want to find the link url in the portal30 schema and manually add the target. I found the Application Id and the componenent Id, but can fidn the table that contains the link url. Does anyone know what table contains this detail?

If you are linking to an portal application component, I fear you won't be able add "_new" link in url as the url is generated at runtime.

Similar Messages

  • How to get the target file name from an URL?

    Hi there,
    I am trying to download data from an URL and save the content in a file that have the same name as the file on the server. In some way, what I want to do is pretty similar to what you can do when you do a right click on a link in Internet Explorer (or any other web browser) and choose "save target as".
    If the URL is a direct link to the file (for example: http://java.sun.com/images/e8_java_logo_red.jpg ), I do not have any problem:
    URL url = new URL("http://java.sun.com/images/e8_java_logo_red.jpg");
    System.out.println("Opening connection to " + url + "...");
    // Copy resource to local file                   
    InputStream is = url.openStream();
    FileOutputStream fos=null;
    String fileName = null;
    StringTokenizer st=new StringTokenizer(url.getFile(), "/");
    while (st.hasMoreTokens())
                    fileName=st.nextToken();
    System.out.println("The file name will be: " + fileName);
    File localFile= new File(System.getProperty("user.dir"), fileName);
    fos = new FileOutputStream(localFile);
    try {
        byte[] buf = new byte[1024];
        int i = 0;
        while ((i = is.read(buf)) != -1) {
            fos.write(buf, 0, i);
    } catch (Throwable e) {
        e.printStackTrace();
    } finally {
        if (is != null)
            is.close();
        if (fos != null)
            fos.close();
    }Everything is fine, the file name I get is "e8_java_logo_red.jpg", which is what I expect to get.
    However, if the URL is an indirect link to the file (for example: http://javadl.sun.com/webapps/download/AutoDL?BundleId=37719 , which link to a file named JavaSetup6u18-rv.exe ), the similar code return AutoDL?BundleId=37719 as file name, when I would like to have JavaSetup6u18-rv.exe .
    URL url = new URL("http://javadl.sun.com/webapps/download/AutoDL?BundleId=37719");
    System.out.println("Opening connection to " + url + "...");
    // Copy resource to local file                   
    InputStream is = url.openStream();
    FileOutputStream fos=null;
    String fileName = null;
    StringTokenizer st=new StringTokenizer(url.getFile(), "/");
    while (st.hasMoreTokens())
                    fileName=st.nextToken();
    System.out.println("The file name will be: " + fileName);
    File localFile= new File(System.getProperty("user.dir"), fileName);
    fos = new FileOutputStream(localFile);
    try {
        byte[] buf = new byte[1024];
        int i = 0;
        while ((i = is.read(buf)) != -1) {
            fos.write(buf, 0, i);
    } catch (Throwable e) {
        e.printStackTrace();
    } finally {
        if (is != null)
            is.close();
        if (fos != null)
            fos.close();
    }Do you know how I can do that.
    Thanks for your help
    // JB
    Edited by: jb-from-sydney on Feb 9, 2010 10:37 PM

    Thanks for your answer.
    By following your idea, I found out that one of the header ( content-disposition ) can contain the name to be used if the file is downloaded. Here is the full code that allow you to download locally a file on the Internet:
          * Download locally a file from a given URL.
          * @param url - the url.
          * @param destinationFolder - The destination folder.
          * @return the file
          * @throws IOException Signals that an I/O exception has occurred.
         public static final File downloadFile(URL url, File destinationFolder) throws IOException {
              URLConnection urlC = url.openConnection();
              InputStream is = urlC.getInputStream();
              FileOutputStream fos = null;
              String fileName = getFileName(urlC);
              destinationFolder.mkdirs();
              File localFile = new File(destinationFolder, fileName);
              fos = new FileOutputStream(localFile);
              try {
                   byte[] buf = new byte[1024];
                   int i = 0;
                   while ((i = is.read(buf)) != -1) {
                        fos.write(buf, 0, i);
              } finally {
                   if (is != null)
                        is.close();
                   if (fos != null)
                        fos.close();
              return localFile;
          * Returns the file name associated to an url connection.<br />
          * The result is not a path but just a file name.
          * @param urlC - the url connection
          * @return the file name
          * @throws IOException Signals that an I/O exception has occurred.
         private static final String getFileName(URLConnection urlC) throws IOException {
              String fileName = null;
              String contentDisposition = urlC.getHeaderField("content-disposition");
              if (contentDisposition != null) {
                   fileName = extractFileNameFromContentDisposition(contentDisposition);
              // if the file name cannot be extracted from the content-disposition
              // header, using the url.getFilename() method
              if (fileName == null) {
                   StringTokenizer st = new StringTokenizer(urlC.getURL().getFile(), "/");
                   while (st.hasMoreTokens())
                        fileName = st.nextToken();
              return fileName;
          * Extract the file name from the content disposition header.
          * <p>
          * See <a
          * href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html">http:
          * //www.w3.org/Protocols/rfc2616/rfc2616-sec19.html</a> for detailled
          * information regarding the headers in HTML.
          * @param contentDisposition - the content-disposition header. Cannot be
          *            <code>null>/code>.
          * @return the file name, or <code>null</code> if the content-disposition
          *         header does not contain the filename attribute.
         private static final String extractFileNameFromContentDisposition(
                   String contentDisposition) {
              String[] attributes = contentDisposition.split(";");
              for (String a : attributes) {
                   if (a.toLowerCase().contains("filename")) {
                        // The attribute is the file name. The filename is between
                        // quotes.
                        return a.substring(a.indexOf('\"') + 1, a.lastIndexOf('\"'));
              // not found
              return null;
         }

  • Link to URL - How to Open a New Tab

    I have created some PDF's in Adobe Acrobat and I am hosting them on my website. So for example here is one: <possible spam link removed - kglad>
    I have created links to URL's using the Link Properties tool, Actions tab. However it will only open the URL in the same tab.
    Is it possible to have the URL's open in a new tab?
    Hope someone can help.
    Heath

    You need to use the target="_blank" attribute to make links open in a new window or tab. Where the link actually opens is up to the browser settings. So if you have Tools > Internet Options > Tabbed Browsing Settings > "Always open pop-ups in new tabs" selected, a target="_blank" link will open in a new tab. Note that this type of link will open in a new window by default on most browsers.

  • URGENT: pass parameters from report to report without usting a link or URL

    HI.
    I want to send an ID field from a report to a report (like master-detail) and that should be done by pressing the next or previous button. So, not with a LINK or URL link.
    Is that possible? I used the wwsto_api_session package in several ways, but no luck so far.
    Thanks,
    Paul.

    If your requirement is to provide buttons that take the users to another report, you have to do the following:
    In your source report (report A), create a form containing a button. Use hidden fields for the parameters you have to pass to the target report (report B).
    You'd need to base your report A on a SELECT statement. One of the columns in the SELECT statement can be a string where you actually construct the entire HTML form, something like:
    SELECT ...., '<form action=... method=post> ... ' FROM ...Hope this helps.

  • Can't see add targets and devices in project explorer

    Hello!
    i think I have a strange query. i have Labview 2010 evaluation version. i am trying to add my cRIO 9004 to a project. I am just trying to follow the instructions in the getting started with cRIO manual. it says, add crio to the project by right clicking root project and selecting NEW>>ADD TARGETS AND DEVICES. The problem is I see the link for NEW but once i click that i dont see a sub-link "add new target or device" appear, INSTEAD i see the dialog box for  opening a NEW LABVIEW FILE appear. every where in the forum/knowledgebase/support trouble shooting and getting started articles have mentioned right-click root project>>select NEW>> select add target or device>> , as if it IS SUPPOSED TO APPEAR STANDARD in all new projects! But I dont see it! i dont get what I am missing. The software version i have are below:
    on cRio:
    NI VISA 5.0
    NI RIO 3.0
    LV RT 8.6
    and it matches with what i have installed on my host computer.
    I can communicate with the cRIO device both using MAX and also using ping command in windows command prompt.
    Any help would be great!!
    Thanks!
    Rajesh
    Solved!
    Go to Solution.

    well yes! it didnt strike me though that i had to reinstall my LV addon modules as you had mentioned drivers. anyways thank you!

  • EM12c: Add Target SQL Server 2012 Fails

    EM12c: Add Target SQL Server 2012 Fails
    Configuration:
    EM12c platform:
    Oracle Enterprise Linux 6.2(x86_64)
    Oracle Enterprise Database 11.2.0.3 (x86_64)
    Enterprise Manager Cloud Control 12c Release 1 (12.1.0.1) (x86_64)
    Microsoft SQL Server Plug-In 12.1.0.2.0 deployed in the Management Server
    Target:
    Windows Server 2008 R2 Enterprise Edition SP1 (64-bit)
    SQL Server 2012 (Enterprise Edition) (64-bit)
    Microsoft SQL Server Plug-In 12.1.0.2.0 deployed in the Management Agent
    Problem: EM12c fails to add a SQL Server 2012 instance.
    Target Name: mssql_mcsdbsqlsrv2.esri.com     
    Target Type: Microsoft SQL Server
    Agent: https://mcsdbsqlsrv2.esri.com:3872/emd/main/
    * JDBC URL (Example : jdbc:sqlserver://<host>:<port>): jdbc:sqlserver://mcsdbsqlsrv2.esri.com:1433
    JDBC Driver (Optional): com.microsoft.sqlserver.jdbc.SQLServerDriver
    Database Username (Required for SQL Authentication): sa
    Password of Database User (Required for SQL Authentication): ****     
    System Username (Needed when SQLServer is at remote location):
    System Password (Needed when SQLServer is at remote location):     
    Connect Using Windows Integrated Authentication (Yes/No): No
    Role (Optional):
    Error:
    MSSQLDetermineName_DynamicProperty;em_error=Could not connect. Error code = 0x8004100e
    em_error=Failed while connecting to WMI.
    Response;Can't resolve a non-optional query descriptor property [provided_sql_server_name] (ms_sqlserver_servername)
    The sa login is enabled and I can connect from a remote machine to the MSSQL 2012 server using SQL Server Management Studio.
    I have also added several default MSSQL 2008 instances to EM12c successfull.
    I've installed the latest "Microsoft SQL Server Plug-In 12.1.0.2.0" in EM12c and deployed it to the target agent in the MSSQL 2012 machine
    Does EM12c (12.1.0.1) support MSSQL 2012?
    Thanks,
    Marcelo Marques
    Technical Manager, Esri
    Edited by: Marcelo Marques - ESRI on Sep 26, 2012 9:12 AM
    Edited by: Marcelo Marques - ESRI on Sep 26, 2012 9:13 AM

    Hello All,
    What is the latest information on MSSQL 2012 support on EM12c as a supported Target Deployment?
    Thanks
    Jan S.

  • To Include link to URL in FORM_UIBB for Personal Deatil view

    Hi Experts,
    I have requirement to include the Link to URL in the Form UIBB for Personal Deatil . The form UIBB is built using the Fedder Class - CL_HRESS_PER_DETAIL.
    The Fedder class get the Structure in the - IF_FPM_GUIBB_FORM~GET_DEFINITION fom the BOL component - HRPAD Object Name - IT0002_10 which  are included as the Fedder Class Parameters.
    Please let me know how include the Link to URL in the View.
    Thanks
    Amol

    Hi Amol
    Can u let me know what exactly u have done?? have you run'd HRESS_CC_PER_OVP?? or changed any Individual DTL screen???
    Cheers
    Pradyp

  • When curser is on hyper link the url will diplay on the bottom of the screen in the background.(where done is located when site is loaded) How do you control this function?

    When curser is on hyper link the URL will display on the bottom of the screen in the background.(where done is located when site is loaded) How do you control this function?

    Do you want to control that via code on a web page to prevent visitors from seeing the link or do you ask as a Firefox user?<br />
    Tools > Options > Content : JavaScript > Advanced > Allow Scripts to:
    [ ] "Hide the status bar"
    [ ] "Change the status bar text"
    The Status Bar will be gone in Firefox 4.0 and is replaced by the (View > Toolbars) Add-on bar that extensions can use.

  • Editing "Create links from URLs"

    My document has Preferences | General | "Create links from URLs" enabled. But when I hovver the cursor over the link, it is incorrect, with a trailing space character, showing as http://www.example.com/webaddress/20 (it should not have the trailing 20).
    I've tried using the Text Touch Up tool, but there is no trailing space in the text, and if I try and delete the last few characters, and retype them, then the Web address shows squares where I change the chacters, eg. http://www.example.com/webadd⃞⃞⃞⃞⃞⃞
    How can I edit the automatically generated web address?

    How can I edit the automatically generated web address?
    You can't.
    With the link tool you can add a link with the correct address.

  • I want to add DataGrid in my custom component as a child component,

    I want to add DataGrid in my custom component as a child component, can we ?? or should i generate HTML for table creation in my custom component's renderer ?

    I did that:
    for example, if i want to add a Button control in my custom control:
    public void encodeChildren( FacesContext context ) throws IOException
             super.encodeChildren( context );
            //createComponent raises exception.... invalid component type     
            //UIComponent field = FacesContext.getCurrentInstance().getApplication().createComponent( javax.faces.component.html.HtmlInputText.class.getName() );
             HtmlInputText input = new HtmlInputText();
            getChildren().add( input );
        public boolean getRendersChildren()
            return true;
        }Can you give me any example, i want to add child components at run time basically..

  • Link to URL -- pdf should open in new window - Error

    Hi experts,
    I have a Web Dynpro Application with an ALV and a link to url in one column. The code is ok. It works fine. When I click on the URL a new browser window opens with the correct URL, but I get an Error --> "The requested URL could not be retrieved".
    It should be a pdf. But Acrobat Reader does not open. If I put the URL in Firefox Browser, it works perfect. Acrobat Reader opens and shows the pdf.
    The same happens when I use Windows 2000 System with Internet Explorer version 6.0.2800.1106.
    I have normally Windows XP with Internet Explorer version 6.0.2900.2180 with sp2.
    What can that be? On both computers I have the same version of Acrobat Reader with the same configuration.
    Had someone of you this problem, too? Who can help?
    Thanks a lot.
    Best regards,
    Ingmar

    I answered it myself. I had to look that for the called server no proxyserver will be used...

  • How do I add an image specified by a URL to an application?

    I am building a Java FAQ page for my college and I am stumped by this question: How do I add an image specified by a URL to an application?
    I am trying to do something like this:
    try {
    ImageIcon logoImage = new ImageIcon(new URL("http://www.gcodes.net/tutor/javafaq/Java%201130%20FAQ/images/comments.png"));
    } //end try
    catch(MalformedURLException e) {
    }//end catch
    //add image to JLabel
    topLogoHolder.setIcon(logoImage);I've looked through my Java textbooks and done many google searches. Please help.
    -Matt

    Are you having problems with logoImage being undefined?
    Because, as you have it, logoImage only exists within the 'try' block.
    Either call topLogoHolder.setIcon(logoImage) within the 'try' block, or declare the logoImage outside the 'try' block and set it within the 'try' block.
    I'd say you might as well call setIcon within the 'try' block, if you don't need the logoImage value elsewhere. Because, if you get that exception that you are catching, your ImageIcon won't be initialized right, anyway.

  • How can i add a new regional map component in xcelsius 2008 ?

    hi,
    we need to add a new regional map component in xcelsius 2008 , how can i do it ?
    Where do I find any examples ?
    Thanks

    You might want to check out the Any Map Component found on the Marketplace: http://www.ondemand.com/information/xcelsius.asp.  Then click on Visit the Marketplace to view all add-ons.
    This is one of the cool components that the users created using the Xcelsius 2008 Component SDK.

  • How to add SharePoint 2013 Promoted link list view web part in page programatically with Tiles view using CSOM.

    How to add SharePoint 2013 Promoted link list view web part in page programatically with Tiles view using CSOM. I found that it can be
    done by using XsltListViewWebPart class but how can I use this one by using shraepoint client api.
    shiv

    Nice, can you point me to the solution please ?
    I'm  trying to do this but I get an error : 
    Web Part Error: Cannot complete this action. Please try again. Correlation ID: blablabla
    StackTrace:    at Microsoft.SharePoint.SPViewCollection.EnsureViewSchema(Boolean fullBlownSchema, Boolean bNeedInitallViews)     at Microsoft.SharePoint.SPList.GetView(Guid viewGuid)   
    All help really appreciated.

  • Regarding Link to URL UI Element in a table

    Hi All,
    I am using "link to url" UI Element in a table column. I have mapped the column (i mean the "reference" property of "link to url" UI to a bapi node). Now, when I am populating the table, for some rows the bapi is not returning the url links. So, the column is getting disabled and not even showing the links for the rows which are getting the url link from the bapi.
    Is there any way to set the mapping row wise, so that the rows which have data get enabled with the link and which do not have data will be disabled.
    Also, can I make the whole table readonly, except for one column.
    Please help me in this regard.
    Regards,
    Murthy.

    Hi Armin,
    Thank you very much. The problem is solved. 10 points for you.
    Another Question.......
    Can we make the table readonly, leaving just one column to select.(that is the column with link to url). Is it possible? If so, please tell me how....
    Also, can you tell me the reason for the following exception.....
    <b>com.sap.tc.webdynpro.progmodel.context.ContextConfigurationException: DataNodeInfo(CreateTemplateComp.Zad_Bapi_Get_Template_Details_Input.Output.T_Template_Details): structure field Ad_Height not found
        at com.sap.tc.webdynpro.progmodel.context.DataAttributeInfo.init(DataAttributeInfo.java:299)
        at com.sap.tc.webdynpro.progmodel.context.NodeInfo.initUnmappedAttributes(NodeInfo.java:687)
        at com.sap.tc.webdynpro.progmodel.context.DataNodeInfo.doInit(DataNodeInfo.java:238)
        at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:671)
        at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:674)
        ... 49 more</b>

Maybe you are looking for

  • VPN clients can connect via SSTP but not IKEv2 due to error 808

    I have a Windows Server 2012 R2 with RRAS configured to allow SSTP / IKEv2 VPN connections. I'm using an external certificate for server authentication and the client authentication is done via domain username/password (Protected EAP). The clients ca

  • Why Apple Tv 2 drop Home Sharing connection after few minutes?

    I just installed an Apple TV 2. Internet connection applications as Apple Store, Youtbe, etc work very well but it drops Library`s communication just after a few minutes. I`m running files like music that are in the library in a PC with Windows Vista

  • After Creating a RecordSet using Wizard, Unable to Create RecordSet Paging - Error Occurs

    I created a record set using the wizard and it tested just fine using the test button.  So my next step was to create the "RecordSet Paging" "Move to First Record", whe I select this I get the error "Before using this Server Behavior, please create a

  • HP 8600 wireless

    setup won't move beyond acquiring e-mail address during setup

  • AUTH TLS ftp client?

    I've made my pure-ftpd work properly (with a virtual user database and ssl/tls), but I haven't been able to find any proper ftp client for the unix platform the most important thing is AUTH TLS support! a gtk2 interface would be nice, but it's not ma