Monthly ArchiveJune 2009
Web 19 Jun 2009 11:18 am
Using a fake session for testing
I’ve been working on an application that uses Habanero and Visual WebGui (VWG) to provide a simple website that lets a department manage a list of facilities. At Chillisoft we use test-driven development to build robust applications, and we attempt to get our business, logic and presentation layer as close to 100% test coverage as possible.
I was writing tests for a section of code that calls through to VWGContext.Current.Session, which effectively allows you to store and retrieve session variables in the same way you do in ASP.Net. The trouble is that Current returns null because no web environment has been launched.
Continue Reading »
C# & Microsoft & Software 18 Jun 2009 05:46 pm
Guji in Habanero Land #4: Using XSLT and XML to list Business Objects in a Word Document
Use cases are an important part of the communication between a client and a developer, or a user and a business analyst. That much is evident, since they are written in plain English and describe the business process in detail from the user’s point of view. All this is great except these use cases seem to create a huge administration overhead. What’s that I hear you say? “That’s the Project administrator/co-ordinators job”? No, we don’t have such a luxury! (We chose premium filter coffee and an espresso machine over having a co-ordinator).
Habanero 12 Jun 2009 10:43 pm
Habanero 2.3.0 is out!
Habanero version 2.3.0 is the most stable and powerful version of Habanero available and the development team believes this version is going to knock the competition off the shelves. On top of a range of performance improvements, bug fixes, dependency inversions and extended test coverage, you’ll get new features like serialisation of BusinessObjects and a bunch of nifty UI tools.
What’s the Big Deal?
What sets Habanero apart from other data or ORM frameworks?
Continue Reading »
Software development & Web 09 Jun 2009 10:20 am
The most useful keyboard shortcut you never used
Learning to use keyboard shortcuts is a double-edged sword. On one hand, you get fed up with how hard it is to pull off a task and you feel a certain sense of triumph when you find a shorter way of doing a repetitive task. On the other blade, becoming more efficient in what you do is part of the service to your employment contract. You’re getting paid to perform a quality service as quickly as you can.
So what then is “the most useful keyboard shortcut you never used”…
Continue Reading »
Web 05 Jun 2009 02:37 pm
Active Reports rapid Xml processing options
Active Reports provides the XMLDataSource option for sourcing your data from xml. My knowledge of all its ins and outs is not substantial, but I ran into two significant problems in a recent project which led me towards an alternative, innovative approach.
Continue Reading »
ASP.Net & Web 05 Jun 2009 12:37 pm
Active Reports: Displaying reports in a browser
Our client required a modification to an existing web solution that displayed confidential results in html format, which could be printed from the results page. The data was sensitive and was being forged, so we looked at adding a watermark. This required moving across to using reporting rather than html, so we started building up a report structure.
I was very pleased to find that Active Reports provided a WebViewer control, especially since it gave you the option of either displaying reports with an ActiveX option or with a Adobe Reader option. My assumption was the latter required extra processing to convert a document to PDF first. However, the ActiveX option requires the client user to have internet access to download the plugin, whereas the Adobe browser plugin can be installed from a downloadable installer that can be run on any PC.
Continue Reading »
.NET & Chillisoft & Databases & Microsoft 02 Jun 2009 03:04 pm
Microsoft SQL Server Reporting Services “Object reference not set” error
I had a system deployed to a client site, and everything was working perfectly. The system administrator at the client site did a few things on the server, and next thing the Reports in the web site that use Microsoft SQL Server Reporting Services were giving an error.
Nothing had changed that should have affected the site! So, what could be causing the error?
The error in the report viewer was: “Object reference not set to an instance of an object.”
That’s an all too familiar error to anyone that has programmed in .NET and it is always slightly amusing to find it in someone else’s released program. The other day I got one from SQL Server Administrator when I clicked on something in the tree view on the left (just after I had freshly installed Reporting Services). Aha, so they are not infallible! A slight grin etched itself across my face. Well, anyway, the solution was a tried and tested standard Windows solution… Restart the PC. Amazing how often that works with Microsoft stuff hey! But in my case I was getting the error in my application, in a section that I had no control over, so how could I save myself this embarrassment?
Continue Reading »
