How do I get Full Url to a Document?
I am querying Document Folders using the IDocument Interface. The query returns the Url, but only a partial Url. I need to Full Url path in order to send to a user to access it. The URL being returned is only the last part (e.g. "_477_0_0_18/DeveloperGuide_PlumtreeNETWebControls_v2-1.pdf"). I need the first part (e.g. the http://.....)
Sample Code:
Protected Sub RetrieveDocumentDetails(ByVal intFolderID As Integer)
Dim customDataSet As New DataSet Dim newTable As New DataTable("TestTable") Dim newRow As DataRow
'Initialize Custom DataSet newTable.Columns.Add("CardName", GetType(String)) newTable.Columns.Add("DateCreated", GetType(String)) newTable.Columns.Add("DateModified", GetType(String)) newTable.Columns.Add("DocOwner", GetType(String)) newTable.Columns.Add("DocumentUrl", GetType(String)) 'newTable.Columns.Add("DocDescription", GetType(String))
'Instantiate Plumtree Remote Session Dim IPTRemoteSession As IRemoteSession IPTRemoteSession = RemoteSessionFactory.GetExplicitLoginContext(New System.Uri("http://cgi-clay01.clayton.com:8111/ptapi/QueryInterfaceAPI.asmx"), "Administrator", "")
'Query the Plumtree Document Manager passing in the Folder ID Dim PTDocumentManager As IDocumentManager = IPTRemoteSession.GetDocumentManager() Dim PTDocumentQuery As IDocumentQuery = PTDocumentManager.CreateQuery(intFolderID) Dim PTQueryResults As IObjectQuery = PTDocumentQuery.Execute() Dim i As Integer
'Loop throught the Document Query Results and load into the Custom Dataset For i = 0 To PTQueryResults.GetRowCount - 1 Dim PTDocument As IObjectQueryRow = PTQueryResults.GetRow(i)
newRow = newTable.NewRow() newRow("CardName") = PTDocument.GetName() newRow("DateCreated") = PTDocument.GetCreated() newRow("DateModified") = PTDocument.GetLastModified() newRow("DocOwner") = PTDocument.GetOwner() newRow("DocumentUrl") = PTDocument.GetStringValue(DocumentProperty.URL) '(I NEED THE FULL URL HERE) 'newRow("DocDescription") = PTDocument.GetDescription()
newTable.Rows.Add(newRow) Next customDataSet.Tables.Add(newTable) customDataSet.AcceptChanges()
'Bind Custom Dataset to Datagrid DataGrid1.DataSource = customDataSet DataGrid1.DataBind()
End Sub
Paul
You can insert layout breaks to change the number of columns throughout your document. This screenshot is from a newsletter I did in Pages 1/iWork '05, but this function is unchanged.
You should change your profile information that appears at the bottom of your posts. Mac OS 9 hasn't been a current OS for over 10 years & there is no way to run Pages on it. If you're not sure what version of Mac OS you're using, click the in the upper left of your menu bar & choose About This Mac.
Similar Messages
-
How to get full url using UCM RIDC api
Hi,
I am using RIDC api to get the full url of the document (including protocol, host, port info). I tried using DOC_INFO
and GET_SEARCH_RESULTS api. The GET_SEARCH_RESULTS api returns the path but no protocol, host, port info.
DOC_INFO does not contain any uri. Is there a way to get full url? I only have access to the idc socket connection
configuration to connect to the server.
E.g. I know the idc connection url is idc://hostname:4444
The user supplies document name as "myDoc.txt" and dId = 2000.
I used GET_SEARCH_RESULTS for myDoc.txt and DOC_INFO for dId=2000.
I need to return absolute url to the user that user can copy paste in the browser and download the doc.
Thanks,
--dhirajYou can ge the docUrl using doc info services DOC_INFO or DOC_INFO_BY_NAME.
dataBinder.putLocal("IdcService", "DOC_INFO");
dataBinder.putLocal("dID", docId);
ServiceResponse response = idcClient.sendRequest (idcContext, dataBinder);
DataBinder respBinder = response.getResponseAsBinder();
System.out.println("DocUrl"+ respBinder.getLocal("DocUrl")); -
How to get full URL in java?
Hi,
I am working in a spring & hibernate project. For the AJAX request to bookmark, I used RSH (Really Simple Framework) framework. So, my URL changes for the AJAX request as
http://localhost:8080/courses#/medicaltranscription/cardiology
If I bookmark this and open in a new window, I cant get full URL in Servlet. If I use methods in Servlet, it gets only, upto http://localhost:8080/courses. I cant get the whole URL. Please, help me to find a solution.
Thank youThe hash part is entirely client side. You cannot get it on the server side. You need to pass it as request parameter or as part of real URL.
-
How do I get the URL to "My Photo Stream" (the base one, Not the one I created to share out)?
You can't get a url for my photo stream; only for publically shared streams.
-
How Can i get the URL of a page
How Can i get the URL of a page . like in ASP the
Request.QueryString() ...
ThanksAre you wanting actual URL or just the url (query string
variables)?
For url variables you would reference the structure.variable
name like so:
#url.variablename#
So if you had a url like this:
http://www.somedomain.com?page=home&action=view
You could access the variables like so:
#url.page#
#url.action#
If you are wanting to actual page you could use:
#cgi.script_name#
Bryan Ashcraft (remove brain to reply)
Web Application Developer
Wright Medical Technologies, Inc.
=============================
Macromedia Certified Dreamweaver Developer
Adobe Community Expert (DW) ::
http://www.adobe.com/communities/experts/
"Yasmin_lady" <[email protected]> wrote in
message
news:e4fhjv$fpl$[email protected]..
> How Can i get the URL of a page . like in ASP the
Request.QueryString()
> ...
> Thanks -
How do I get full display on sony tv w/macbook pro
how do I get full display on sony tv w/macbook pro? I am using mini dv adapter to pc input cable.(I believe hd15) not HDMI adapter.
How is the image you get now deficient?
Are you mirroring or using extended desktop mode?
What resolution(s) are you using? -
How can i get getwayed url string using pluggable nav in news portlet?
hi.
How can i get getwayed url string using pluggable nav in news portlet?
A code just like below is what I want.
<param value="param=http://.../portal/server.pt/gateway/PTARGS_.../http/...">
I tryed the following, but didn't work as I wanted.
1.<param value="<pcs:valueexpr='var'/>">
-> transformed. but I want the prefix 'param=' in the enquoted string's too.
2. <param value="param=<pcs:valueexpr='var'/>">
-> not transformed.
Any idea?
HiroyukiHi all,
We have HPROF functionality in our latest roadmap, so you will see that feature in our next major release called JRockit R28.
I recommend, above from the MemLeak documentation suggested by Makiey, the following information on how to use JRockit tools.
Performance Tuning & Profiling:
http://download.oracle.com/docs/cd/E13150_01/jrockit_jvm/jrockit/geninfo/diagnos/part_02.html
Using JRockit tools:
http://download.oracle.com/docs/cd/E13150_01/jrockit_jvm/jrockit/geninfo/diagnos/part_03.html
Diagnostics & Troubleshooting
http://download.oracle.com/docs/cd/E13150_01/jrockit_jvm/jrockit/geninfo/diagnos/part_04.html
Best Regards,
Tuva
JRockit PM -
How do I get the URL of a jsp page which calls a servlet?
I have a jsp page which will lead to a servlet, I can get the URL of the servlet, but how do I get the URL of the jsp page which lead to the Servlet in the servlet?
You could try doing:
request.getHeader("Referer"); -
How do I find the URL for a document loaded into Buzzword?
How do I find the URL for a document loaded into Buzzword?
What kind of document? What is Buzzword?
-
How do i get to Type within a document
All i am aakinf is How do i get to type within a document what button do i hit to do this
What type of file are you trying to type into?
-
Received a confirmation e-mail requestion me to reply to it and I cannot get the URL to paste to my browser--how can I do this???????/
Hi June,
Sorry for the trouble you've had.
I've verified your account on our end and you should be able to access the ExportPDF service now.
Please let us know if you have any questions!
-David -
Until about a week ago I could read all my iCloud email. Lately some subscription items come in with the email header but the body is blank. When I checked the same messages on my iPhone via iCloud email the full body text is available. Any ideas how I can get my Mac Pro to see the text? I've rebooted the Mac Pro and closed the iCloud and reconnected but no change.
Thanks
PaulI think you need mountain lion. I am having the same issue. Here is the system requirements for iCloud to work properly. I hope this helps.
http://support.apple.com/kb/HT4759 -
How to get full path of indesign document as well as picture path.
Hi all,
I am working in InDesign CS4 plugins. and I have two quetions,
1) How can we get the indesign document full path. I am able only to get the document name but i want the full path of it.
2) How can we get the selected picture path also. I am able only to get its name.
Please let me know if any one have idea of it.
Regards,
Jitendra Kumar Singh//to get full path of document, works for both mac and pc
IDocument *document = Utils<ILayoutUIUtils>()->GetFrontDocument();
IDataBase* theDb = ::GetDataBase(document);
const IDFile* sysFile = theDb->GetSysFile();
InterfacePtr<ICoreFilename> cfn((ICoreFilename*)::CreateObject(kCoreFilenameBoss, IID_ICOREFILENAME));
if(cfn != NULL){ if(cfn->Initialize(sysFile)
== 0){
PMString fulldocumentnameandpath = FileUtils::SysFileToPMString(*sysFile);
Hope this helps,
Liz Patten -
How do I get the URL of a jsp page?
I have a jsp page which has a link to a servlet page, in the servlet page, I want to get the URL of the jsp page.
I tried to use request.getHeader("referer"), it seems like if it is a link in the jsp directly lead to the servlet, it works, but if the link calls a javascript function which opens up a window runing the servlet, it is not working. I have to do the second way, so it is not working by doing request.getHeader("referer")
I tried to use javascript "location.href", I get the whole url by alerting the url in the jsp page:
http://localhost:8080/pos-webapp/serv/qt_old?currentpage=portal&bcd=ABC123&pnm=P1001830&prnm=1&psd=236863.0&ln=01&sln=NYPPA&stp=2.1&stt=A&_POSID=1F8464122ADAF4EEC9B1A94C286EB252
then I pass this url when calling with my servlet, in the servlet page, when I do request.getParameter("url"), the url is actually cut off like this:
http://localhost:8080/pos-webapp/serv/qt_old?currentpage=portal
anything after &pnm is cut off, anyone has any idea?
Thanks in advance.Thank you.
but how do I put encoding in the javascript code? do I need to decode in my servlet page?
here is my code in the jsp page:
linkset[3]+='<div class="menuitems">Email Diagnostics to AutoOne</div>'<%
function emailDiagnostics()
win = window.open("/pos-webapp/serv/email_diagnostics?url=" + location.href + "&browser=" + navigator.appName, "emailDiagnostics",
"width=350, height=140, resizable=no, scrollbars=no, toolbar=no, location=yes, directories=no, status=no, menubar=no, copyhistory=no, left=450, top=300");
win.focus();
} -
How can I get full screen to work with utube in google chrome?
When I use utube in google chrome I can not get full screen to work. How can I fix this?
See: http://forums.adobe.com/thread/1193685
also: http://helpx.adobe.com/flash-player/kb/enable-system-flash-player-google-chrome.html
Maybe you are looking for
-
Linux logfile monitoring does not work after using "privileged datasource"
Hello! I have noticed a strange behaviour on one of my Linux Agents (lets call it server_a) regarding logfile monitoring with the "Microsoft.Unix.SCXLog.Datasource" and the "Microsoft.Unix.SCXLog.Privileged.Datasource". After successfully testing mon
-
Help Please - X200 will not boot after Bios Upgrade - keeps asking for power on password
Hi there, I am new to this forum and please let me say a big Thank You for your help in advance. I am using a lenovo thinkpad x200 running windows vista with service pack 1. The laptop has always been running fine and has never given me any issues.
-
Sender SFTP Adapter channel is not polling for files
Hello All, Couple of SFTP sender adapter channel was failing in Developent system with u201Cdirectory listingu201D error.All SFTP sender channels stopped polling for the files in Developent system . We were unable to find the reason for adapter fail
-
Interface e1000g0 not showing in running state
Hello all, I have a sun server SunOS PNR1RAD01 5.10 Generic_144488-09 sun4v sparc SUNW,Netra-T5220 where i have an interface e100g0. This was earlier in running state but now this doesnt show running state. I tried to reset the interface, checked the
-
APEX 4.2 / TextField / type="search"
Hello Is anyone aware of an easy way to define a text field with "search" as the type. I would like to have this nice jQuery Mobile search icon in the text field. Many thanks in advance for your help Lukasz