Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

Using Server Configuration Property in Add-In Framework (5 Comments)

$
0
0

Topic by Stephen Pickett

Content

Hello,

I struggled for about half a day with this as it was undocumented so just wanted to share with everyone:

If you are using server configuration properties within your Add-In to specify configurable properties within the Add-In Manager (see example below) then you may find you wish to use them in setting up objects. I was trying to use it within a UserControl so that when it was created it would programmatically create a connection to the RightNow Web Service.

Unfortunately, it looks like when the control was being created (in the control's constructor) it did not have access to these properties. It seems that these are modified after the constructor is called.

Instead, the solution was to put this code in to its own method and to call this method directly before the web service was required. This may work differently for others but it worked fine for me and so there was no need to find a better location to call it.

If anyone has similar issues please feel free to ask me.

Code Block


Viewing all articles
Browse latest Browse all 2504

Trending Articles