Adding files to the portal

Hi
I have an HTML form which has an <input> of type "file." I want to enter a file into the portal, into a specific folder within a specific content area. Supposedly, all I need to do is use the wwsbr_api.add_item function. I've created a PL/SQL procedure which I call from my HTML that what it does is get the parameters from the HTML form (the file name), and then apply the add_item function.
(I do know the folder's and the content area's id).
It's not working. I'm getting an ORA-29532 Error. (some Java security exception)
So, how do I enter a file directly into the Portal?
(A code example would be great!!!)
Thanks,
Dan
p.s
I've seen in some example where they use a wwv_.....saveitem function (cant remember the package name -- I could look it up if anybody is interested). This function is not documented anywhere, and so I'm afraid to use it because I dont understand all the parameters, and who knows what changed they'll do to it in the next version and I wont be able to use it anymore....

Dan,
You have two options.
If you want to upload the document via a browser - then use the add_item_post_upload function (vs the add_item function).
This function assumes that the document is already uploaded and that the p_file_name being passed is the actual document 'NAME' returned when the document is uploaded.
The other option is to use the add_item procedure and put the document somewhere on the same machine as the database
-- then the value for p_file_filename is expected to be "The full directory and filename for the file to be uploaded for this file item. The file path must be visible from the
database machine." If this method is used then the document will be uploaded from the directory into the database as part of the add_item function.
Hope this helps.
Mohana

