Your own API Tools Class
David Zeidman
When I first started out working with Raisers Edge API I realised that I was reusing many routines over and over and that would it not be better to create my own tools class so that I would not reinvent the wheel. Over the years I have added items to this class that I have found useful and have developed older items in order to do more things. In this post I will share with you some of the items that I find invaluable.
- Loading top level objects (constituents, gifts, etc) and handling the exception when it does not load
- Initialising the API and storing a session context object
- Initialising all the service objects
- Routines to return the fund, campaign, appeal values for a gift as the system is expecting them (long or short values depending on the user’s preferences)
- A .NET List object filled with a code table entries (the equivalent to the COM ones that fills combo boxes etc)
- Creating, Updating and deleting attributes
I have a load of other non-RE related tools too that make life easier.
I would be really interested to hear what others use regularly.
Related posts:
- Filling a .NET dropdown with code table entries One of the good things about the CCodeTablesServer class is...
- Static, Dynamic and User-defined code table entries I regularly use the API help file and the code...
- API 7.82 - The Silent Revolution I normally keep up with the latest changes in the...
Posted in Intermediate |