Welcome to Forums Sign in | Join | Help | Forums
in Search





Make the world a better place.

VB Script Update Using API

Last post 01-22-2008 3:01 PM by Joe Sullivan. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 01-17-2008 6:29 PM

    VB Script Update Using API

    Is there a way to update the VB script via the RE API instead of directly though the RE VBA interface?
  • 01-18-2008 4:30 AM In reply to

    • David Zeidman
    • Top 25 Contributor
    • Posts 164
    • Organization: Zeidman Development
    • Products:  The Raiser's Edge

    VB Script Update Using API

    I think that you will have to give some more details. From the way you word I interpret it like this. You would like to update the scripts that you currently have through Visual Studio and the RE API rather than going into the Raiser's Edge VBA interface. The quick answer is probably not. However I should be asking you why you want to do this. Again I can guess at a couple of reasons: 1. You do not want to edit the VBA environment directly on live so that it affects everybody straight away. - You can always set up a development environment (see the following - http://www.re-decoded.com/2007/08/a-non-production-database/  ) or alternatively use a VBA DLL instead (see the help files) 2. You want to use Visual Studio and the .NET environment for superior code editing etc. - While you can use .NET to create plugins and applications you cannot use it to write the event driven scripts that sit in the VBA environment (at least you cannot easily do it) Anyway enough of me trying to interpret let us know your intentions and we can better advise. David Zeidman Development http://www.zeidman.info  Check out my RE API blog http://re-decoded.com
    David Zeidman
    Zeidman Development
    http://www.zeidman.info

    Check out my RE API blog
    http://www.re-decoded.com
  • 01-22-2008 3:01 PM In reply to

    VB Script Update Using API

    There is really no difference in the API and VBA coding. You could probably cut and paste most of your code into VB.Net and it would function the same way. The difference is that you have to initialize the API (which essentially logs you into RE with a specified user) and when initializing RE objects get the session context from that api object. You will of course not be able to work off of RE events like the "on save." There's no way to avoid accessing those through the VBA. I know we are working on a way for those triggers to call our .net code but that is a little more involved. It really does depend on what you are trying to accomplish but as far as converting code really it's just initializing RE objects through the api object instead of the RE Application object.
Page 1 of 1 (3 items)