Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, June 20, 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: Question: How do you restrict access/visibility to specific fields on a form?
Bailey1
Posts: 57
 
Question: How do you restrict access/visibility to specific fields on a form? Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 Oct 07 8:35 AM
I am new to SalesLogix, and this is my first time using Architect.

I have added 2 new fields to the Account Detail form in SalesLogix 6.1.3, a picklist and a date field. These fields need to be visible and editable by just a select group of sales reps only,
not all sales reps. For the rest of the reps, these fields should not be visible, or at the least, grayed-out and non-editable. How do I accomplish this requirement in SalesLogix?
[Reply][Quote]
Todd Herman
Posts: 52
 
Re: Question: How do you restrict access/visibility to specific fields on a form? Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 Oct 07 9:45 AM
Barbara,

I had a similar requirement in a 6.x version of SLX and the Sales people that needed access fit a specific profile: i.e. They were all "Regional Managers". If you are able to identify the group with a value in their Userinfo, then you can script the Account Detail view, with the approach here:

If currentuserid fits the rules (Title = Regional Manager) Then
field is visible
Else
field is not visible

If you are familiar with scripting you can use that approach and use real code If not, you may want to seek some development help from a vendor. I think either way, for what you're trying to do, some scripting is the easiest way to manage it closely at the user level. If the people aren't able to be grouped together you could create a way to group them from their user profile info...

Hope this helps.

Todd Herman
EPI
[Reply][Quote]
John Foster
Posts: 18
 
Re: Question: How do you restrict access/visibility to specific fields on a form? Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Oct 07 8:04 AM
You can also use Field Level Security - Administrator / Manage / Field Security Profiles if you don't want to use code.
[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Question: How do you restrict access/visibility to specific fields on a form? Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Oct 07 9:49 AM
Too many if's in this approach John.
1. If the table with the additional fields was set to allow FLS.
2. if there isn't a correctly populated SECCODEID field in that table for that record
3. if you have a security profile team "Power Sales Reps" and this team is a member of every Team you have.....
4. Correct Server License to allow FLS?

Much easier to go after, say, UserProfile.UserText1 and look for a key value "SalesAdmin" and script the security......
Much easier to Configure this as well......

I have been burned too many times with FLs over the years/versions.....sure they probably have the kinks worked out by now....but maybe this system doesn't have the Advanced Server license to begin with?
[Reply][Quote]
John Foster
Posts: 18
 
Re: Question: How do you restrict access/visibility to specific fields on a form? Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Oct 07 12:24 PM
I absolutely agree, and don't use FLS myself, but if you want to avoid code, it is the only option.
[Reply][Quote]
Bailey1
Posts: 57
 
Re: Question: How do you restrict access/visibility to specific fields on a form? Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Oct 07 2:05 PM
Thanks to all for the replies. I finally figured out how to get the scripting to work.
[Reply][Quote]
Darren Savery
Posts: 51
 
Re: Question: How do you restrict access/visibility to specific fields on a form? Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 Oct 07 9:19 AM
Glad you got it sorted Barbara.

Not that I need to know myself, but other users of the forums might find it useful to know how you did it? If you used code, how exactly? Just trying to spread the SLX love to one and all...........
[Reply][Quote]
Bailey1
Posts: 57
 
Re: Question: How do you restrict access/visibility to specific fields on a form? Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 Oct 07 11:50 AM
Here's the code:

CurrentUserId = application.BasicFunctions.CurrentUserID
set objCon = Application.GetNewConnection
if ErrorCheck ("Error getting connection information:") > 0 then exit sub

strSQL = "Select DIVISION from USERINFO where USERID = " & "'" & CurrentUserID & "'"
set objRS = objCon.Execute (strSQL)

if ErrorCheck ("Error retrieving division information:") > 0 then
objCon.Close
set objCon = nothing
exit sub
end if

If not objRS.EOF then
Division=objRS.Fields(0).Value
end if

If Division <> "878" and CurrentUserID <> "ADMIN" then
pklTSRType.Enabled = False
dteTSRDate.Enabled = False
End if
[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): 6/20/2025 3:00:38 PM