Code Giveaway

Home » Code Giveaway

LotusScript: Export Contents of a View to .csv file

Yesterday I had a requirement to export a couple of views to csv files. We’ve done similar exports before, usually specific to the particular functions, so have used the traditional file handling functions that have been around for years – Open, Input (for reading), Write, Close. On this occasion, because I was exporting two views …

LotusScript: Export Contents of a View to .csv fileRead More »

Dojox Charting Tutorial – Part Three: Column and Bar Charts

In Part One I have given some background and generic code quired on any page showing a dojo chart. In Part Two I added a series using javascript onto my XPage and generated a pie chart. In Part Three I will cover the other two chart types shown on my first demo page, column charts …

Dojox Charting Tutorial – Part Three: Column and Bar ChartsRead More »

Dojox Charting Tutorial – Part One: Background and Generic Code

At Intec we have a number of applications that have included charts for some time, whether for dashboards or other reporting. At the time the we used haneng charts, because we didn’t have the expertise in house to develop anything as good or better. The product provided what we needed and still does. But as …

Dojox Charting Tutorial – Part One: Background and Generic CodeRead More »

Audit Comments Custom Control: Enhancement

A couple of weeks ago I posted on my blog an Audit Comments Custom Control for XPages, which launches a dijit dialog for audit comments when editing a document, and passes the value of the field back to the underlying DominoDocument data element. This simulated finctionality I had previously used in the Notes client for logging …

Audit Comments Custom Control: EnhancementRead More »

Audit Comments Custom Control

As part of a current XPages project we had the need to capture comments from the user when they edit certain documents. Similar functionality was developed for a Notes Client application before I joined Intec, using a dialog box in the PostOpen / QueryModeChange event to force the user to enter comments. My intention, therefore, …

Audit Comments Custom ControlRead More »

XPages: Validation for Radio Buttons, Check Boxes and List Boxes: Part Six

Option Four Option Four seems quite convoluted, but is essentially a simple principle. We use server-side javascript in the beforePageLoad event to set viewScope variables for each of the radio button, check box and list box mandatory questions we want to check against. We then use the onClick event to trigger a partial refresh and …

XPages: Validation for Radio Buttons, Check Boxes and List Boxes: Part SixRead More »

XPages: Validation for Radio Buttons, Check Boxes and List Boxes: Part Five

Option Three is a modification of Option Two, which reproduced the client-side validation available for other XPages controls, with a javascript alert. At this point I should add some background to the application I was working on. The application in question is a major upgrade of our enterprise feedback tool, EFT, which added in Dojo styling, used …

XPages: Validation for Radio Buttons, Check Boxes and List Boxes: Part FiveRead More »

XPages: Validation for Radio Buttons, Check Boxes and List Boxes: Part Four

Update I’ve now got everything working, got answers to my last blog post, and worked out the various Domino version differences affecting this all. So before I continue with Option 3 and Option 4, here’s an update on where we are. Option 1 used the out-of-the-box server-side validation for radio buttons, check boxes and multi-value …

XPages: Validation for Radio Buttons, Check Boxes and List Boxes: Part FourRead More »