Accessing KM document

I want to have a basic HTML page as my welcome page for my portal application.  I have seen this done one way in which the HTML file was saved in a KM folder and then that path was created in the description field in the caf database and the value was pulled within the wdDoInit() to use as a path.  So for example, the following would be the following 2 lines:
String my_home = ConstantsServiceProxy.findByModuleType("MY_HOME").getAspectRow(0).getAttributeAsString("description");
wdContext.currentContextElement().setHomeUrl(my_home);
This would be an example of the value it would pull:
https://myserver.com:50001/irj/go/km/docs/documents/myddocs/myfolder/home.html
I don't want to have to rely on the caf just for this, is there any standard way to find this document without looking up the description in the database, not sure if hard-coding was a good idea.
Any help would be great on this since I am a newbie within the SAP world.

Hello Vidit,
here is a small piece of java code which shows how to get the content of an document in KM:
          //Get resource RID
          RID rid = RID.getRID("path to dokument"); //For example /documents/example.doc          
          IResource res = null;     
          try {
               IResourceFactory rfac = ResourceFactory.getInstance();
               res = (IResource) rfac.getResource(rid,rfac.getServiceContext("ice_service"));
          } catch (ResourceException re) {
               String sre = re.getLocalizedMessage();
               // Your error handling               
          BufferedInputStream stream = new BufferedInputStream(res.getContent().getInputStream(), 1024);     
          BufferedReader br = new BufferedReader(new InputStreamReader(stream,"windows-1251"));     
Hope it helps, regards.
mz

Similar Messages

  • How can I get the 23 July update to load onto my iPad. I haven't been able to access my documents or work for weeks and need to use it. Has anyone else had similar problems?

    How can I get the 23 July update to load onto my iPad. I haven't been able to access my documents or work for weeks and need to use it. Has anyone else had similar problems?

    Hello Arthur,
    Thank you for the reply.
    You were correct that deleting the app and reinstalling it was the only thing to make it work but unfortunately I lost all the documents I made, even though they were backed up to iCloud before i deleted the app. At the same time as deleting pages I had to delete keynote and numbers too, so I've lost all the documents in them too.
    The mb of data which was assigned to each programme in iCloud has reduced, so. I guess they are gone for good. Is there any other way to reaccess them?
    Not your fault but I am a bit fed up the the iPad. I have lost work that I've done and have no other copy apart from what was in iCloud, as I don't have a printer and couldn't email them too myself as I couldn't get into the programme and  i've also got episodes of tv series I purchased that I can't download and albums that are half downloaded with songs missing, so I feel a bit swindled out of time and money and am going back to DVD ,  pen and paper and CDs .
    Instead of using iCloud I guess the only way to make sure I don't loose any more documents it to email them to myself each time I save them on the iPad. Is there anything else you could suggest please?
    I don't have any other apple products apart from iPods, so I can't access the iCloud on anything else can I?
    Thanks
    Amanda

  • A network error occurred while accessing this document on the internet

    Dear all,
    I am now facing a very unusual problem that, when I try to open a pdf file from internet, it says: "A network error occurred while accessing this document on the Internet. Would you like to close the document or reload it?". Here's my situation:
    Browser: IE8 (or Chrome 35.0.1916.153)
    Adobe Reader: 11.0.0
    OS: Win7
    1.Directly open from IE. Says: "A network error occurred while accessing this document on the Internet. Would you like to close the document or reload it?"
    2.Try to download(Save AS). In IE, says: "The connection was reset The connection to the server was reset while the page was loading"; In Chrome, nothing happened, but still can't download.
    3.Try to disable the "PDF Reader Addon" in IE8. First the browser needs to download the PDF file, but failed, see point 2.
    1.I can open the same PDF file from another network, that is, out of my company.
    2.I can open another PDF file in the network of my company, but the pdf is created by another scanner
    3.All PDFs from both scanner can be opened locally.
    So, here's the possible problem, the network settings, and(or) the PDF. Does anyone ever meet this situation, please help?
    Thank very much.
    Li

    Rave,
    IE: 8 & 9
    Adobe Acrobat Pro/Acrobat Reader 10.x & 11.x
    Chrome: work fine
    So the answer is to manually enable and disable websites based on whether the pdfs open within the browser.  That doesn't seem like a great long-term solution to have have our users to manually enable / disable browser integration.  We have web applications that work better with browser integration turned on.  Is this something that Adobe will fix or is it an IIS/IE issue.
    It appears the Adobe removed the #1 config option that you lised in the new 11.x versions of both products.  The manage Add-ons does not disable the browser integration on the new Adobe versions.

  • TS1702 I tried to download the upgrade, now it won't install and I can not access my documents. It said Vi did not have enough space for the upgrade so I made room but still no luck.

    I tried to download the upgrade, now it won't install and I can not access my documents. It said Vi did not have enough space for the upgrade so I made room but still no luck. If I delete the ap and reinstall I will lose my stuff. Any ideas? It won't open so I can email it to myself.

    What upgrade are you trying to install? Your profile shows iOS 5.1.1, which is the current max iOS.
     Cheers, Tom

  • How can I access xml document from javascript whithin a JSP page

    how can I access xml document from javascript whithin a JSP page?
    I have a JSP that receives an XML document from a JavaBean, so I can access it within the entire JSP, but I need to access it from the javascript inside the JSP... and I have no idea how i can do this.
    Thanks in advance!

    The solution would only work on MS IE browsers, as other browsers do not support an XML DOM.
    It can be done, but you would be stuck with using the Microsoft broswer. If that is acceptable, I have some example code, and a book recommendation.

  • After hours of back-up, downloading and uploading...I am now updated with all the latest Mac software. However, I no longer have access to Excel and Word. Is there a way I can access my documents in either of those? Help, please.

    After hours of back-up, downloading and uploading...I am now updated with all the latest Mac software. However, I no longer have access to Excel and Word. Is there a way I can access my documents in either of those? Help, please.

    If you have older versions of excel and word that previously ran under the Rosetta emulator (allows PowerPC code to run on Intel system), they will no longer work with Lion.
    You can use the Apple programs Pages and Numbers to access the files. They can be bought and downloaded from the App store. NeoOffice is available at http://www.neooffice.org/neojava/en/index.php which has Lion support. OpenOffice doesn't talk to Lion support, it's at http://www.openoffice.org/

  • How do I resolve this problem: This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required

    When attempting to log in to the web site the following message is received. This web site works
    on other systems using Firefox.
    This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.
    Additionally, a 401 Authorization Required error was encountered while trying to use an ErrorDocument to handle the request.
    == URL of affected sites ==
    http://www.mdyc.org/members_only

    You may have saved a bad password so Firefox is entering that rather than giving you the option to try again. Go to Tools > Options > Security > Saved Passwords and delete the saved passwords for that site and then try logging in again.

  • How to access iCloud documents on your mac.

    I struggled with this for days and finally found a simple solution.
    Here's one way:
    http://www.youtube.com/watch?v=YrmZbTZwoeA&feature=player_embedded
    Here's another. Thanks to http://osxdaily.com/2012/08/09/how-to-access-icloud-documents-from-the-mac-os-x- finder/
    Getting Easy Access to iCloud Documents from the Mac Finder
    Placing the Mobile Documents folder in the Finder window sidebar allows for quick access to files in the cloud:
    From the Finder, hit Command+Shift+G to bring up the Go To Folder window, and enter the path to the user Library folder found at ~/Library/
    Locate the directory titled “Mobile Documents” and drag that folder into the Finder window sidebar, or make an alias, this allows for easy access
    If you poke around the “Mobile Documents” directory you’ll find another series of folders, some are named nonsensically based on GUIDs as this folder is not intended for general user access, but each one is in accordance to an application that stores documents in iCloud. Apps including Notes, TextEdit, Reminders, Mail, Keynote, and any other Mac app with iCloud support will be included.Making changes to a document that syncs with an iOS device will reflect in the appropriate app from iOS. Likewise, for any documents stored in iCloud the changes made to the folder will reflect on other Macs. Versions does not work here, so be careful with changes you make.One thing you may notice is that Camera Roll pictures are not stored in here, but there is a similar way to access the iOS Photo Stream from Mac OS X too if you use that feature on an iPhone or iPad.Heads up to MacWorld for the recent tip reminder

    hidden files in Finder
    terminal copy&paste:
    defaults write com.apple.finder AppleShowAllFiles TRUE ;killall Finder
    defaults write com.apple.finder AppleShowAllFiles FALSE ;killall Finder
    if it is just the user library you are looking to change:
    chflags nohidden ~/Library

  • Access DMS document throgh CRM

    Dear Gurus,
    Is it possible to access DMS document throgh CRM.
    Is there any object available for CRM like customer compalints, Solution provided Excetra...,
    Can any one share the doc for CRM-DMS object config.
    Thanks in advance.

    Yes, but you need to create a RFC Connection between your CRM system and ECC6. SAP DMS itself is not available in the CRM system so the RFC connection needs to be in place in order to use it.
    From the Help Files:
    Integrating Product Lifecycle Management (PLM)
    Usage
    Integrating Product Lifecycle Management (PLM) lets you link documents from the PLM Document Management System (DMS) with documents from CRM such as contracts, opportunities, and activities.
    Integration
    To use PLM in CRM, you require SAP Enterprise Resource Planning (ERP) 4.70 and higher.If you want to use SAP EPR 4.6c, you require SAP Note 620160.
    Prerequisites
    You have maintained the RFC connections to PLM. For more information, see the Implementation Guide at Customer Relationship Management ® Basic Functions ® Content Management ® Maintain RFC Connections to PLM.
    Features
    Integration is only available for the People-Centric UI.
    Change markings in PLM documents are not displayed in the PC-UI.
    The following functionalities are available:
    ·        You can use the PLM DMS to link PLM DMS documents directly to the following objects, or to delete the links:
    ¡        CRM business objects
    If you assign a PLM document to a CRM business object, it appears in the PLM Documents folder.
    ¡        Sales contracts
    ¡        Sales documents
    ¡        Business partners
    ¡        Products
    ·        Finding PLM Documents
    You can also find PLM documents in CRM by the following properties:
    ¡        User-defined text
    ¡        Document number
    ¡        Document type
    ¡        Version number
    ¡        Status
    ¡        Description
    ¡        User
    ¡        Part
    For PLM documents, the Creator field in CRM Content Management specifies the Person Responsible from PLM.
    The full-text search only searches the document long text and not the content of the document itself .
    There is only a full-text search in the document long text, not in the document content itself.
    ·        Jump to PLM WebDocuments as of SAP ERP 4.70

  • HT201380 Yesterday this was automatically installed.  Today I can't access a document in Pages.  A prompt says I need a Pages update.  But the next screen tests for updates and informs me everything is up to date.  What's up?

    Yesterday this was automatically installed.  Today I can't access a document in Pages.  A prompt says I need a Pages update.  But the next screen tests for updates and informs me everything is up to date.  What's up?

    It's highly unlikely that the Pages update problem has anything to do with the ARD client update, since the client is not involved in any way with Software Update. I'd suggest asking for assistance with the update problem in the forum appropriate for your version of Mac OS X.
    Regards.

  • I'm trying to send a pages document as an email attachment to pc users.  They can't access the document.

    I'm trying to send a pages document as an email attachment to pc users.  They can't access the document.  When I try go to the "file" menu, there is no "save as" option.

    Hi Shelly,
    Command-P (Print)
    In the Print dialogue, click the PDF button at lower left, choose Mail PDF
    The result should be a new email document with the pdf file attached.
    Address and send.
    The procedure applies to any document which may be printed, not just Pages documents.
    Regards,
    Barry

  • How do I access a document, created in iPages Beta, on my iPad?

    I have iCloud (Pages Beta) on my iMac.
    I created a document, now I want to access that document on my iPad.
    How do I do that?
    JVH

    Hi j.v.fromnc,
    One of the advantages of having Pages in iCloud beta is its ability to share with other devices, so it is not surprising you want to be able to access it on your iPad. To begin with you will need to install Pages for iOS on the iPad.
    Pages
    Once the document is created in Pages in iCloud, it automatically becomes available to devices using your iCloud account. On the iPad, go to Settings > Pages and make sure that Use iCloud is on. Of course you will want to be using the same iCloud account.
    See this article for further information -
    Pages for iCloud beta: Sync a document across your devices
    http://support.apple.com/kb/PH12887
    This page also has some good resources -
    Share and edit a document with others - Pages for iCloud beta Help
    http://help.apple.com/pages/icloud/1/#/gil785102e55
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • "Adobe Acrobat is blocked" - Where to I accept the end user agreement which will enable me to access Pdf documents on the web?

    I keep getting this message when trying to open documents from the web:
    "Adobe Acrobat is blocked" - 
    Where to I accept the end user agreement which will enable me to access Pdf documents on the web?
    The Adobe website recommends this: (did not solve the problem)
    Safari 7 and 6.1 block PDFs | Acrobat, Reader
    Thanks for any help solving this annoying problem!
    OSX 10.9.3
    Safari 7.0.4
    Acrobat Pro 11.0.0

    Hello Isakten:
    Thanks so much for your reply!
    I already have Adobe Reader 11.0.7 and Adobe Acrobat Pro 9 installed.
    Following your instructions, I then selected Reader as the desired Adobe product to open all PDFs. and save that choice. Still no difference, the same black screen and statement about the EULA shows up…
    http://www.nhgastro.net/patients.html
    BTW, this is the website that I was accessing……note the link to download and print the pdf which triggers the EULA page.
    and also downloaded the latest version of Reader via their link….but to no success…..
    This all started by itself months ago, I did no newer installs or settings changes, none……
    Any other thoughts?
    Thanks so much,
    Steve

  • After the last update I lost a lot of documents I had edited and saved in my tablet. Any option to recover them? Now I can only access the documents of the cloud.

    After the last update I lost a lot of documents I had edited and saved in my tablet. Any option to recover them? Now I can only access the documents of the cloud.

    Hi,
    Please take a look at one of the following documents to see if it answers your question about finding the files that are locally stored on your device.
    For iPads & iPhones
    How to manage files in Acrobat DC for iOS
    For Android devices
    How to open PDFs on Adobe Acrobat DC on Android
    Please let us know if you have additional questions.

  • Removed user from group, user no longer has access to documents even though user is owner of documents

    I'm running a server 2012 std domain and I'm in the process of rebuilding our fileserver after we had some pretty serious permission issues. Bad permissions (Everyone had full access to user documents share) were migrated when we move to the new server and
    then by some strange Monday morning freak out all users lost access to their documents. I restored from backups, redirected everyone's folders back to local computer and started to reconfigure the share permissions. I moved our administration group back to
    the server after securing proper permissions for folder redirection (permissions copied from https://technet.microsoft.com/en-us/library/jj649078.aspx?f=255&MSPPError=-2147217396 table 1, only difference is instead of creating a new security group
    for redirection users, I used the everyone group) to test and everything went perfectly. The GPO created the users folders under the root and redirection was good to go. Along with that, other users cannot access other users documents anymore which was the
    intended outcome. 
    Last night I was looking at security groups and see that our administration group (back office group: accounting, HR, etc..) was a member of the domain admins. I removed them from the domain admins group and added them to the administrators group (they do
    need regular admin access) then went on like normal. This morning, all users in that group can no longer access their documents on the server. I immediately think that permissions were broken again and started to get angry, but then realize that all the files
    are still accessible on the server (no lost permissions like before) and the user is still shown as the owner with full permissions, but the files are inaccessible to those users. I re-added them to the domain admins group, logged out, logged back in and documents
    are back and accessible by the user. Remove them from the domain admins group, log out, log back in and the documents are inaccessible again. Re-add to the domain admins group and back to normal. 
    Which leads me to now. If the users are part of the domain admins group, they have access to their files. If they are removed from the domain admins group, they lose access. When they lose access, they are still the owners of the files/folders with full
    permissions, yet they can't access their documents. Also, just to add, the domain admins group has no specified permissions on the files or folders. See screenshots below..
    Here is the root share. 
    And the user's desktop folder. The folder is owned by the user with full permissions. This is the folder the redirection GPO created.
    Any ideas why removing the group from domain admins would drop access to their files? They are still the owners of the files and should have full access but they don't. Is there something I'm not seeing here?

    Effective Access shows the user has full control of the Desktop folder
    This is a problem with the Effective Access tab when using CREATOR OWNER.  As you have noticed, the user doesn't really have the access that the tab says it does.  This is because of how CREATOR OWNER works.
    CREATOR OWNER is only evaluated when a file/folder is created. 
    IF a user can create a file/folder, then the permissions assigned to CREATOR OWNER are copied to a new permissions entry for that user.
    To see this:
    Logon as an administrator and create a file in the Desktop folder in your screenshot.
    Examine the permissions of the new file.
    You'll see that there is a new entry for the account you logged on with.
    CREATOR OWNER is gone.  CREATOR OWNER would still be there if you created a folder (because of "subfolders and files").
    In the Desktop folder (in your screenshot), only SYSTEM and Administrator can create/access files.
    To fix this, you need to grant the users the ability to list the directory contents and create new files/folders.  This corresponds with the suggestion of Table 1 in the document you found.
    I see what you're saying about Administrators domain group. I'll just add them as local admins via GPO and that should solve that issue. 
    No, scary!  This will grant those users administrative permission on your server.  They will be able to see any file anywhere on that server.
    If your goal is to provide a place that is private for each user, then the simplest approach is to grant each user permission to their own folder.  Like this for Test User:
    Notes for above:
    I set the user's permission to Modify because there is no good reason why the user should change these permissions
    The owner of this folder is unimportant.  I leave it set to Administrators
    You can, and I do, remove CREATOR OWNER.  It adds no value in this situation and just causes confusion.
    As for the second screen shot, the *-Admins folder is the root to which Everyone has special permissions on and can create folders. The folder for M* was created by the GPO, which makes M* the owner to which they have Full control of subfolders and files.
    The GPO also created the Desktop folder, giving owner full permissions of subfolders and files. Inside the Desktop folder, permissions remain Full control for owner for subfolders and files. Even if it was the case that they only had permissions on subfolders
    and files, wouldn't each subfolder under that one be considered a subfolder and file of the top folder?
    If this works as you say, then Yes, it should work.  But, I don't see the entries for use M*.  Remember, there should be entries for the M* user that is a duplicate of CREATOR OWNER.
    I suspect that Group Policy is creating the directories (elevated) and then changing the owner to M* afterward.  This does not duplicate the CREATOR OWNER entries as needed.  If this is the case, I consider it a flaw because your permissions do
    not allow user M* to create files/folders, and group policy shouldn't bypass security.
    I'm not saying your wrong, I'm just curious why the technet article would advise Creator/Owner giving full control of subfolders and files only if that were not correct. I can add the permissions for the users easily, I just don't see why I need to give
    explicit permissions to access something when the GPO created those folders for me, which Microsoft recommends you allow. If the GPO can create folders and the folders are owned by the user, then the user can obviously add/create/modify/view those files and
    folders. 
    When I restored the data, no permission were reset. Permissions were restored to the wonky version where the Everyone group has full access to everything. Ownership of the files/folders remained the same.
    A couple things:
    The article instructed the use of Folder Redirection Users group that had permissions to create files.  Your examples didn't have that.  Because of this, your user could create new files.
    The article assumes that the directories you are creating will be empty.  Existing files will be unreadable to everyone except Admins.
    If you follow the directions in the article, then anyone in the Folder Redirection Users group can write files to anyone else's directory.
    One benefit of the document's approach is that all the users could be redirected to the same folder using the article, and it would work.  A benefit, I guess.
    But, I like my user's separate and unable to see each other's files -- at all.  This is why I recommend replacing CREATOR OWNER with the specific user.
    I believe this document is a "how to get it done" document, not necessarily a best practices document.  I see it as a starting point, and that's why I didn't follow it exactly.
    Lastly, CREATOR OWNER permissions are useful but confusing.  I avoid them unless I have the rare circumstance where they are perfect.
    When I restored the data, no permission were reset. Permissions were restored to the wonky version where the Everyone group has full access to everything. Ownership of the files/folders remained the same.
    To summarize:
    In the user's directory, you need to provide permission to list and create new files/folders, and you need grant the user permission to the existing files.
    -Tony

  • How to access the Document Options dialog box to select display properties?

    How to access the Document Options dialog box to select display properties (e.g. smartcut ) for a selected document to
    be viewed in the Workspace.
    regards

    Preferences --> General --> Reset all warnings.
    Mylenium

Maybe you are looking for