Office Add-Ins: Working with Tables in Word. Part 4: Getting a table in a...
In this article we will see how to use a ContentControl to quickly and accurately access a table in a Word document. Introduction In previous articles we have seen how to get a Table using a search or...
View ArticleOffice Add-Ins: Working with Tables in Word. Part 2: Creation from OOXML
In this long overdue article I will discuss how to create a custom table, get the OOXML from it, clean it and then be able to insert the table anywhere into a Word document. Background In the previous...
View ArticleNW Chicago JavaScript Meetup: Setting Your Data Ablaze with Firebase – June 21
On June 21st PSCGroup will be hosting the NorthWest Chicago JavaScript Meetup in our offices from 6-8:30pm This month’s speaker is a lecturer at Northwestern, the awesome Mark Thompson For more...
View ArticleOffice Add-Ins: Working with Tables in Word. Part 1: Creation
In this article I will show how the Word JavaScript API can be utilized to add tables to your word document using an Office Add-In. This will be a multi part blog post as there are a lot of nuances and...
View ArticleOffice Add-Ins – JavaScript control over the Content Control lock in a Word...
In this article I will show how easy it is to programmatically lock and release the lock on a content control in a word document. This is very helpful when you are populating regions of a document but...
View ArticleUsing an Office Add-In to search and replace data in a Word Document
In this article I will demonstrate how we can use an Office Add-In to perform simple search and replace function within a Word document. This is particularly useful when you want to use an external...
View ArticleIBMSBT in XPages: Tagging a file
In this article I will show how to tag a file in IBM Smartcloud using the JavaScript API. Introduction Following on from the previous article on how to load a file into Smartcloud we will start from...
View ArticleThe two sides of the incremental operator in JavaScript ++
I learned this last week, possibly highlighting my non-classical programming training. I have never come across this in all my years of JavaScript and apparently it is pervasive in other languages such...
View ArticleHow to add icons to individual items in a Select2 multi-value field
Select2 is one of the best user interface enhancers I have come across – if you do not know what it is then you need to go play with it. It transforms SELECT boxes into dynamic, stunning, interactive...
View ArticlePrototypal inheritance of SSJS across the whole server in XPages
A friend asked me the other day how would I determine where a string lay within a JavaScript Array. I of course answered – “it depends! If you are using newer IE or a non-crappy implementation of the...
View ArticleSorting an unsorted XPages document collection based on a date field
In one of my recent applications I had a requirement to return the top 500 search results, but sort them by a specific date field on the document, in descending order. Due to the size of the database...
View ArticleMustache.js – How to create a client side Repeat control in XPages
Whether or not you realize it, everyone who uses a repeat control in XPages development is actually using a server-side template. Let me demonstrate the concept…. We create an object through many...
View ArticleTroubleshooting JavaScript library errors in XPages
Coincidentally on three separate occasion, with three different customers/developers using three different libraries I encountered the same issue last week. I am going illustrate the process I go...
View ArticleRemove all classes using dojo and jQuery
One of last week’s challenges on the side was to take this Connections wiki page and make it readable on a small screen – if you drag the right hand side over to the left you will see that the right...
View ArticlejQuery event delegation
So it turns out that I may have blogged a moment too soon over the weekend…. While the following code works $('.modal').on('shown.bs.modal', function () { $('FORM') .append($('.modal-backdrop,...
View ArticleDecoupling your CSS from your JavaScript, a “well no duh” moment
This weekend I had one of those “oh DUH” moments which I have been struggling with for quite some time. How can I better structure my jQuery selectors and make the code more maintainable? I came across...
View ArticleEXTJS in XPages #13: Totaling your columns with a groupingSummary
In this article I will highlight a feature of the grouping capability – the “summary grouping”. This feature can be easily used to provide column totals on your grouped grid. We are also going to look...
View ArticleUsing Object literal notation to write better JavaScript in your XPages
In this article I will discuss one of the development pattern for creating JavaScript functions, Object Literal notation. We will look at the advantages to doing so and look at some of the neat things...
View ArticleWriting a single library for SSJS and CSJS validation – first success
The other day I wrote about my failure to realize that CSJS and SSJS libraries shalt not cross during my attempt to write a single library for CSJS and SSJS validation code. Not to be out done and...
View ArticleWriting a single library for SSJS and CSJS validation – failed attempt #1
In this article I will demonstrate my first futile attempt to consolidate CSJS and SSJS libraries so that we only have to write validation once. I will also discuss JavaScripts Closures which unless...
View Article