09-02-2009 11:07 AM
Hi,
What I am missing?
I have a .NET Extension application and I am trying to get SecCodeID for the CurrentUser.
SalesLogix.SlxApplication2 slxApp = new SalesLogix.SlxApplication2();
string strUserID = slxApp.BasicFunctions.CurrentUserID();
string strSecCodeID = slxApp.Users.Item(strUserID).DefaultSecCodeID; -- fails here
the applications fails:
'SalesLogix.Users' does not contain a definition for 'Item' and no extension method 'Item' accepting a first argument of type 'SalesLogix.Users' could be found (are you missing a using directive or an assembly reference?)
I referenced
Sage.SalesLogix.NetExtensions.Core.dll (7.5.1)
Sage.SalesLogix.NetExtensions.Framework.dll (7.5.1)
SalesLogix Library
thanks
01-19-2010 08:16 AM
There is no "Item" method on the SalesLogix.Users object. Instead, use
slxApp.Users[strUserID].DefaultSecCodeID;