Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, February 23, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Web Forums - SalesLogix Web Platform & Application Architect
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: AccountingUserID Field Usage in SLX Web 7.2
Ezi Porbeni
Posts: 11
 
AccountingUserID Field Usage in SLX Web 7.2Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Jul 08 3:56 PM
For Dynalink v7.0, part of the implementation calls for setting up MAS-SLX users by entering the installation path for MAS in the Accounting ID field on the SLX user profile. This field is the (string type) UserInfo:AccountingUserID field in the database.

In SLX Web 7.2 that UserInfo:AccountingUserID field is a property that is not "included" in the userInfo entity in AA; as are all other ID fields (several addressID fields and the userID field - BUT they are all SLX standardID data types) in that entity. "Including" any of these fields (then CTRL-Build Interfaces, Build and Deploy web) causes the Web client to throw an app error:- "Exception Details: System.TypeLoadException: Method 'get_AccountingUserId' in type 'Sage.SalesLogix.Security.UserInfo' from assembly 'Sage.SalesLogix.Security, Version=7.2.2.1871, Culture=neutral, PublicKeyToken=null' does not have an implementation."

My main question:
Does anyone know what this really means, or how to resolve it? Is there more to "including" entity properties that are not included ootb? What I'm trying to achieve is to code a simple business rule that says if the current user is a MAS/SLX user (userinfo. accountingID contains MAS install path) then show certain fields on this form...or not.

Note:
I observed that there is a defined relationship between the User and Userinfo tables called AccountingUser but it is based on (UserInfo.AccountingUserID to User.AdminRole); i.e., joining a text type field to a standardID type field. Seems the idea is that the userInfo.AccountingID field is meant to be used with SLX Admin Roles somehow? It would make sense that the UserInfo.AccountingUser relationship is supposed to be used in lieu of the userInfo.AccountingID field but it doesn't look like that join relationship should work, AND what about Dynalink which uses that userInfo.AccountingID field (with a text value)?

Any one observed this or have any ideas?
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: AccountingUserID Field Usage in SLX Web 7.2Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Jul 08 5:27 PM
It is good practice to hide the ID properties used for relationships so the relationship is used instead of the string id property. KWIM?

For your purpose, couldn't you use the following (didn't test this or anything)?

SLXUserService svc = (SLXUserService)ApplicationContext.Current.Services.Get<IUserService>();
IUser user = svc.GetUser();

if (user.UserInfo.AccountingUser == null)
{
// not an accounting user
}
else
{
// is an accounting user
}


or something?
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 2/23/2025 5:26:13 PM