Office-Js Word Add In: Detect user change in document/ how to use bindingdatachanged functionality - ms-word

New Office-js user, I'm working on an advanced find and replaced plug in for efficiency purposes, has anyone had any luck detecting a change to a word document? What I'd ideally love is that whenever text is changed/edited, I could trigger my function. I've been looking into addHandlerAsync(Office.EventType.BindingDataChanged, onBindingDataChanged);, but can't seem to figure out the proper use case for this code to attach it to the word document. I also would need a way of caching the before and after state, which I've seen people mention but again haven't seen any code examples for it.
I'm very aware that this will probably cause issues with that frequent running, so equally if anyone had any experience debouncing/throttling events in office js, or delaying them to set intervals that would equally be awesome.
Many thanks in advance!

Office JavaScript API (OfficeJS) doesn't provide any event for handling document changes. You may vote for the existing request file few days ago, see Office.js Word Document content changes for more information.
You can post or vote for an existing feature request on Tech Community where they are considered when the Office dev team goes through the planning process.

Related

Can you get access to MS Office 365 Word save document event?

For Office 365 Word add-ins, is there a Save event (similar to something in windows programming, like Saving() or Saved())? In other words is there a way\time\event to detect when user is trying to save a document?
the fast answer to this question is that this is not supported as of now. please help us improve our APIs by voting or adding this request here https://officespdev.uservoice.com/forums/224641-feature-requests-and-feedback/category/163566-add-in-word
Also please share your scenario, its specially interesting in your question Office365 Word, in the online clients saving a document is a constant operation, not sure what you intend to do on such events.
thanks

How to save Lync conversation history when Corp has blocked this feature?

I am using Lync 2010 (4.0.7577.4356), which we use on my small development team for IM'ing. Lots of technical Q&A are handled through this program and lots of other items that need to be documented. Unfortunately, our parent company has a policy that turns off "Converation History", so once the window is closed, it's gone.
I've done a fair bit of research and I haven't found a way to save this data since the settings have been made at our parent Corporation's level (through Active Directory, or whatever). This is information that we need and even my boss has tried finding a way to save this information (everything short of copy-pasting everything before closing the window or computer).
How can I accomplish this task? Are there any programs out there (freeware or otherwise) that can save these conversations? Does anyone know of a way that I can hook up Lync (the instant messaging module) to another instant messenger (GTalk, Jabber, ICQ, Yahoo, or whatever) -- then record each message from there? I'm a software developer, so if anyone knows of a means of communicating with Lync, and is able to access the messages, that would help too!
Anything at this point would help... thanks in advance!!!
-Panuvin
Try this https://github.com/bujocek/LyncIMLocalHistory. I've used the Tom Morgans answer and created own local lync (Skype for Business) conversation history tracker.
You can build it from source or just unpack and run latest release here: https://github.com/bujocek/LyncIMLocalHistory/releases
There's a client-side Lync SDK, which is pretty easy to use if you're already a .NET developer.
It's easier to do something like this and have it running on every member of your small dev team's machine alongside Lync - easier than trying to re-invent a central conversation store.
I recently blogged about recording the length and status of Conversations, and also about identifying different sorts of Call within the Conversation (you'd be looking for Instant Message Call type).
After that, you'd need to subscribe to the Flow and catch every message to and fro, and log them to a database or whatever. There's a really good book which could help you with this: Unified Communications with Microsoft Lync. If you're serious about doing Lync development, this is definitely the book for you!
With Lync 2013, CTRL+S will save the current tab to your Outlook/Exchange Conversation History folder. I'm not certain if this works with 2010.
You may try this: https://github.com/PhilippeRaemy/LyncLog.
This tool saves the conversations in text files, using a file naming convention that makes it easy to identify the time and participants.

usage of AutoComplete feature in modern GUIs

I am usual software developer (not Usability specialist); so it is interesting for me to know opinion of usability professionals about the following question.
I would like to know: how often usability specialists recommend using feature AutoComplete (http://en.wikipedia.org/wiki/Autocomplete) in modern GUIs? Has presence of the AutoComplete in GUI become a 'standard' to the moment?
This depends a lot on the overall design. Autocomplete increases usability only in some cases, in other it may be inappropriate or distracting. The only way to know in your particular case is to conduct usability testing.
I've implemented autocomplete on several different projects with user base ranging from 200 to 500 and have collected feedback on this feature. From my experience, users love it as long as it's fast.
My favorite control to do autocomplete is jQuery's: http://docs.jquery.com/Plugins/autocomplete
It doesn't start filtering until shortly after the user is done typing. This is important because you don't want to flood the server w/ too many ajax requests.
With Microsoft SharePoint 2007 I replaced the out-of-the-box search with a live search that does autocomplete. This is probably the most used feature in the site
I created a few "portlets" with large amounts of grid data and I use a built in quick find that filters the data for the user. These are also used quite a bit
One other thing to mention is I'm not too certain how 508 compliant it is so you may want to provide an alternative so the page w/ autocomplete can fail gracefully without sacraficing the user experience
Look at discussion on http://www.linkedin.com/groupItem?view=&gid=79272&type=member&item=49087267&qid=3ed96f17-25c4-4cac-b92d-69c37925f5bc&goback=%2Egna_79272; it is devoted to the Auto-Complete feature too. Some exampkles and ideas were written there.

Platform For Volunteer Management Website

I help out at a local soup kitchen, and they are wanting to create a website. Most of their criteria are pretty simple, they want to be able to have a calendar, post pictures, and have a blog. However they also want to be able to manage volunteer's. They want to be able to post a event, have a list of jobs that they need volunteer's for that event, and allow people to sign up for the jobs. I would like to base this website on a well known platform like DotNetNuke, WordPress, or Drupal. Before I go and code my own plugin for managing volunteers I decided to see if I could find a platform that already has a module available. So far I have not been able to find anything. Has anybody heard of one or used one in the past? I would appreciate any suggestions.
There's a whole range of ways to do this, but I haven't ever seen a dedicated solution (plugin or otherwise).
On the one hand, a blog could do all that you're asking. Posting pictures and blog entries? That's wordpress all over. Want a calendar? We have a plugin for that. Want to let volunteers sign up for stuff? Let them post comments.
On the other hand, the problem you're describing isn't unique: In my own experience I've wanted the software you describe. May I suggest that, if you have the time, you make something totally awesome for the volunteer community?
Our company, Wired Impact, recently released a plugin called Wired Impact Volunteer Management that provides exactly the functionality you're looking for. You can learn more and download the plugin at https://wordpress.org/plugins/wired-impact-volunteer-management/.

avoiding tag misspellings an erroneous tag data

I'm working on implementing a tagging system in my application. I've been reading some of the other questions on SO about database schemas used to implement tags and they've been very helpful, but I havent' found any that talk about how to combat tag spelling errors and things. So if two people enter the same tag but they are spelled incorrectly, it becomes a problem when others go searching for tags, or if you want to do any reporting off of tag information. What kinds of things to others use to help avoid this? or do you just have to put up with it?
Having moderator-level community members can assist in this event. The re-tagging of things should be able to be flagged by a member, changed by a moderator. The same goes for question alteration, title changing (for clarity). Community driven databases are good for this, given effective scoring system to prevent malicious editors.