Getting document URL and from it...the documents

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2013 04:00 PM
Hello All,
I am really new to Alfresco. We need to integrate a PLM product with Alfresco. My requirement drives me to get the file associated with the URL/hyperlink during drag/drop onto our PLM.
I have few questions in this regard:
1. If I have few files in a repository, and if I hover over them, I could see the target link [ HREF of anchor tag ] as
http://XXXXXXX/share-repo/proxy/alfresco//api/node/content/workspace/SpacesStore/7346eeef-4a75-47e9-...
Now, if I click one particualr document, I could see something like this in the URL box of the browser.
http://XXXXXXXX/share-repo/proxy/alfresco//api/node/content/workspace/SpacesStore/7346eeef-4a75-47e9...
So my question is this. What needs to be done to get the proper URL of a file during hover/drag. Javascript drag event?
2. If I do get a URL of the document appropriately, how do I get the actual file?. Are there any specific APIs provided by Alfresco?.
3. Finally, in the event that I do not get the URL correctly, is there any way to get a unique id of the file that I am dragging?.
Requesting you to share any information on this stuff.
Thanks,
Pavan.
I am really new to Alfresco. We need to integrate a PLM product with Alfresco. My requirement drives me to get the file associated with the URL/hyperlink during drag/drop onto our PLM.
I have few questions in this regard:
1. If I have few files in a repository, and if I hover over them, I could see the target link [ HREF of anchor tag ] as
http://XXXXXXX/share-repo/proxy/alfresco//api/node/content/workspace/SpacesStore/7346eeef-4a75-47e9-...
Now, if I click one particualr document, I could see something like this in the URL box of the browser.
http://XXXXXXXX/share-repo/proxy/alfresco//api/node/content/workspace/SpacesStore/7346eeef-4a75-47e9...
So my question is this. What needs to be done to get the proper URL of a file during hover/drag. Javascript drag event?
2. If I do get a URL of the document appropriately, how do I get the actual file?. Are there any specific APIs provided by Alfresco?.
3. Finally, in the event that I do not get the URL correctly, is there any way to get a unique id of the file that I am dragging?.
Requesting you to share any information on this stuff.
Thanks,
Pavan.
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2013 05:45 PM
url: "downloadUrl" (propertie a node, node is a file, folder…)
id: "nodeRef" (propertie a node, node is a file, folder…)
<a href="http://wiki.alfresco.com/wiki/JavaScript_API">http://wiki.alfresco.com/wiki/JavaScript_API</a>
you can find some "examples" in <a href="http://code.google.com/p/share-extras/"> http://code.google.com/p/share-extras/ </a>
(sorry for my bad english)
id: "nodeRef" (propertie a node, node is a file, folder…)
<a href="http://wiki.alfresco.com/wiki/JavaScript_API">http://wiki.alfresco.com/wiki/JavaScript_API</a>
you can find some "examples" in <a href="http://code.google.com/p/share-extras/"> http://code.google.com/p/share-extras/ </a>
(sorry for my bad english)
