How to create link of a document in a different library (in different site collection) - programmatically

Hi,
am trying to create link of a document in a different library (in different site collection) using SharePoint Link a document Content type approach. i have already tested this manually.  
As per my requirement i need to implement this approach through code.
If anyone has implemented link a document approach through code, please share your inputs.
help is highly appreciated!
thanks

Check if below helps:
http://blogs.msdn.com/b/cliffgreen/archive/2008/06/23/creating-a-link-to-a-document-item-in-a-sharepoint-document-library-programmatically.aspx
http://stackoverflow.com/questions/15625448/create-a-link-to-a-document-in-a-sharepoint-shared-document-list-using-powersh

Similar Messages

  • How to create links betwen two documents in KM?

    how to create links betwen two documents in KM?

    If you use the KM provided HTML editor, there is an option to provide a link to another KM document from one KM document.
    Else if its an uploaded HTML, create a link like this:
    <a href="/irj/go/km/docs/documents.....">CLICK</a>

  • Getting Error while creating a new column in a list or library in a site collection - Sharepoint 2013

    Hi,
    I am getting below error when i create a new column in a library or list,
    "Save Conflict
    Your changes conflict with those made concurrently by  another user. IF you want your changes to be applied, click back in your browser, refresh the page, and resubmit your changes"
    Any help please.
    Smile Always

    Hi,
    I have done a test in my SharePoint 2013. And I can re-appear your issue.
    Per my test, I found that If  there are more than one user create a new column in
    a library or list at the same time, when we
    click ok after the other users, we will get the error.
    Or if we open a library or list in two windows with the same user, when we
    create a new column in a library or list in two windows
    at the same time, we will get the error.
    To resolve your issue, refresh your page and
    create a new column again.
    Best Regards,
    Lisa Chen
    Lisa Chen
    TechNet Community Support

  • How to create links in Pages through certain words or phrases?

    I need to create links within a document for a college course I'm working on. For example I would need the word flu in a pages document to link to the site flu.gov. Does anyone have tips on how to do this?

    Here is a better explanation of what I'm trying to do for example I have to write a review of a website and I need post various links but I can't post the URL's I have to post the URLs somehow within some of the text of the review for example I would the words flu prevention would somehow to have to link to page from the flu.gov site

  • How to create links to other pages i create??

    I have finished my "homepage" and it has 5 buttons on it.("home",
    "Contact us", etc.).
    I have no idea how to create links to other pages i create.
    For example, if the user clicks on "Contact us", i wnat contact information
    to appear. So, do i create another html document that will contain contact
    information and then call that page whenever the user clicks "Contact us". Or
    do i just create another applet that contains contact information and display
    the applet in the appropriate area, whenever the user clicks "contact us".
    Hope that wasnt confusing. Bascially, I am sitting here looking at my buttons, not knowing
    what code to put under the actionPerfomed part of each button.
    thanx
    trin

    ... judging from your question... the best way i think is to create another page...
    .... so when ur user clicks on Contact Us..... he/she will be taken to another page...
    there are other techniques besides this.... but it is always better to stick with the easiest one
    ... so you need to create separate pages for all of your links....
    ... if you have any questions... let me know
    .... have fun

  • How do you link a pdf. document within a Keynote slide?

    How do you link a pdf. document within a Keynote slide?

    Gary, I'm trying to save a Keynote presentation that was created from a Powerpoint presenation using PDF files.
    It imported beautifully, problem is it won't play. Keeps giving me a "Keynote cannot play your slideshow because an error occured" message.
    I thought it was a Powerpoint/Keynote incompatibility thing, so I recreated the presentation - 1 pdf per slide just like you have here (I did this before finding your post) and it still wouldn't play. I even tried JPG - nothing; just horrible looking images.
    Is there something I'm missing?

  • Creating link to excel document within PDF portfolio

    i created a pdf portfolio and created links to pdf documents within portfolio but am unable to create a link to the excel documents.  I can't even create a link to direct them to a specific folder where the item is held.  HELP, New to pdf portfolio's!

    One option is to create a PDF from the Excel spreadsheet and link to that.
    If you want to update the spreadsheet, you could create a Web Content overlay (or HTML article) that links to a Google spreadsheet. I've played around with linking to a Google presentation, and it works fine. You can update the spreadsheet/presentation on the website and the changes automatically appear in the overlay. I've just dabbled at it, so I wouldn't be much help with sizing/formatting issues.

  • How to create links in table view

    Hi
    I am working in IC WebClient.
    Can any body guide me how to create link on particular column of the table view and How can we navigate to another page by clicking on this link ?
    I am filling the internal table (for table view) by z tables. I do not have context node for that.
    Points will be rewarded.

    use Iterators. In the itarator you can create any BSP Object you wish to.
    in the method RENDER_CELL_START of the interface IF_HTMLB_TABLEVIEW_ITERATOR
    METHOD if_htmlb_tableview_iterator~render_cell_start.
      DATA: lo_text     TYPE REF TO cl_htmlb_textview,
            lo_link TYPE REF TO cl_htmlb_link,
            lv_link_click TYPE string,
            lv_link  TYPE string,
            lv_dim   TYPE string,
            lv_pernr TYPE string.
      FIELD-SYMBOLS: <dat> TYPE ANY.
      lv_link  = 'info.htm?pernr='.
      lv_dim   = 'left=300,top=220,width=620,height=200,menubar=0,scrollbars=yes,resizable=no'.
      row_ref = p_row_data_ref.
      CASE p_column_key.
        WHEN 'PERNR'.
          CREATE OBJECT lo_link.
          lo_link->id            = p_cell_id.
          lo_link->text          = get_column_value( p_column_key ).
          CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
            EXPORTING
              input  = lo_link->text
            IMPORTING
              output = lv_pernr.
          CONCATENATE `window.open('` lv_link lv_pernr `' , '` lo_link->text `', '` lv_dim `');` INTO lv_link_click.
          lo_link->text = lv_pernr.
          lo_link->onclientclick = lv_link_click.
          p_replacement_bee      = lo_link.
        WHEN OTHERS.
          CREATE OBJECT lo_text.
          lo_text->id       = p_cell_id.
          lo_text->wrapping = 'FALSE'.
          lo_text->text     = get_column_value( p_column_key ).
          lo_text->design   =  'STANDARD'.
          p_replacement_bee = lo_text.
      ENDCASE.
    ENDMETHOD.
    How to use Iterators.
    /people/brian.mckellar/blog/2003/10/31/bsp-programming-htmlb-tableview-iterator
    Hope this helps.
    Cheers
    Amandeep
    <i><b>Reward points for each helpful answer.</b></i>

  • How to create links and how to use that links to go to other pages?

    my question is....how to create links...i mean by using make link option.....when we do right click on a word,etc in the design view.....and my other question is.....how to use that links to go to other pages.....i mean when i click on a link...it takes me to another web page.....

    Please do not post the same subject to more than one forum.

  • How to create links to the same page, how to create links to the same page

    How to create link to the same page with iweb?
    Thanks

    You're referring to anchors.  There are a couple of ways. These topics discuss them:
    iWeb FAQ - Anchors
    How do i hyperlink to certain portion...: Apple Support Communities
    OT

  • How  To create a new word document and to serve bookmarks

    how To create a new word document and to serve bookmarks

    there is an example :
    http://www.must.de/default.html?Javactpe.htm
    howerver ,I don't kown how to use in jsp!!

  • I feel like a rookie but, can someone tell me how to create links to external URLs in Muse?

    I want to attach the link to text which gives the name of the site. I am not an idiot, just unfamiliar with the program. I have looked through the learning videos but cannot find anything that specifically relates to my question. I appreciate any help I can get. Thank you, in advance, for any assistance.
    Sue

    I am unable to open the screen shots as I keep getting a message saying that I am not using the correct program. Can you tell me which program I should use? Thank you.
    Sue
    Date: Mon, 22 Jul 2013 10:48:46 -0700
    From: [email protected]
    To: [email protected]
    Subject: I feel like a rookie but, can someone tell me how to create links to external URLs in Muse?
        Re: I feel like a rookie but, can someone tell me how to create links to external URLs in Muse?
        created by spudsmurphy13 in Help with using Adobe Muse CC - View the full discussion
    good question sue, and well done to all for how to do links.
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5527823#5527823
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5527823#5527823
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5527823#5527823. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Help with using Adobe Muse CC by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • How to create sharepoint Group with read only permissions using powershell for entire site ?

    How to create sharepoint Group with read only permissions using powershell for entire site (including subsites and top level site)

    Hi
    using (SPSite site = new SPSite(url))
    using (SPWeb web = site.OpenWeb())
    SPUserCollection users = Web.AllUsers;
    SPUser owner = users[string.Format("{0}{1}", "Domain", "Owner Username")];
    SPMember member = users[string.Format("{0}{1}", "Domain", "Default Member Username")];
    SPGroupCollection groups = Web.SiteGroups;
    string GroupName = “Super Exclusive”;//your group name
    string GroupDescription = “Super exclusive group description.”;
    groups.Add(GroupName, owner, member, GroupDescription);
    SPGroup NewSPGroup = groups[GroupName];
    SPRoleDefinition role = Web.RoleDefinitions["Read"];
    SPRoleAssignment roleAssignment = new SPRoleAssignment(NewSPGroup);
    roleAssignment.RoleDefinitionBindings.Add(role);
    Web.RoleAssignments.Add(roleAssignment);
    Web.Update();
    Please 'propose
    as answer' if it helped you, also 'vote
    helpful' if you like this reply.

  • How to create links in navigation tabs?

    This is probably a silly question.  In the other template I use, (which is a spry asset, and this is likely the difference), I select the area and the "properties" area below becomes available, and I can create the link.
    These particular tabs don't do that . . . how can I link them to other pages in the site?
    http://asptfacultycaucus.info/#
    Thanks for any help!
    Pamela

    Jtanna,
    this seems to have totally fixed the navigation problem.  I was very careful to use the code you suggested, and not delete or add anything else.
    However, I HAVE goofed something up in getting the stylesheet saved to the directory.  Now when I open the index and other pages in DW, they do not appear to be "connected" to a stylesheet!  When I click on "stylesheet.css" in the menu tabs, I get this dialogue in yellow:  " 'stylesheet.css' cannot be found.  If the file exists on the server, use the Files panel to get the file from the server."
    The file exists right in the directory under local files in DW.  It exists in the "publish" folder.
    I'm afraid to make further changes . . . and client is getting cranky . . . help?
    http://asptfacultycaucus.info/#
    Here is the stylesheet as it exists right now (code for the design template follows if that helps at all):
    @charset "UTF-8";
    /* --- CSS Document by Codify Design Studio - codifydesign.com --- */
    body {
        margin: 0px;
        color: #666;
        font-size: 12px;
        font-family: Arial;
        font-family: Arial, Verdana, Univers;
        background-color: #545454;
        background-image: url(images/page_bkgd.jpg);
        background-repeat: repeat-x;
    h1 {
        color: #4F6179;
        font-size: 24px;
        font-weight: normal;
        margin: 3px 0px 25px 0px;
    h2 { color: #333333; font-size: 14px; font-weight: normal; margin: 0px 0px 15px 0px; }
    a          { color: #ba7007; }
    a:visited  { color: #ba7007; }
    a:hover    { color: black; }
    .container {
        width: 980px;
        margin-left: auto;
        margin-right: auto;
        background-image: url(images/content_bkgd_tile.jpg);
        background-repeat: repeat-y;
    /* BANNER AREA */
    .bannerArea {
        width: 980px;height: 145px;
        background-color: #4971a2;
        background-image: url(images/banner_bkgd.jpg);
        background-repeat: no-repeat;
    .bannernav {
        padding-top: 10px;
        padding-right: 40px;
        float: right;
        color: white;
        font-size: 10px;
        font-family: Arial, Helvetica, Verdana, sans-serif;
    .bannernav a {
        color: white;
        text-decoration: none;
    .bannernav a:visited {
        color: white;
    .bannernav a:hover {
        color: #ECBB7B;
    .toplogo {
        margin-left: 70px;
        padding-top: 20px;
    .content {
        padding-top: 20px;
        padding-bottom: 20px;
        background-image: url(images/content_bkgd.jpg);
        background-repeat: no-repeat;
    /* LEFT NAVIGATION */
    .leftnavigation {
        width: 192px;
        margin: 70px 0px 0px 0px;
        padding-left: 8px;
        float: left;
        list-style-type: none;
    .leftnavigation a{
        margin-left: 0px;
        width: 156px;
        padding-left: 15px;
        padding-top: 5px;
        padding-right: 20px;
        padding-bottom: 5px;
        float: left;
        color: #364957;
        font-size: 10px;
        font-weight: bold;
        font-family: Verdana, Arial, Helvetica, sans-serif;
        text-decoration: none;
        background-image: url(images/nav_normal.jpg);
        background-repeat: repeat-x;
        background-position: 0px 0px;
        border-bottom: 1px solid #999;
    .leftnavigation a:visited{
        color: #364957;
    .leftnavigation a:hover{
        color: #ffffff;
        background-image: url(images/nav_down.jpg);
    /* CONTENT AREA */
    .contentleft {
        width: 440px;
        padding-left: 30px;
        padding-right: 20px;
        float: left;
    .contentright {
        padding-top: 55px;
        float: left;
        width: 210px;
    .imageright {
        margin-top: 10px;
        margin-left: 10px;
        float: right;   
    .imageleft {
        margin-right: 10px;
        float: left;
    /* FOOTER AREA */
    .footerArea {
        width: 980px;height: 88px;
        background-color: #cfcfcf;
        background-image: url(images/footer_bkgd.jpg);
        background-repeat: no-repeat;
    .copyright {
        border-top: solid;
        border-color: #737a90;
        border-width: 2px;
        margin-left: 240px;
        margin-right: 30px;
        padding-top: 12px;
        color: #666666;
        font-size: 10px;
        font-family: Verdana,Arial, Helvetica, sans-serif;
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
        <head>
        <!-- TemplateBeginEditable name="doctitle" -->
        <title>Part-time Faculty Caucus</title>
        <!-- TemplateEndEditable -->
    <meta name="description" content="Designed and developed by Codify Design Studio - codifydesign.com" />
            <link rel="stylesheet" type="text/css" href="../stylesheet.css" />
            <!-- TemplateBeginEditable name="head" -->
            <!-- TemplateEndEditable -->
        <script src="../SpryAssets/SpryAccordion.js" type="text/javascript"></script>
        <link href="../SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css" />
    </head>
        <body>
            <div class="container">
                <div class="bannerArea">           
                    <div class="bannernav"><a href="#" >Privacy Policy</a>  |  <a href="#" >Contact Us</a>  |  <a href="#" >Site Map</a></div>
                    <div class="toplogo"><a href="#"><img src="../images/transparent.gif" width="365" height="90" border="0" /></a></div>
                </div>
                <div class="contentArea">
                    <ul class="leftnavigation">
                        <li><a href="officers.html" >Officers</a></li>
            <li><a href="bylaws.html" >Bylaws</a></li>
            <li><a href="resolutions.html" >Resolutions</a></li>
            <li><a href="documents.html" >Documents</a></li>
            <li><a href="publications.html" >Publications</a></li>
                    </ul>
                    <div class="content"><!-- TemplateBeginEditable name="content" -->
                        <div class="contentleft">
                            <h1>Lorem Ipsum dolor sit amet</h1>
                            <img src="../images/content_photo_1.jpg" width="193" height="150" border="0" class="imageright" />
                            <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sedpharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit amet enim. Suspendisse id <a href="#">velitvitae ligula</a> volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus pharetra posuere sapien. Nam consectetuer. Sed aliquam, nunc eget euismod ullamcorper, lectus nunc ullamcorper orci, fermentum bibendum enim nibh eget ipsum. Donec porttitor ligula eu dolor. Maecenas vitae nulla consequat libero cursus venenatis. Lorem ipsum dolor sit amet. </p>
                            <img src="../images/content_photo_2.jpg" width="163" height="141" border="0" class="imageleft" />
                        <p>Consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus pharetra posuere sapien.</p>
                            <p>Nulla libero. Vivamus pharetra pos uere sapien. Nam consectetuer. Sed aliq uam, <a href="#">nunc eget euismod ullamcorper</a>, lectus nunc ullamcorper orci, fermentum bibendum enim nibh eget ipsum. Donec porttitor ligula eu dolor.</p>
                        </div>
                    <!-- TemplateEndEditable -->
                        <div class="contentright">
                            <div id="SpryAccordion1" class="Accordion" tabindex="0">
                                <div class="AccordionPanel">
                                    <div class="AccordionPanelTab tabTop">
                                        <div class="accordion_340_tab"> TELLUS PROIN EU ERAT </div>
                                    </div>
                                    <div class="AccordionPanelContent">
                                        <div class="acontent">
                                            <p>Nulla facilisi. Nulla libero. Vivamus pharetra posuere sapien. Nam consectetuer. Sed aliquam, nunc eget euismod ullamcorper, lectus nunc ullamcorper orci, fermentum bibendum enim nibh eget ipsum. Donec porttitor ligula eu dolor.</p>
                                        </div>
                                    </div>
                                </div>
                                <div class="AccordionPanel">
                                    <div class="AccordionPanelTab middleTab">
                                        <div class="accordion_340_tab"> HOW LONG DO THEY LAST?</div>
                                    </div>
                                    <div class="AccordionPanelContent">
                                        <div class="acontent">
                                            <p>The majority of part-time instructors teach for about seven years before leaving to find other employment</p>
                                        </div>
                                    </div>
                                </div>
                                <div class="AccordionPanel">
                                    <div class="AccordionPanelTab middleTab">
                                        <div class="accordion_340_tab"> WHO IS AFFECTED? </div>
                                    </div>
                                    <div class="AccordionPanelContent">
                                        <div class="acontent"> <img class="imageright" src="images/accordion_photo.jpg" border="0" />
                                            <p>There are roughly 46,000 PT Community College instructors teaching in California, many of them free-way flyers.</p>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="AccordionBottom"></div>
                        </div>
                        <div style="clear:both;"></div>
                    </div>
                    <div style="clear:both;"></div>
                </div>
                <div class="footerArea">
                    <div class="copyright">&copy; 2011 California Academic Senate Part-time Faculty Caucus.  All rights reserved. Page design: Pamela Hanford</div>
                </div>       
            </div>
            <script type="text/javascript">
    <!--
    var SpryAccordion1 = new Spry.Widget.Accordion("SpryAccordion1", {useFixedPanelHeights:true, defaultPanel:2});
    //-->
            </script>
        </body>
    </html>

  • How to create links between SO and PO's

    Basicly the subject tells the question, how can you create links between Sales orders and Purchase orders? Sounds simple but how to do it?

    Hi,
    You can may be do the easy way out then,
    1) Open the Sales Order for which you have created the Procurement Document.
    2) Go to the 'Form Settings' of the Sales Order and 'Table Format'.
    3) In the list, select the Procurement Doc field and make it visible.
    You will be able to see the Procurement Document for the Sales Order raised without using the query.
    Check if this is what you are looking for and the same helps.
    Kind Regards,
    Jitin
    SAP Business One Forum Team

Maybe you are looking for

  • Help!! itunes wont open!

    My husband has been dealing with this problem for a while now, I thought I would give it a go, and I can't for the life of me figure out what is going on.. we have re-installed it to the latest version and everything... you can click on it on my dock

  • My Mac has a Different Apple ID to my (ex mobileme) iPhone - how do i get them to iCloud sync?

    I have just moved my mobileme account to iCloud, and attempted to synchronise my iPhone and Mac - but now both are pointing at different Apple IDs !!! HELP. Two Apple IDs? I have long used one Apple Id for iTunes and my App Store purchases, whereas m

  • Calling VC iView from ext. app. and send parameters back

    Hi, My problem is the following: I have several NON-SAP web-applications which should be able to call a VC iView which has the functionality of searching Business Partners in SAP CRM. After I select one of the found BPs, the selected BP should be pas

  • Worklow in HCM process and Forms

    Hi Gurus, We have recently upgraded from HR SP level 14 to level 24. After the HRSP upgrade, we find that the workflows used in the HCM process and forms which were working fine earlier are not working now. To trigger the workflow, I am using the cla

  • Form freezing issue forms 11g

    Hi All, In Oracle forms 11g, after selecting radio button, press any key from keyboard form will goes unresponsive mode(freeze). I was tried to catch event firing while pressing a key from keyboard using debugging and Trace events , but it not showin