External Links in KM Repository

Hi,
How to create external links in KM repository in Web Dynpro Java application?
Thanks
Sundar

Hi,
Creating Links
When you create a link, you can specify whether it is internal or external. You create a link as follows:
IResource link = parent.createLink(u2033linku2033, u2033/documents/fileu2033,LinkType.INTERNAL, null);
Identifying the Link Type
It is useful to know the link type because it gives an indication of the operations that are possible on the link target. The repository framework distinguishes between internal and external links. Internal links refer to resources that are integrated in the repository framework, whereas external links refer to objects that are not integrated in the repository framework, for example, documents stored on a web site. If a link is internal, you can access the target as a resource that offers the operations associated with repository framework resources. If a link is external, you can only access the target as a URL and not as a resource object. As a consequence, most of the operations associated with resources are not available.
Determining the link type is therefore often a prerequisite for handling a link target effectively.
The code extract shows how you can find out what type of link is involved.
if( LinkType.INTERNAL.equals(resource.getLinkType()) ) {
// resource is an internal link to another resource
    IResource target = resource.getTargetResource();
    if( target == null ) {
        // link is broken, because target does not exist anymore as a resource,
        // so use the RID of the internal linku2019s target instead.
        URL targetURL = resource.getTargetURL();
} else if( LinkType.EXTERNAL.equals(resource.getLinkType()) ) {
// resource is an external link to an URL
URL target = resource.getTargetURL();
} else { // if( LinkType.NONE.equals(resource.getLinkType()) )
// resource is not a link
The repository framework also distinguishes between internal links that are static and dynamic. Dynamic links follow their target after the execution of operations like copy and move, whereas static links do not. When you create a link, the repository framework decides whether it will be static or dynamic.
For more information: SAP NETWEAVER DEVELOPER'S GUIDE 2004S. Page .20
Patricio.

Similar Messages

  • Crawling/Indexing external links in CM-Repository

    Hi all,
    I would like to do the following:
    - Create an external Link or a HTML site with external links in a CM-Repository.
    - Create an index with a crawler, which crawls the
    created  links and HTML site and follows links on
    external sites to a certain depth.
    I used the standard crawler for this. But it had not the
    desired effect: Only the HTML sites directly in
    CM-Repository and behind the external links are crawled
    but no links in these sites are recognized by the crawler
    I adjuste the crawler parameters like:
    - Maximum Depth: 10
    - Follow Links (ticked)
    - Follow Redirects on Web-Sites (ticked)
    but it did not help!
    I know it sounds like you could just say: "Use a
    Web-Repository for this..." but I can not do this in
    this context. Or is this the only repository manager
    which is aware of following links?
    Any help will be appreciated!
    Best regards!
    Mirko

    Hi Matthias,
    thank you for your reply!
    The reason why I did not want to use Web-Repositories for this was, that I could not find a documentation on how to create the necessary objects in KM programmatically.
    (And I think it is not obvious from the documentation that you specifically need a Web-Repository for this!)
    Is there a API to create a HTTP-System, WebSites and Web-Repositories which is documented?
    I could not find any on SDN, but perhaps you or anybody else knows some resources?
    Best regards!
    Mirko Heger

  • External link for documentation in Query

    Hi,
    in a query I have trained the display document link for Date and Masterdata. When I select the link I can visualize the content of the document created in BW. 
    I have the necessity, instead, that when I call the link of the document from the query it has directly or indirectly aim also (double jump) to an external link where the documentation there is (example: in the document contain link: http://www.lg.com/). It is possible?
    Thanks.

    Hi Kams,
    I have not made sense of well perhaps. In the property of the query I am able setting the visualization of the in partnership documentation to every InfoObject. On Click the "leaflet" opens in the web all documents associated for the InfoObject. My problem is that the documentation resides on an external link to BW and therefore I want to make to aim not to the Repository SAP but to an iperlink that open the documentation of that object. Is it possible?
    If I use the RRI, in the context menu opens only on the characteristics in drill down and not on all those contained in the query as instead it happens if imposes the visualization of the documentation.
    Thanks.
    Best Regards.
    Charly

  • TREX - Indexing external links' metadata, but not content

    Hi All,
    I have a number of external links in the CM repository and would like to include them into the search results.
    However during indexing, all external links fail pre-processing because I believe it is trying to get the content of the link but it does not have authorisation.
    Is there a way to just index the metadata and ignore the content?
    Cheers,
    Vic

    Hi Achim,
    I saw that there was host specified with
    http://<%hostname%>. So i thought it should work. I tried editing this value and give the host  name.
    For example my portal address is
    http://portal.company.com:50000
    so i gave the address
    http://portal in my host parameters.
    This is still not working. Should i change the parameter to something else??
    Thanks,
    Kiran.

  • External links suddenly open in a new window instead of a tab

    I am using Nightly (20.0a1) on WIndows 8, I use the program Teamspeak 3 and it used to be that whenever I clicked on a link it would just open in a new tab in the Nightly window that was open, but now it opens a completely new Nightly window. I have the box ticked in settings, I've gone through all of the about:config things I've seen online and nothing works, I really have no idea what to do. I just did something with envoirenmental variables which didn't help (meant that it opened a whole new instance of Nightly whenever I clicked on an external link) so I deleted the variable. Anyone got any suggestions? If it is relevant, before this problem started I dragged a tab from one window of Nightly to another (think it might've been the cause of this), and yes, I've tried dragging tabs around from window to window to fix this and it didn't work.

    Thanks, but I already had it set to that, I've heard of many people with this problem and tried literally all fo the about:config fixes that I could find but none worked, I think it is some sort of assosiation problem with hyperlinked text with windows but I really don't know. Anyone who can help me please do, this is getting annoying. Keep in mind that I have Windows 8 when making suggestions also.

  • How to force external links to open in new browser window/tab?

    Greetings. I'm here because searching elsewhere kept coming up with references to javascript. I've created an interactive PDF with both internal and external links. It works just fine when viewed in either Acrobat or Reader. However, it is being downloaded to users' browsers and when they access the external URLs, the new sites replace the existing page in the same window.
    Is there a simple way for me to include an action in the PDF prior to distribution that will force it to open external URLs in a new browser window or tab?
    And for the record, I barely know how to spell Javascript, much less how to write or implement it. So if there is a simple solution, I hope you can also help walk me through the steps to implement it.
    Thanks a ton.

    There are two issues here:
    - How to do it using JS
    - How to do it in a non-Adobe browser plugin
    The first is pretty straight forward. You use a code like this, replacing the dummy URL with your own:
    app.launchURL("http://www.example.com", true);
    The second issue is more problematic, and in fact there isn't really a solution to it. If the plugin used supports this method then it will work, if not, then you're out of luck. Unfortunately, outside of the Adobe software I don't think that any other plugin supports it.

  • How to choose witch window will open external links when using multiple Firefox profiles at the same time?

    I am using 2 firefox profiles at the same, one for working and another for reading news. I start them with "firefox -no-remote -P profilename", so there are 2 firefox processes running.
    It works well, but when I click a link in an external app (like in Google Talk), the link is opened in the first firefox process I launched. I mean, if I ran the "news" firefox first, it will always open the external links.
    Is it possible to change this behavior? I'd like all external windows to be opened in the "news" firefox, never in the "working". Of course I'll achieve that if I open it first, but if I first run the "news", then the "working", then I close the news for any reason, now links will always open in the "working" until I close it.
    I running linux (opensuse 11.3).

    '''traysh''',
    Profiles '''''period''''' are "unsupported" by Mozilla. Profiles are "there" but the developers want no part of non-developers using them or fixing anything related to Profiles that has been suggested in a Bug report, or documenting much related to Profiles. Profiles as we know them now are going to disappear from Firefox in the near future, although no specific version number or date has been fixed for that to happen. It is up to us user's to share our experiences with Profiles with other user's. I'm a relative noob to Linux, and all my experience with running multiple Profiles and -no-remote is with Windows OS's.
    '''cor-el''',
    So are you saying that on Linux external links will only open in the first Profile that was opened if multiple Profiles are running?
    And that external links won't open a Profile that isn't already running - if any Profile is already running?
    ''I wish the differences between Windows and Linux as far as '''-no-remote''' and running multiple Profiles were better documented for "us" Linux noobs over at the MozillaZine KnowledgeBase - hint. Unless I am not looking hard enough in the MZ KB for that information....''

  • Cant open external links and multiple instances of the same profile.

    I have multiple firefox profiles.
    I constantly have two profiles running at the same time.
    I use microsoft outlook and see an external link, I click it wishing firefox to open it in the default or new browser. It does not and says "FIrefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system."
    Firefox is running fine.
    How can I open external links with a profile based setup?
    Also, how can I open multiple instances of the same profile? I find that if I click and drag a tab to another monitor, it opens a new "instance" or browser window.

    You say
    ''I have multiple firefox profiles. <br />
    I constantly have two profiles running at the same time. ''
    So you will have discovered ''-no-remote'' Note NOT to use that on the default browser; profile, only on secondary profiles.
    * http://kb.mozillazine.org/Profile_in_use#Common_causes
    You will NOT be able to open multiple instances of the same profile, clone the profile if necessary.
    If you are trying to run multiple Webmail accounts in one profile then you may well find the webmail is identifying and setting the user account that is opened. Use a Private Browsing window to get round that and open a second account.
    * [[Private Browsing - Browse the web without saving information about the sites you visit]]

  • Is there a limit for external links in TOC using RoboHelp 9.2?

    Hi,
    This is my first time posting to the Adobe forums. Here is my problem.
    I have been maintaining help projects using RoboHelp 9.2 for quite some time now to generate WebHelp. I now have four large projects that are linked through a URL in each project's TOC.  Example: I have projects A B C D. In A's TOC, I include a link to B C D default topics. In B's TOC, I include a link to A C D default topics. And so on ... The fourth project (D) is new.
    The problem I've encountered is with the image appearing in the TOC next to the external link entry for project D in the generated WebHelp.  The image showing up for project D is different from the other two, even though the properties for that page are exactly the same as the other two.  This happens in all three remaining projects (A B C). Even when I change the image (from the image index), the same image (i.e. the standard image for a topic page) appears regardless.
    What should appear in all cases is image 13.gif.
    (I'll have to figure out later why 19.gif is selected in the properties dialog, whereas 13.gif is actually showing up in WebHelp. Doh.)
    Any ideas?
    thanks,
    denise

    karl219 wrote:
    1-Time machine seems to be coming up often in the discussions.If my backup is on my external hard drive, why would space be taken up on my macbook hard drive?
    Read the first extract for the definition of backup snapshots and how they are handled by the OS.
    2-Shoud I delete older backups? If for example, all I need from Time Machine is the latest backup done today, can I get rid of the 2+ yeras of backups, or do they not take up that much space?
    No.  Time Machine should be on a separate HDD and will take care of deleting backups when necessary on that drive.
    3-Back to the issue, considering I don't have access to a an apple store for the next few months, what is my best plan of action?
    I would consider installing a larger internal HDD.  Capacities to 1 TB are now available.
    4-I am considering buying a new macbook 15inch, and get more space, however, I'm scared that the same problem will happen again. Is this common on all macs? Will using Time Machine to "Restore" my backups bring along the issues as well?
    All Macs using Time Machine will experience the same conditions.  The problem is that many users do not under stand what 'Other' is and that leads to confusion.  There are many essential OS files in that category that should not be touched as well as some user files.  The issue is not to reduce 'Other' as such, but reduce the total amount of data on the HDD if space is becoming a premium.
    Please read these two extracts:
    http://pondini.org/OSX/LionStorage.html
    http://pondini.org/OSX/DiskSpace.html
    Ciao.

  • Opening external link in a new browser window

    Some of the external links in my web page need to open in
    their own window, leaving my site still open in the background. Can
    anyone tell me how to do this? I don't see an option anywhere when
    I am creating these links.
    The links are to, for example, "The City of ......", and
    could be quite long to traverse. I don't want my visitors to have
    to click their browser's back button who knows how many times to
    get back to my site.
    I would appreciate any suggestions, thanks

    It's not valid in a Strict doctype, either HTML or XHTML.
    A better way to do this would be to see this tutorial -
    http://www.tjkdesign.com/articles/popup_window_with_no_extra_markup.asp
    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
    ==================
    "Dooza" <[email protected]> wrote in message
    news:gbaiof$17a$[email protected]..
    > Dooza wrote:
    >> malcster2 wrote:
    >>> dooza wrote
    >>>
    >>> malcster2 wrote:
    >>> > highlight your link in design view.
    >>> > > in the properties panel, change the
    target to _blank
    >>>
    >>> FYI this isn't valid XHTML, but is valid HTML,
    depends on what your
    >>> aiming at.
    >>>
    >>> ....
    >>>
    >>> validated ok mate. what exactly isn't valid
    xhtml?
    >>> this would be the code in question:
    >>> <p><a href="
    http://www.thesun.co.uk"
    target="_blank"
    >>>
    class="style1">www.thesun.co.uk</a></p>
    >>
    >>
    http://www.w3.org/MarkUp/2004/xhtml-faq#target
    >>
    >> Dooza
    >
    > But then I find this:
    http://learningtheworld.eu/2007/xhtml-with-target/
    >
    > Dooza

  • I've migrated FF settings to a new PC and no external link opens now

    Couple days ago I've received my new PC and migrated all important data from the old one using a special W8 tool. I've also installed Thunderbird and FF anew, and migrated their setting using tools recommended here (FF Sync + MozBackup). And suddenly I've lost a possibility to open any external link in FF now no matter the source (Thunderbird or any other piece of software). Now I have to copy and paste URLs manually. It's not the best solution. Old PC OS: Vista Business, new PC OS: W8.1. Thanks in advance.

    You may also wish to try '''Try Firefox Safe Mode''' before a reset to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * On Windows you can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac you can open Firefox 4.0+ in Safe Mode by holding the '''option''' key while starting Firefox.
    * On Linux you can open Firefox 4.0+ in Safe Mode by quitting Firefox and then going to your Terminal and running: firefox -safe-mode (you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    [[Image:FirefoxSafeMode|width=520]]
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • How to perform an activity from an external link using PAPI?

    Hi,
    The question is:
    I've got an external web application that lists all the instances of a user's inbox.
    On every item of the list, I've got a hyperlink. Through this link, I just want to perform the very interactive activity this instance requires.
    (Just like the activity link in workspace. If the activity's task is a screen flow, the link will also perform that screen flow. All the difference is that it's an external link)
    Thanks a lot

    If you want to execute an screenflow from an external application the only way I know is with WAPI.
    You can check the WAPI possibilities in your installation in /weabapps/workspace/wapi/urlActionsExample.jsp
    HTH

  • External links in TOC not opening in separate instance of IE after convert to RH7

    We converted our FlashHelp project from RoboHelp 6 to
    RoboHelp 7. External links in table of contents were set in the
    Advance tab to open in a New Window. This worked fine in RH5 and
    RH6 but when converted to RH7, the external link opens in the topic
    pane.
    Links within topics that link out to external web pages or
    documents are set to open in New Window and these work fine.
    Why would the Advance option for New Window work differently
    as a hyperlink in a topic vs. a link from the table of content? How
    do I fix this? Don't see any documentation in help system.

    fixed via in one of the releases to RH7

  • External link to location in PDF not working

    I can't get an external link to open to a specific place in a PDF.  I have tried the code for named destination and a page number and nothing is working.  I actually found some good documentation on line that should me all the parameters that could be passed, unfortunately, they aren't working.
    Here are the ways I have test linking into the PDF:
    http://at3etfsn1.atlanta.ibm.com/crm/sheol/Marketing/MAT_DPP_ExercisesA.pdf#nameddest=LogO ut
    http://at3etfsn1.atlanta.ibm.com/crm/sheol/Marketing/MAT_DPP_ExercisesA.pdf#LogOut
    http://at3etfsn1.atlanta.ibm.com/crm/sheol/Marketing/MAT_DPP_ExercisesA.pdf#page=22
    http://at3etfsn1.atlanta.ibm.com/crm/sheol/Marketing/MAT_DPP_ExercisesA.pdf#22
    The link is stored on a wiki... but I didn't think that would make a difference.  The PDF was created using Acrobat 9.0 from a Word document.  I have made sure that the document does not have any security.  Please let me know if you have any suggestions that might help me get this to work.
    I know this is shocking, but I did actually read the documentation.  LogOut is a bookmark I made with no spaces in the name.  I'm not sure what else to try.  If you have some examples or suggestions please let me know.
    Thanks for your help.
    Take care.

    The link was copied from a post I'd made to AUC from back in 2008; so, yes it can/does work.
    I've used PDF Open parameters with MSIE 5, 6, 7, & 8.
    During use of any particular MSIE release I always keep it updated as MS rolls out the updates.
    Used Adobe Reader 5, 6, 7, 8,  & 9 - each updated as Adobe rolled out the updates.
    Used Acrobat 5 (Full), Pro 6, 7, 8, 8 3D, 9 (Pro Extd).
    Again, as updates are rolled out they are applied.
    Just checked again with:
    MSIE 6 (fully updated) & Adobe Reader 9.3.2
    MSIE 8 (fully updated) & Acrobat 3D (8.2.2)
    MSIE 8 (fully  updated) & Acrobat 9 Pro Extd (9.3.2)
    For all, the open parameter performed as expected.
    Source PDF's Initial View is page only.
    Rendered in browser showing bookmarks and opened to the specified page.
    As to MSIE add-ons; this varies with the MSIE release.
    IE 6 shows less than IE 8.
    Various threads at Acrobat User Community may be informative.
    For keyword search: "open parameters"
    For Author search: "daka630"
    At AUC Forum Search:
    http://www.acrobatusers.com/forums/aucbb/search.php
    5th post to this thread has the link I used above as well as some others -
    http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=15061
    n.b., tried the links you provided - nothing appears in the browser - same if I delete # and all subsequent characters after the file extension.
    As to "installs" - basically, I run with the out-of-the-box installs; nothing "custom".
    One thing that is common to the Adobe Reader/MSIE 6 & the various Acrobat/MSIE8 checks I just did is that for "Documents" in the Preferences the 'Open Setting' of "Restore last view settings when reopening documents" is not ticked.
    -- just an end note here, open parameters have been around since at least Acrobat 4.x
    Be well...

  • How to Open External Links in a New Tab

    I want links in web pages to open in the current tab so I have browser.link.open_newwindow=1. But how do I make links from extenal applications open in a new tab?

    Try setting the following to 3, not really sure if preference was actually removed or just won't accept 2, the intent was that the two variables be the same (I think)
    browser.link.open_external -- Where to open links sent to the browser from an external application
    * 2 (default in SeaMonkey): Opens external links in a new window
    * 3 (default in Firefox): Opens external links in a new tab in the most recent window
    * 1 (or anything else): Opens external links in current window
    Note: In Firefox 2 and above, via “Tools → Options → Tabs → New pages should be opened in:” (same as browser.link. open_newwindow)
    Pref removed from Firefox 3.5

Maybe you are looking for

  • Internal server error while logging .

    Hi Team , we are using Apps 12.0.4 & Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi and running PMF module. It is a two node architecture with db running on one node and CP,FORMS,admin , web on the other node. The db node is having 4 CPUS

  • How to Stop the method Action When an Exception Occur in other Method

    Hi All , public void action( Event clientEvent) { startAction(); JOptionPane.showMessageDialog(null, getDocumnetId()); how to Stop the method action ( "action" ) if an exception occur in the method ("startAction") ( if the exception occur we doesn't

  • Oracle errors in a table or view

    Hi, Is there any oracle table or view with all the oracle error numbers and error messages from ORA-00000 till ORA-36804. Please let me know. Thanks in advance. Sreenath.

  • Order/installation problem!!!

    Hi, please can someone help as I really don't know what to do!! I ordered BT phone, broadband and tv a while ago and it was due for installation last Friday 22nd. The engineer came but said I didn't have a phone line and could find no link to the exc

  • The installer has encountere​d an unexpected error installing this package F-Secure Client Security

    Hello there :  whe just buy a T61 after windows xp finish install i try to install  F-Secure Client Security and the install fails i log the following : i try almost everything , can some one help? MSI (c) (D4:10) [14:19:03:929]: Enabling baseline ca