Similar Messages

  • Not able to view the uploaded PAR file in the portal archive selection.

    Dear All,
    I have modified com.sap.portal.runtime.logon.par and have renamed it to some other name.
    Now I have uploaded the par file.
    The problem is that when choose new from PAR option (to create iview from a par file),I am not able to see the par file in the Portal Archive selection.
    I also want to know that if I am able to call the par file in the iview, can I use this iview to have a portal login.
    Our requirement is that we want to give login page for the portal in the portal home page.The portal home page will be for the anonymous users.
    Kindly try to guide me

    Hi Nitin,
    Check ur Portalapp.xml file. If u have the following code in that just <b>remove</b> them
    <property name="com.sap.portal.pcm.Category" value="platform">
    <property name="inheritance" value="final"/>
    Deploy it again.now u can see that par in ur portal.Refer this thread also
    PAR File not seen
    Regards,
    Tamil K

  • Unable to Deploy Par  File in the Portal

    Hi Experts,
    When i'm trying to deploy the par file to the portal after Configuring the server settings it's giving me an error.
    "Operation Failed: Please make sure the server 'DEV' (hostname:port) is running or check the log (sap-plugin.log) for more detail "
    And please guide me where i can find the log file sap-pluginng to check the logs as i'm new to the NWDS i'm not able to locate the file.
    Regards,
    Nilesh

    Dear Nilesh,
    Check that you have set the followings configurations:
    - Windows -> Preferences -> SAP J2EE Engine:
         Message Server host: Portal Server
         Message Server port: ms of portal 390x (not 50x00) you cand find your message server port in http://server:port/index.html -> System Information (Message server table)
    - Windows -> Preferencies -> Sap Enterprise Portal (there you need to put the 50x00 port).
    Try with this a comment, regards.

  • How to send a file through the portal

    Hello,
    I have a problem in sending the file. I have selected a file kris.ppt and from context menu, I have selected sent to option and I have sent a file. I got a copy of that to my lotus notes but in that I had a format as kris.ppt.html. I cannot open the file. I can open the file when the portal is running. But I want to open the file when the portal is closed. Can anyone tell me the solution.
    cheers
    kris

    Hello Shankar,
    I tried that option also by default I'm getting 2 options.
    One is the kris.ppt.html and other is the kris.ppt. I cannot open the first one rather I could open the second. I can open the 1st one if the portal is opened. Can you suggest anything regarding that one.
    cheers
    kris

  • Edit a mounted file on the portal

    Hello,
    I have mounted a directory from our file server on our portal server. I implemented this directory in our KM file structure with a file system repository. Now in this directory is an Microsoft Excel file. The mount is read-write and I have write access to the document on the file server and in KM structure. But how can I edit this file in the portal? I can access this file with KM Document iView but I cannot change the content of this file and save it. Can anyone explain me that?
    Best Regards
    Philipp

    Hi,
    the KM document iView is for displaying content. To be able to edit it, you need access to the conent menu of the file. Use the KM folder iView to access the folder where the xls is stored. From there, you can also edit files.
    You can also use the portal drive to access the KM folder with WebDAV. This way, the KM folders and files will apear as explorer folders and files.
    br,
    Tobias

  • Deploying an existing WAR file into the Portal

    I have downloaded the Enterprise Portal and the SAP Netweaver Developer Studio (NDS) and have succeeded in creating a couple of projects of the ‘Hello World’ variety and deployed them on the Portal!  So far, so good.
    The problem I have is that need to deploy on the Portal an existing JSP/Struts application of ours which is available as a Web Archive (WAR) file.
    The problem is that I cannot find a way of deploying an existing WAR file on the Portal – either via a Project or otherwise.  I have found an entry in the Help files with the NDS which sounds promising, as it is entitled ‘Import a .WAR File into a new project’.  However, the menu entry it says you should use (File &#8209;> Import &#8209;> MDK: Import a web archive (.WAR) into a new project) this last entry does not exist on my installation of NDS.
    Any ideas or suggestions?

    Hi Mustafa (and All) - thanks you very much for your answers, which has enabled me to make good progress.
    I have created a project in the Deploy Tool, imported a simple WAR file into it, loaded to project and depployed it on my instance of the Portal - or at least I have deployed it as far as the Deploy Tool is concerned. 
    However, when I try to find it in the Portal in order to assign it to an iView in the Portal content, I can't find any evidence of its existence!!
    As another 'tack' in the NDS I have created an 'Enterprise Application Project', into which I appear to have imported the WAR file - but I cant package this as a PAR file, which is what I seem to need to do to get it into an iView on the Portal.  To create a PAR package I seem to need to create a 'Portal Application Project' - but I can't find a way of getting the WAR file into that!!
    Any further advice would be greatefully received.
    Thanks for your help to date and thanks in advance for any more you may be able to give.
    Regards,
    Dave

  • The PCD folder with all par files in the portal is empty

    Hi all gurus.
    I have a customer that failed with a transport of iviews between two portals, the par file was not included even if attribute "include dependent objects" was checked.
    I have met this problem before and the only(?) solution is to download the par file separately and import it into the receiving portal and then create a new iview from it.
    Here is my problem: when I at this certain customers portal go to "System Administration > Support > Support Desk > Portal Runtime > Test and Configuration Tools > Browse Deployment" and then browse to "Root > WEB-INF > deployment > pcd" that last folder is empty! Blank!!!
    On all portals I've seen that folder alwasys shows all standard par files along with deployed stuff but here the folder just shows a white page with the text "The folder is empty".
    I don't think it's a matter of authority since I have added "super-admin role" and all possible content admin roles to my user without any change, the folder is still empty.
    Does anyone have an idear about what is going on here?
    Best regards
    Benny Lange

    Hi Raghu.
    Your are missing my point: it's not about what content to export, it's about the folder being totally empty. I can't see the par files belonging to our deployed code either.
    Of course I could upload the par file from Eclipse workbench from where I first uploaded the par file to the development enivironment, but I find it alarming that the folder is empty when it's full of par files in every single portal I have seen so far.
    Best regards
    Benny

  • How to edit a spreadsheet (excel file) in the portal?

    Hello experts,
    at the moment i am working on the requirement to edit a spreadsheet in the portal.
    Until now i was able to display an excel file with the help of the 'KM Document iView (without content filter)'.
    Everything is displayed alright and i can perform changes in the spreadsheet.
    BUT: There is no such thing like a Save-Button or something like that. Does the SAP NW Portal already provide a solution for this requirement? Or will i have to develop an own application?
    I have already searched the forums and sap help, but i haven't found any solution. I can't imagine that such an easy requirement would need coding.
    Best Regards
    Marcus
    (Po*nts will be rewarded for good answers)

    Hi Marcus,
    I do not think you can do the task the way you want. You will have to look for some workaround that may be download the file, edit it and then upload it back. You will have to code in your application for that. If you want to do this way I can help you further to edit and save the excel.
    Regards.
    Rajat

  • Upgrade to Netweaver causing problem while opening pdf file in the portal

    After an upgrade to Netweaver 4.0, the following code for opening a pdf file constructed from a byte stream passed from an RFC fails.
    Document doc = new Document(PageSize.A4);
    javax.servlet.http.HttpServletResponse myResponse = request.getServletResponse(true);
    myResponse.setHeader("Content-Disposition","attachment;filename=\"AIPDoc.pdf\"");
    myResponse.setContentType("application/pdf");
    ByteArrayOutputStream baosPdf = new ByteArrayOutputStream();
    OutputStream os = myResponse.getOutputStream();
    os.write(pdfResult);
    PdfWriter.getInstance(doc, os);
    It throws a "file not found error" on opening directly. However, if saved and viewed; it opens fine. I believe we need to specify the portal url in the filename but not sure.
    Thanks,
    Devina

    Hi Devina,
    We are also opening a pdf file constructed from a byte stream passed from an RFC.  Our problem is that we are experiencing inconsistent results.  The file appears to open on some PC workstations but not on others.  When it doesn't work we simply get a blank screen in the window.  Did you resolve your issue?  If so, perhaps you can provide us with some suggestions for solving our problem.
    Thank you,
    Angie

  • Deploying a war file to the portal server

    Hi,
    I have downloaded a portlet (portletsamples.war) from the following URL,
    http://developers.sun.com/prodtech/portalserver/reference/techart/jsr168/
    Could I know how to deploy this war file to SUN ONE Portal server 6.0?
    --Muthu                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    i used the following command
    /opt/SUNWps/bin/pdeploy deploy -u "amadmin" -w password -d "dc=cmarks,dc=com" -p password /opt/madiha/me.war
    It gives the error
    errorStoreDP (User does not have sufficient access.)
    1)does it matter if the portal server is started or not when we deploy?
    2)i am logged in to the machine as the super user "root" but yet it is throwing this error
    the error that i get in the pdeply.debug file is
    ERROR: Exception:
    com.sun.portal.desktop.context.ContextError: DSAMEConnection.setTemplateAttribute(): , dn=dc=cmarks,dc=com, serviceName= SunPortalDesktopService, sunPortalDesktopDpDocument=
    com.iplanet.am.sdk.AMException: User does not have sufficient access.
    at com.sun.portal.desktop.context.DSAMEConnection.setTemplateAttribute(DSAMEConnection.java:1050)
    at com.sun.portal.desktop.context.DSAMEConnection.setAttributeByDN(DSAMEConnection.java:518)
    at com.sun.portal.desktop.context.DSAMEAdminDPContext.storeDPDocumentByDN(DSAMEAdminDPContext.java:210)
    at com.sun.portal.portlet.cli.PDDPUpdater.storeDPDocument(PDDPUpdater.java:232)
    at com.sun.portal.portlet.cli.PDDPUpdater.addProviders(PDDPUpdater.java:98)
    at com.sun.portal.portlet.cli.PDDeploy.process(PDDeploy.java:229)
    at com.sun.portal.portlet.cli.PortletDeployerCommand.runCommand(PortletDeployerCommand.java:208)
    at com.sun.portal.portlet.cli.PortletDeployerMain.main(PortletDeployerMain.java:54)
    com.iplanet.am.sdk.AMException: User does not have sufficient access.
    at com.iplanet.am.sdk.AMDirectoryManager.setAttributes(AMDirectoryManager.java:2136)
    at com.iplanet.am.sdk.AMCacheManager.setAttributes(AMCacheManager.java:867)
    at com.iplanet.am.sdk.AMObjectImpl.store(AMObjectImpl.java:1573)
    at com.iplanet.am.sdk.AMObjectImpl.store(AMObjectImpl.java:1514)
    at com.sun.portal.desktop.context.DSAMEConnection.setTemplateAttribute(DSAMEConnection.java:992)
    at com.sun.portal.desktop.context.DSAMEConnection.setAttributeByDN(DSAMEConnection.java:518)
    at com.sun.portal.desktop.context.DSAMEAdminDPContext.storeDPDocumentByDN(DSAMEAdminDPContext.java:210)
    at com.sun.portal.portlet.cli.PDDPUpdater.storeDPDocument(PDDPUpdater.java:232)
    at com.sun.portal.portlet.cli.PDDPUpdater.addProviders(PDDPUpdater.java:98)
    at com.sun.portal.portlet.cli.PDDeploy.process(PDDeploy.java:229)
    at com.sun.portal.portlet.cli.PortletDeployerCommand.runCommand(PortletDeployerCommand.java:208)
    at com.sun.portal.portlet.cli.PortletDeployerMain.main(PortletDeployerMain.java:54)
    can somebody plz help?

  • Error message "The file is damaged..." when open a PDF-File in the Portal

    Dear Experts,
    We converted a Word-File into a PDF and loaded it with the help of SAP Knowledge Workbench into the Portal. When we try to open the file we receive the following error message from the Adobe Reader:
    "The file is damaged and could not be repaired. Local\EWH%a'61kta".
    Two strange things happen:
    - One day it works, the other day not. It can also happen that it works at the same day for some colleagues, but the others get the error message.
    - After press F5 (refresh) several times, the PDF can be opened in any case. It can work after refresh twice, but it can also be needed to press F5 seven times.
    Has anybody an idea why it can happen?
    Thank you very much.
    Diego

    Hi Purush
    Unfortunately we couldn't solve the problem. Our IT specialist checked it with SAP directly. SAP doesn't support the SAP KW solution anymore. Therefore we checked-in the document in ".doc"-Format.

  • Missing contents (files) in the portal

    Hello, can someone help me please?
    (at first - sorry for my english.)
    We installed SAP portal (NetWeaver2004s, support Package stack 11). But its come to errors on several sites:
    E.G.:  System administration -> System configuration -> System landscape editor.
    At left side in Browse- and Search-ranges appear no contents of (no files). At first appears: "Loading procedure runs" and afterwards at the left bottom corner: "Errors on the Site arisen!" and left range remains empty. What is the Problem?
    Thanks ahead for the help
    regards,
    galyna
    german:
    Hallo, kann mir bitte jemand helfen?
    Wir haben SAP Portal installiert (NetWeaver2004s, Support Package Stack 11).
    Aber es treten Lade - Fehler auf mehreren Seiten auf. Z.B. Systemadministration - Systemkonfiguration - Systemlandschafteditor.
    An der Linken Seite im Browse- und Suche-Bereichen erscheinen keine Inhalte (keine Ordner).
    Zuerst erscheint: "Ladevorgang läuft" und danach unten Links: "Fehler auf der Site aufgetreten!" und das linke Bereich bleibt leer.
    Woran kann das liegen?
    Danke voraus für die Hilfe

    Hello,
    many thank you for their help
    I am responsible only for the konfiguaration of the portal and passed your answers promtly on to the portal administrators. I write again then we will have new results.
    thanks,
      galyna

  • Deploy a JSP file onto the Portal Server ?

    Hello All,
    I have a jsp file with me.
    Now I just want to deploy it on to the Portal server.
    Should I create a JSP Dynpage ?
    I've the complete jsp file . Shud i need to do anything to convert it into a jsp dynpage ?
    Can anyone tell me the procedure of how to achieve this ?
    Regards,
    Deepu.K

    Hi Deepu,
    check SAP Library section <a href="http://help.sap.com/saphelp_nw70/helpdata/en/de/7f5d7b186e4430ae40e5e4382c280e/frameset.htm">Portal Development Manual</a> for more information about portal development.
    For example in section <a href="http://help.sap.com/saphelp_nw70/helpdata/en/44/46bb8670e20597e10000000a155369/frameset.htm">Deploying the Portal Application</a> SAP describes how to deploy portal applications (including JSP Dynpages).
    Best regards,
    Martin

  • Adding files to the FCP X Music & Sound Facility

    Having recorded, say, a Sound Effect using Soundtrack that I want to keep for future use, the logical thought is to export it as an AIF file and add it to the iTunes Library, something I have done in the past. Now iTunes won't recognise the Soundtrack file. I have posted this message on the iTunes forum, but is there a way of adding the file to the Music & Sound facility without using iTunes, or what is the next best option.
    What I had tried initially was to copy a MPEG 4 movie, which iTunes will import, however as I was only interested in the soundtrack I took the movie file into Soundtrack and exported the AIF file intending to addd it to the iTunes library so that it would appear in the Sound iTunes listing, but  I can't.
    Thanks

    Hellp Tom
    You have got me confused. My original intention was to use Soundtrack to strip the audio from an MPEG 4 movie and  save it in iTunes for use in FCP X. The problem was that iTunes wouldn't recognise an aiff file created by Soundftrack 3.01. either from the Movie or from an audio recording from a microphone. However the same aif file introduced into Garage Band 4.1.2 and converted to AAC was accepted by iTunes. It was then availble for use in FCP X. My version of Garage Band only appears to export in either AAC or MP3, so how do I get an aif file into iTunes in order to access it in FCP X?
    I could create the aif file in Soundtrack , drag it to my Music Folder, and then import it to my FCP X event folder, but that is messy.
    Alternatively is there a way of creating a new folder in the Sound & Music pane of FCP X into which I could put my files, although that isn't an ideal solution?
    In what way is an AAC file ubsuitable for FCP X?
    Thanks

  • Eror downloading a XLS file on the portal hosted struts/j2EE application

    guys,
    1st of all please bare with for writing such a huge mail but to explain the scenario i had to do this.
    i am trying to download a XLS file from the web application (struts/J2EE) hosted on the portlet.
    on my portlet i have few text boxes and a button.
    onlcik of the buton there are few validation javascripts and if the valdatin is thrugh then the form is submitted.
    there are 2 ways i can submit the form to the struts action class.
    both approaches have some problem or the other.
    Apporach 1
    var postUrl = document.getElementById('getReportURL_$$PORTLET_ID$$').innerHTML;
    var post = new PTHTTPPOSTRequest(postUrl, form, handleInlinePostResponse_$$PORTLET_ID$$);
    post.invoke();
    this is like a AJAX request post where the response comes back in the function handleInlinePostResponse_$$PORTLET_ID$$ which can be then handled.
    Problems
    1. as from action class i am trying to send a XLS file, i am writing the byte stream of the XLS file on the output stream of the response. when the response reaches the function handleInlinePostResponse_$$PORTLET_ID$$ on portlet jsp it gives me an javascript exception 'End of file reached in invalid state for current encoding' but while sending the response i am encoding the byte stream.
    the code snippet from the action class is as below
    response.reset();
    response.resetBuffer();     
    response.setHeader("Content-disposition", "attachment; filename=" + reportData.getFilename());
    response.setCharacterEncoding("UTF-8");
    response.setContentType("application/vnd.ms-excel");
    response.getOutputStream().write(reportData.getContent()); //byte[] form of the XLS file
    return null; //as we write on the response out stream the response is already commited hence the return null has no significance.
    2. in case of the any exception on server side this approach is helpful as the error content jsp is rendered in to the portlet from where the action was fired.
    Approach 2
    form.action = "<pt:url xmlns:pt='http://www.plumtree.com/xmlschemas/ptui/' pt:href='downloadCommercialXLSReport.do'/>" ;
    form.submit();
    This approach is normal for submitting any struts from bean to the struts action class (i know this is not a aprropriate way to submit d form through portlet as it submits whole page inclusding all the portlet data)
    Problems
    1. here in case of the sucess the XLS file is returned to the browser which openes a browser specific dialogue box having 'Save' 'Open' and 'Cancel' buttons to save/open the XLS file. (please note no javascript exception occurs here as approach one as the byte streeam content is returned to the browser directly and not to any post response handler function as handleInlinePostResponse_$$PORTLET_ID$$)
    2. But here the problem is in case of any sever side exception the error jsp is rendered on whole browser page and not in portlet which is kinda goofy.
    so now i am in a catch 22 scenario each approach has 1 problem either in success or in failure flow.
    can sombody suggest me a way out from this as i desperately need to download a XLS file.
    lemme kno if anybody has done a similar download stuf through portal server.
    regards,
    Sush

    i have done this before although it was in .net. try the first approach but first pop to a new window....the xls response has to be the only response to the browser or else the browser will take the other bytes returned as garbage and call the stream corrupt. let me know how this goes for you.
    if you still have problems i can post the code that worked for me. it is in c# but looks very similar.

