on 07-21-2005 11:44 AM
hi everybody,
We have built an edit form from xml form builder,
we have a browser field that we use to upload a document (an
attachment) to the RenderListItem form.
We have no problem while trying to attach a file from the KM repository
(we put "/documents/" in the "Start in" property of the browser field).
The problem is that we don't manage to upload a file from a directory of our local hard
drive.
Can anyone please help us?
Thank in advance
Alessandro
Pier,
If you want to attach a file before doing that you must upload this file to Portal.
Upload botton only allow you to browse in KM repositories.
Patricio.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pier,
you can assign some javascript for a button. From this JavaScript you can call a component (your own upload component) in a new popup, which offers the standard HTMLB upload.
Then upload the file, do whatever you want with it, and close the new window.
More or less straight forward, only the JS is a bit tricky.
Here is some example I used 2 years ago, no further documention or help will be provided
javascript:function openit(){window.open('/irj/servlet/prt/portal/prtroot/com.btexx.pct.news.comm.sap_portal.upload'this.location.search'&guid='this.document.<NewsObjektName>.XMLFormDataResName.value'&dest=PictureUrl','_blank','left=250,top=250,resizable=Yes,height=100,width=400,scrollbars=No,location=No,menubar=No,status=No,toolbar=No')}if(document.domain.indexOf('.')!=-1)if(document.domain.length-document.domain.indexOf('.')!=3)if(document.domain.length-document.domain.indexOf('.')!=4)document.domain=document.domain.substr(document.domain.indexOf('.')+1);openit();
Hope it helps
Detlev
PS: Please consider rewarding points on SDN for helpful answers. Thanks in advance!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.