Show the List attachment in a new window

 I have list item attachment names displayed along with the columns. I have used following styling to show the attachment names in the list
<td id="ItemAttchment" class="ms-vb">
<xsl:element name="SharePoint:AttachmentsField">
<xsl:attribute name="runat">server</xsl:attribute>
<xsl:attribute name="FieldName">Attachments</xsl:attribute>
<xsl:attribute name="ControlMode">Display</xsl:attribute>
<xsl:attribute name="Visible">true</xsl:attribute>
<xsl:attribute name="ItemId">
<xsl:value-of select="$thisNode/@ID">
</xsl:value-of>
</xsl:attribute>
</xsl:element>
</td>
I have webviewer setup for the word documents to show in the browser.  The attached document for the list item shows fine in the browser.  Currently the attachment document shows in the same browser window
When the user clicks on attachment name, I want to show it in a new window or new tab. How can I do that?
Thanks
Nate

Thank you Bala for the quick reply.  I still cant get the attachment to open in new window
I have used following code, Appreciate any help in resolving the issue
Thanks
Nate
<td id="ItemAttchment{$ID}{generate-id()}" class="ms-vb"  onclick="window.open(this.href,'_blank','');">
          <xsl:element name="SharePoint:AttachmentsField">
              <xsl:attribute name="runat">server</xsl:attribute>
              <xsl:attribute name="FieldName">Attachments</xsl:attribute>
              <xsl:attribute name="ControlMode">Display</xsl:attribute>
              <xsl:attribute name="Visible">true</xsl:attribute>
              <xsl:attribute name="ItemId" >
                         <xsl:value-of select="$thisNode/@ID">
                      </xsl:value-of>             
                </xsl:attribute>
          </xsl:element>
    </td>
<script language="javascript" type="text/javascript"> $( "#idAttachmentsTable tbody tr td span a").unbind( "click" ); </script>