Maybe you are looking for

  • External LCD not getting 'Red' Signal

    I have my Macbook connected to a 20" LCD monitor here at work, and it's worked wonderfully for quite some time. Suddeny today, I lose the Red signal to the LCD. I've plugged in another LCD to my Macbook, and everything displays correctly. I've plugge

  • Where can I buy this Toshiba Notebook Docking Station/USB hub?

    Where can I buy this Product in Denmark or in a webshop in Denmark/Europa ? *Toshiba Notebook Docking Station/USB hub* Product link: http://www.ubergizmo.com/15/archives/2006/07/toshiba_notebook_docking_stationusb_hub.html THANKS. Danish: Hvor kan je

  • Dynamic programming tabstrip, no tabs in pull down navigation menu

    Hi everybody, I create with dynamic programming a tabstrip with some tabs. Than I have the problem that the navigation menu ( or pull down menu ) for the navigation between the tabs is not filled. So my question is, must I put the generated tabs in t

  • Ruby on Rails environment

    I have tried the Apple tutorial and Adam Blackbourne's book and website and still cannot get a functional environment started so that I can develop using Ruby on Rails. I get Ruby installed, Textmate installed, and then seem to get bogged down with T

  • Changed security settings resulted in amber light

    Just changed security settings on my AirPort Extreme from WEP to WPA2 because I didn't need to use weak security anymore as my old notebook (not supporting WPA) recently retired. No problem joining wireless network with my MacBook Pro, but my AirPort