Code Snippet

AddIns - Add items to interfaced lists

Within the AddIn Framework there are a number of lists on workspace contexts that contained an Interfaced type (something along the lines of IList<IInc2Contact>). In early versions of the framework there was no way to actually create an instance of the object, so to be able to add a single item to the list you had to implement the whole interface. There is another, largely unknown, option however for a number of supported interfaces:


AddInViewsDataFactory.Create<T>()

Setting custom fields via SOAP - The Better Way

After a fairly significant rant about the difficulties that go into setting a custom field or attribute on a base object
(Setting custom fields via SOAP) I figured it's past due to come up with a reusable solution.

I've created two extension methods for the base RNObject class: GetCustomField(string fieldName) and SetCustomField(string fieldName, object value, DataTypeEnum typeEnum).

Usage is dead simple:

Force Reset and the SOAP API

This error/quirk was originally found by Ben, but I thought it was worth posting about just for future reference.

PHP Stub Classes for Connect PHP 1.1 (Updated)

One of the many wonderful things about IDE"s is the ability for automatic code completion. Many IDE's support this feature by utilizing PHPDoc code commenting, including Netbeans and Eclipse. Oracle Development hasn't been so kind as to offer ConnectPHP class stubs, so up until now code completion for ConnectPHP has been non-existent. This bugged me for a long time, but I finally decided to do something about it; using PHP Reflection, I was able to generate PHP Class stubs for the entire API. By downloading the class stub file and putting it in your IDE project's sources folder, you will magically get code completion for ConnectPHP!

Pages

Zircon - This is a contributing Drupal Theme
Design by WeebPal.