How to write document download event to the external system? - events

I need to write event to the external system when document in library is downloaded by user.
There is no download event in list.
Should I retrieve this information from audit reports? If yes, how to do it - there is no 'audit web service' in SP.
Maybe is any easier way to do it?
Thanks in advance, Chris.
~ I finally use http module: https://sharepoint.stackexchange.com/questions/14447/logging-document-library-downloads-with-httpmodule

This type of event is not available via the EventHandler framework. There is no download specific event, but there is a view event available from the AuditEntry object. However, there is no way to differentiate between the user clicking the link to view the document and downloading it.
One option I would look at is create a custom action for the document library. This custom action would download the document and write the information required for the external system. To make it completely effective, you will need to disable the ability to right-click and download the link so the user is forced to go through your custom action.

Related

Form has Event handler attached to it from the web resource

I have a marketing list form which has its own OnLoad event attached to it, upon inspecting Form properties I see that there are no libraries added just an event:
this aforementioned .js file does not exist in Web resources.
My question:
Where should I look for it ?
Definitely this is Microsoft OOB web resource library (Internal use only). If this is not bothering you and if you don’t need it, leave it as it is. Even you can remove the event registered in form editor, no harm will be made - possibly some section which is hidden may be shown or vice versa. But, you cannot add it back since library dropdown will be empty when you try to register it back.
It could be mistakenly registered/failed to remove during some upgrades. MS team failure. :(
on a quick search - I see only this reference in internet for that file.
I remember I have seen such mess related to Field service libraries and LinkedIn integration libraries not registered in Account/Contact forms and only events were there.
Even if you try to find the library in default solution, when you open it - it will be condensed and read-only. :)

Track external resources (PDF)

I published one course having 2 external resources (PDFs). When the user clicks on the PDF option available in the Resources section, it gets opened in the browser, but no statements are inserted into the LRS.
Am I missing some settings which will track the external resources?
Basically, I want to achieve following things:
1) Get how many times user referred to an external resource.
2) When user accessed the resource.
Is it possible? Sorry if it's a very naive question, I've just started exploring Storyline and xAPI.
Any help would be highly appreciated.
Storyline's xAPI implementation is basically a replacement for the standard SCORM 1.2 calls. As such, I don't think it tracks PDF or resource clicks as they don't generate a SCORM event. It is a very limited set of xAPI calls.
You could try putting the link to resources on the master slide instead, with a button that launches some javascript to generate the xAPI call, but that would mean linking a lot of javascript (eg from the TINCAN resource website) to do one thing.
Here's how I've been doing it.
Create a new custom tab in Storyline instead of using the default Resources Tab (you can call it Resources or Attachments or anything else).
Set a trigger for the custom tab to open a lightbox slide that contains all the links to external resources.
In addition to the trigger to open a URL for each link, use the Execute JavaScript trigger to submit your xAPI statement when users click the link. Make sure the Execute JavaScript trigger is stacked in priority above the open URL trigger to ensure your xAPI statement fires.

Share to download

How to make a share to download system?
Means the visitor must share the content on a social network to get the desired file.
eg.W3layouts.com I must share the article to download the file.
NB: No third party solution. I want to know how it work and create a new one
Thank you
I will just use Twitter as an example:
You would use a Twitter web intent to track the user's click on your widget to share whatever content you want shared, seen in this page: https://dev.twitter.com/web/javascript/events . Use the 'tweet' event to listen for when the user interacts with the button. When you've verified that this event has fired, call the function that downloads the file to the user's computer.
Another thing, take to Google before you go asking it on StackOverflow.

How to receive a file after drag and drop

I'm trying to build a web application that allows users to drag and drop a file from their desktop (like justbeamit.com) to an "icon" that represents another user, and so that the different user could receive it on the other side. I see that this is possible using the dropzone.js feature, but I want to know is how it's possible to link this with the receiving function so that the other user could download it simply after receiving a notification. I know it sounds complicated, but wish you guys could do good on me by providing knowledge on how to link the drag and drop functionality with a function that allows the other user to receive and download the file. Thanks!
If you are using MVC framework you can get the file from controller as body.request.body.dataParts.get

Upload function using forms publisher with the <browser>

What necessary steps must be taken in order to upload a file from local machine to ContentCenter using Forms Publisher to create a DCR. As far as I understand the instance only lets you browse files within the specified workarea. What I would like to do is use it to upload an image instead to a specified folder in the workarea instead.
Can anyone provide me with the steps/examples to solve this? Would be really appreciated.
Thank you.
You can do that with a custom plugin in Tiny MCE. Create a sevlet
that has a browse button with upload functionality to teamsite
workarea. Call that in Tiny MCE on click of an icon.
You can also create a CGI and call it in datacapture.cfg using callouts.
Let me know if you need more details.

Resources