Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, July 5, 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!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: Problem with remote user and Department
Patricia Capuz
Posts: 49
 
Problem with remote user and DepartmentYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 May 08 11:38 AM
Hello everyone,
I have a problem

I created a Form that has different functions depending on which department or group the logan user belongs.

I do this validation on a global variable based on a query from seccodejoin and seccode tables.

This works correctly via lan(SalesLogix Client), but testing in remote client, I realized that seccodejoin table never synchronize its data, for this reason the global variable is not loaded and validation does not work.

Maybe someone has an idea what's going on and how I can resolve it.

Thank you for your help.

Patricia
[Reply][Quote]
Dan Carvin
Posts: 227
 
Re: Problem with remote user and DepartmentYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 May 08 12:15 PM
If your users have their correct departments in their SLX profiles I might get the userid with
Application.BasicFunctions.CurrentUserID and use the ID to look up the department in userinfo.department

[Reply][Quote]
Patricia Capuz
Posts: 49
 
Re: Problem with remote user and DepartmentYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 May 08 1:01 PM
Thaks Dan

That you say is rigth, but my problem is when I working with groups. Group user information is not store in userinfo table. I do the Following

Function IsUserFrom(strDptoTeam,strUID,strTipo)
dim str,sql

sql = "select parentseccodeid from SECCODEJOIN sj where childseccodeid = '"&Application.Users.Item(strUID).DefaultSecCodeID&"' and parentseccodeid <> childseccodeid and seccodetype in ('D','G')"
sql = "select seccodeid from seccode where seccodeid in("&sql&")"

sql = "select parentseccodeid from SECCODEJOIN where childseccodeid In ("&sql&") "

IsUserFrom = Nregistros("seccode","seccodeid in("&sql&") and seccodedesc = '" &strDptoTeam & "' and seccodetype = '"&strTipo&"'")>0

end Function

Where strTipo is 'D' or 'G' to identify if is department or group.

My problem is how to know what group user belongs in remote clients because seccodejoins don`t sync data
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Problem with remote user and DepartmentYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 May 08 2:22 PM
So you're just trying to determine if a user is a member of a team or department? You don't need seccodejoins for that. Here's a sample: http://customerfx.com/pages/crmdeveloper/2003/11/19/39084.aspx

-Ryan
[Reply][Quote]
Patricia Capuz
Posts: 49
 
Re: Problem with remote user and DepartmentYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 May 08 6:05 PM
Hi Ryan,

Thanks for your help, It was very usefull and very simple, I didn't know that. I solve the problem


Thank you so much.

Patty
[Reply][Quote]
Bob (RJ)Ledger
Posts: 1103
Top 10 forum poster: 1103 posts
 
Re: Problem with remote user and DepartmentYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 May 08 3:37 PM
Quote:
Originally posted by Ryan Farley

So you're just trying to determine if a user is a member of a team or department? You don't need seccodejoins for that. Here's a sample: http://customerfx.com/pages/crmdeveloper/2003/11/19/39084.aspx

-Ryan

... and seccodejoins table is empty on remotes (and remote offices
--
RJLedger - rjlSystems
[Reply][Quote]
Nicolas Galler
Posts: 93
 
Re: Problem with remote user and DepartmentYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Sep 08 11:45 AM
Is it possible to determine whether the user is a "direct" member (i.e. whether he was added to the team as an individual rather than via a sub-team) without using SECCODEJOINS?
[Reply][Quote]
Bob (RJ)Ledger
Posts: 1103
Top 10 forum poster: 1103 posts
 
Re: Problem with remote user and DepartmentYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 20 Sep 08 8:06 AM
Nope....
Only the (wg)Admin app uses SECCODEJOINS. It's never used anywhere else.. including the SalesLogix Windows, Mobile or Web Client. They all use the "flattened" SECRIGHTS.
[Reply][Quote]
Nicolas Galler
Posts: 93
 
Re: Problem with remote user and DepartmentYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 20 Sep 08 8:24 AM
Right... that is what I thought... thanks!!
[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): 7/5/2025 5:18:40 AM