Similar Messages

  • When bookmarking it does not show the list of folders that I have in bookmarks to place new bookmark into. I reset firefox

    When bookmarking it does not show the list of folders that I have in bookmarks to place new bookmark into. I reset firefox and still have the bookmarks from the bookmark tab, Just bookmarking new ones the folders do not appear to place new bookmarks in, only a few folders show

    Click the arrow at the far right (outside) of the Folder field (i.e. not the one in the Folder field) in the "Edit This Bookmark" window to access the complete folder list.<br />
    This full folder list also opens if you click the drop marker in the Folder field and click the "Choose..." item.<br />
    If folders in the list aren't expanded then look for a possibly faint arrow icon to expand/open the folders.
    *https://support.mozilla.org/kb/how-do-i-use-bookmarks

  • Report to show the list of Equipment with Attachment.

    Hi Experts,
    i have attached a file in Equipment Master IE02. Any report can show the list of equipment with attachments?
    Please advise.
    Thank You
    Best Regards

    If you are using IE02, then i think you are using object services - I have never seen a way to view these in an equipment list.  You can only view these while looking at the equipment.   If you use DMS (tcode CV01N) these will show on IE07 as well as in the notification or work order when you use this equipment.

  • I can no longer hold down the Safari icon on the dock and open a new window

    I noticed after installing Snow Leopard that I am unable to hold down the icon for Safari on my dock and choose the option to open a new window. I have had to revert to (Command-Tabbing) through my open applications to get to Safari, then (Command-N).
    I found it much more convenient to do it the other way. Am I missing something, or is this something that has been removed with the new Snow Leopard operating system?
    Please help. Thanks!

    Thank you. What a pain though. Why would they make it a separate command now. It would be so easy to have kept it in the pop-up that shows when you hold the cursor down on it.

  • My playlists show how many titles are in the playlist but does not show the list of titles

    my playlists show how many titles are in the playlist but does not show the list of titles. Is there a setting that I hit by mistake to hide the content?

    Perhaps you have made one column extra wide and the window isn't currently showing the Name column. Try resizing columns, turning off those that you don't need, or scrolling sideways.
    tt2

  • HT5628 Does it work with a macbook (aluminium) 2008 late, even if it isn't said in the desription? Windows 7 also did run, but wasn't in the list of working models for windows 7...

    Does it work with a macbook (aluminium) 2008 late, even if it isn't said in the desription? Windows 7 also did run, but wasn't in the list of working models for windows 7 either...

    JK90, I have boot camp on my Mountain Lion late-2008 unibody running 64 bit Windows 8, with a brand new ssd and 8gigs of ram. Although my scenario is officially unsupported, it works great. My 4+ yr old mac is the best PC I've ever owned :-)
    There are a number of complications during and after installation, and you need to do a lot of research to make sure you get it right. I worked long and hard to get everything running just right.
    Even after Windows was installed I had even more trouble with my drivers, and getting especially getting the trackpad to work properly, so I needed to use a regular mouse until I could get the trackpad on.
    Also check out trackpad++, I've been using it for years now, it upgrades the trackpad drivers from apple and makes using Windows much nicer.

  • Image map (Open a link in the same place not a new Window)

    Image map (Open a link in the same place not a new Window)
    I'm using image map From KM a made a Image and I put the link like this "documents/images/image.jpg" okay, its works, but when I click on the link open other page, How to open on the same page ???????

    Hi Marcus,
    Try out this link. It may be helpful to you.
    Opening of IView in New Window
    Regards
    gEorgE

  • When I use the shortcut to open a new window in safari (command N), I get a 404 error message from Google. How do I change where 'Command N' routes to?

    When I use the shortcut to open a new window in safari (command N) on my Macbook Pro, I get a 404 error message from Google. How do I change where 'Command N' routes to? 

    It's not necessary to change the Command N keystroke..
    From your Safari menu bar click Safari > Preferences then select the Privacy tab.
    Click:   Remove All Website Data
    Then delete the cache.
    Open a Finder window. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following
    ~/Library/Caches/com.apple.Safari/Cache.db
    Click Go then move the Cache.db file to the Trash.
    Quit and relaunch Safari to test.
    If that didn't help, troubleshoot Safari extensions.
    From the Safari menu bar click Safari > Preferences then select the Extensions tab. Turn that OFF, quit and relaunch Safari to test.
    If that helped, turn one extension on then quit and relaunch Safari to test until you find the incompatible extension then click uninstall.

  • To show the list in complete format when creating an background job

    Hi ,
    I need to show the list in full format when after running a report in background.
    In sm37 after the job run the the full list is not shown.
    when I click on 'Show complete list 'it will show the complete list.
    My requirement is I want this option in default .Is there any thing we can do by configuration or is there any chance of enhancement
    kindly help
    thanks and regards,
    Subeesh Kannottil

    Hi Subeesh,
    It is one of the standard setting provided by SAP for extracting spool output.In most of the case it is sufficient. Incase of special requirement we can do as below.
    In SM37,open the spool and click the icon Display in Maximum Width or (Shift+F4). Then the complete list will be displayed.
    Regards,
    Kannan

  • With acrobat 7, how do I make links (within the pdf) open in a new window-tab?

    With acrobat 7, how do I make links (within the pdf) open in a new window-tab?

    No love? From anyone?

  • Opening a list item pdf attachment from the display form in a new window

    I have a list setup in which attachments are enabled.
    Users attach pdf's to list items.
    When they go into the display form for a list item and click on a pdf attachment in the "Attachments" area at the bottom of the form, it opens in the same browser window.
    I would like to amend this so it opens in a new window.  Has anyone found a fix for this?
    Thanks in advance,
    Mark

    Hi ,
    Put the code below in your DispForm.aspx page .The you can open the attachments in a new window. Including all the other links on the DispForm.aspx page .
    <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
    <script type="text/javascript">
    $(function(){ 
    $('a').click(function(){
                    window.open(this.href);
                   return false;
    });</script>
    Thanks,
    Entan Ming

  • List of Links, opening new window on click

    Dear developers,
    I'm Developing a solution in which I need to show a list of links and when you click opens a new window . Every name of the list have different link.
    In conclusion, I want to show a list of links that when you click to open in a new window.
    My solution:
    1. I've implemented a Select One List associated with a valueChangeListener.
    2. ValueChangeListener call ManageBean method, and in the method I calcule link
    3. Using JavaScript inside ManageBeanMethod I open the new window.
    It works well, but when I click on the same value valueChangeListener not call the method. As the value doesn't change, doesn't activate the valueChangeListener. I need to always call ManageBean method.
    They know how you fix it from my implementation?+
    There is a better solution? there is an especific component?+
    Edited by: 966474 on 19-oct-2012 1:31

    Hi,
    check this thread {thread:id=2452884}

  • Modifying the size of a a new window

    Hi,
    I have this code, I have a link that when clicked will open a
    new window, all I need please I need to play with its size, as this
    new window is as big as the parent page, I wnat the new page to
    still appear in the middle but with a less size ? what shall I
    modify to the attached code ? I am not an expert in HTML at all ?
    Appreciate fast help

    Use Dreamweaver's OpenBrowser Window behavior.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "fsurrey" <[email protected]> wrote in
    message
    news:gehvu2$gqb$[email protected]..
    > Hi,
    >
    > I have this code, I have a link that when clicked will
    open a new window,
    > all
    > I need please I need to play with its size, as this new
    window is as big
    > as the
    > parent page, I wnat the new page to still appear in the
    middle but with a
    > less
    > size ? what shall I modify to the attached code ? I am
    not an expert in
    > HTML at
    > all ?
    > Appreciate fast help
    >
    > <p align="justify"
    >
    class="style52">          <a
    > href="Aesthetic Factors/Aesthetic factors/Aesthetic
    factors.htm"
    > target="_blank" ; onclick="openNewWin('Aesthetic
    Factors/Aesthetic
    > factors/Aesthetic factors.htm', 800,600); return false;
    " > Web Aestheic
    > Fcators</a> ddd </p>
    >

  • When I do a search, with MSN as my homepage, it pops up in a new window not a tab like it used to. MSN says it is Firefox related. How do I fix this? I have the option selected to open new windows in tabs instead and it still won't work.

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [/questions/832115]</blockquote><br>
    I use Firefox 4.0.1 and have MSN set as my homepage. Recently, even with the option set to make windows open in tabs instead, if I do searches on the MSN page, the results pop up in a new window. I contacted MSN and they said it is something to do with Firefox. It didn't use to do this, even after initially upgraded to 4.0.1, but started about a week ago and even with me doing nothing to my computer. How do I get this to stop and go back to new tabs instead?
    It does not do this using Google, AOL, Yahoo, or another other search, just MSN/Bing.

    That's strange. It's possible that you are having a problem with some Firefox add-on that is changing your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal? Also have you tried uninstalling & re-installing flash? If you need help un-installing Flash see http://helpx.adobe.com/flash-player/kb/uninstall-flash-player-windows.html. You also could try safe mode. See https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode?redirectlocale=en-US&redirectslug=Safe+Mode .

  • What is the correct way to open new window with launchDialog & returnDialog

    Hi,
    JDev : 11.1.1.1.2.0
    My current page url is http://127.0.0.1:7101/ThruputApplication/faces/Test.jspx?_afrLoop=21785535204821&_afrWindowMode=0&_adf.ctrl-state=d1x4f8z6p_9 and
    From this page, I trying to open new browser window using command button's action method with below code
    FacesContext facesContext = FacesContext.getCurrentInstance();
    ViewHandler viewHandler =
    facesContext.getApplication().getViewHandler();
    StringBuilder strBuilder = new StringBuilder();
    UIViewRoot dialog =
    viewHandler.createView(facesContext, strBuilder.append("/reports/LPLReport.jsp?").append(sURL).toString());
    Map properties = new HashMap();
    properties.put("width", Integer.valueOf(500));
    properties.put("height", Integer.valueOf(300));
    AdfFacesContext afConetxt = AdfFacesContext.getCurrentInstance();
    afConetxt.launchDialog(dialog, properties, null, true, null);
    New browser window is getting open successfully but after opeing this new window if I do any operation such like selecting item from selectOneChoice or checkbox selection from the screen from which I have launce new browser window then is giving me below message.
    Are you sure you want to navigate away from this page ?
    There are one or more dependent dialogs open. Navigation from this page will invalidate any open dialogs.
    Press OK to continue, or Cancel to stay on the current page.
    I have also tried AdfFacesContext.getCurrentInstance().returnFromDialog(null, null); to return dialog but its giving me below error:
    <DialogServiceImpl><returnFromDialog> No 'DialogUsedRK' key available for returnFromDialog to do the right thing!
    <Reports><generateReports> Exception
    java.lang.IllegalStateException: popView(): No view has been pushed.
         at org.apache.myfaces.trinidadinternal.context.DialogServiceImpl.popView(DialogServiceImpl.java:88)
         at org.apache.myfaces.trinidadinternal.context.DialogServiceImpl.returnFromDialog(DialogServiceImpl.java:182)
         at org.apache.myfaces.trinidadinternal.context.RequestContextImpl.returnFromDialog(RequestContextImpl.java:132)
         at oracle.adfinternal.view.faces.context.AdfFacesContextImpl.returnFromDialog(AdfFacesContextImpl.java:318)
         at com.enbridge.forecasting.tps.backing.reports.Reports.generateMsgRptGenerated(Reports.java:2602)
         at com.enbridge.forecasting.tps.backing.reports.Reports.generateReports(Reports.java:1212)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
         at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
         at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
         at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:812)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:292)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Please give me the solution so that I can stay on the screen and can continue with that screen after opening new browser window.
    Currently after opening new window as mentioned above, I can't do anything. If I press ok button then it will give me login page and if I press cancel button then my screen component's state become invalid.
    Regards,
    devang

    Thanks Frank,
    We have resolved the issue. Cookies max age was set as current browser seeion in websphere.
    After changing it as some max seconds, it is working fine.
    Mohanraj M

Maybe you are looking for

  • Creating a local wifi network between macbook and iphone

    Hi there I'm in a hotel and want to move some files to my iphone, but the computer I have isn't my synching machine. I would like to create a wifi network that the iphone and the macbook can both join. I also have an older airport express on hand, an

  • Duplex printing second side upside down

    I believe there is something in my InDesign file that is causing a few of my files to print the second side upside down. My files are vertical (portrait) layout/setting with the two sided option on long-edge binding. I don't think it is the printer b

  • Finder not working Mac OS X 10.6.3

    I am running a macbook pro which i start up with a flash drive. It has Mac OS X 10.6.3. But, when I try to open a folder or finder window, the Finder stops working and I get the spinning pinwheel. After it stops, I can relaunch it with the force quit

  • How to make Fullscreen Applet

    Hello , I am making slid show but need to be have full screen option . I searched for some example to find best way to do this task . I found this code but it`s not make full screen option when i am try to add to my code . I need someone to guide me

  • Iphone3 contacts problem

    I gave my son an extra iphone3 to use and I also have one.  Somehow I now have his contacts on my phone and mine are gone.  He said he went to iCloud and did something on his phone.  When I go into Settings/Mail,Contacts,Calendar, and choose iCloud,