Obtaining AppServer URL in program customization

Good Saturday EpiLand!

I’m trying to set a string as the appserver URL in a customization on the PO Entry Program. I’m trying to use:
String [varName] = POEntryForm.Session.AppServer;

But when I use this I get:

‘object’ does not contain a definition for ‘AppServer’ and no extension method ‘AppServer’ accepting a first argument of type ‘object’ could be found (are you missing a using directive or an assembly reference?)

Any ideas how I can obtain it? Thanks!

Nevermind, Got it!

 Ice.Core.Session currentSession = (Ice.Core.Session)oTrans.Session;
 string currentAppServer = currentSession.AppServer.ToString();
 MessageBox.Show(currentAppServer);
2 Likes
2 Likes