CTO Blog

As I mentioned earlier, this post will show how to create and use a GiftWorks Addin of your own. I will not go into too much detail about how an addin is written in this post. I will describe the internal of an addin with the next post.

what is a giftworks addin

Strictly speaking, an addin can be as simple as a text file written in Notepad. This file contains instructions that GiftWorks reads to expose custom functionality. The addin file can be located on your computer or it can be located on a remote server somewhere on the internet. GiftWorks doesn't care. The only constraint about using an addin that is located on a remote server is that you need to be connected to the internet in order to load that addin.

the helloworld addin

For this discussion I will use an extremely simple addin. In fact, this addin is so simple it doesn't do anything useful (besides demonstrating how to work with GiftWorks Addins). Most programming examples start with a "HelloWorld" example, which is what I will show here. This example just inserts a menu item called "Hello World" on the start page of GiftWorks. When you click on the menu item, it pops up a message. You can probably guess what that message says.

You can download the HelloWorld addin here: http://daveweaver.net/media/downloads/HelloWorld.xml. If you click on this link it will open up in your browser. Most browsers will show the contents of the addin file. Like I said, I will explain this stuff in a later post.

let's install it already

If you have GiftWorks with Update 3 installed (requires version 2.0.80.00 which will be publicly released at the end of February) you will have an Addin Manager which can be launched from the Help menu. Launch that now.

addin-manager.JPG

The Addin manager shows what addins you have installed. You should see nothing installed at this point. To install the HelloWorld addin, simply copy the URL above and paste it into the top text box. Click the Install button and you should see the addin show up in the list.

addin-manager-installed.JPG

The checkbox next to the addin name just indicates the addin is loaded. You can have addins installed but disabled which effectively turns them off. Once you see the HelloWorld addin installed and loaded, click the Done button. That's all that is involved with installing a remote GiftWorks Addin. To install an addin that is located on your computer, simply enter the filename of the addin and click the Install button.

make it do something

Now that the addin is installed you can use it. Don't get too excited, this addin doesn't do too much. In GiftWorks, make sure you are signed in, then click on the Home button at the top-left to go to the start page. On the start page you should see Hello World listed on the left menu like below. Click the menu and you will see the message.

addin-installed.JPG

what's next

Like I said, not very exciting, but this is very powerful functionality we are exposing to our customers. The addin we've just installed is simple, but is only the tip of the iceburg as to what it is capable of doing. Please stay tuned as I go deeper with my examples. Go back into the Addin manager to uninstall the addin. Or if you are familiar with programming and would like to try some stuff on your own, download the HelloWorld addin and try your hand at coding your own. I haven't given you much information to go on at this point, but that is coming.

« Cool Things Coming | A Real World Example »

Related Posts:
GiftWorks 2008 Standard Ships
GiftWorks on TechSoup
February 17 2006
Comments [0]
Filed under:


Want More? Try browsing our other Mission Research developer blogs...
Steve Fafel, Mike Greineder, Jonny Leaman

Flickr Show

Past Articles


Ads



Other Links