Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, November 22, 2024 
 
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 - Controls
Forum to discuss usage & tips for SalesLogix controls and other 3rd party ActiveX controls. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to Controls | New ThreadView:  Search:  
 Author  Thread: How to switch read-only picklist to editable in code
Mary
Posts: 17
 
How to switch read-only picklist to editable in codeYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 27 Nov 06 11:20 AM
fiogf49gjkf0d
Hi,

I need to set the picklist read-only for normal users and editable for other uers in code. Which property of the picklist can I use to switch read-only picklist to editable in version 6.1? Please help!

Thanks in advance

Mary

[Reply][Quote]
Jeremy Brayton
Posts: 491
Top 10 forum poster: 491 posts
 
Re: How to switch read-only picklist to editable in codeYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 27 Nov 06 1:57 PM
fiogf49gjkf0d
It's impossible.

The "users can edit items" checkbox in the picklist manager basically gives every user their own "copy" of the picklist. They have any items created by admin (default), and it allows users to create values under their userid. User created items are not shared among users. There's no way to check the box and somehow disable the Add/Edit/Delete buttons when a specific user goes to choose a value for the picklist. It's an all or nothing thing that applies to everyone equally.

The only way to achieve that functionality is to recreate the picklist manager (or specifically the picklist picker window) from scratch. It's entirely doable from my understanding since we're only talking about SQL records (no BLOB data). In fact, I've had it on my plate to do whenever I had time for the simple fact that it would be the only way to allow a user the ability to edit picklists from within the client. Otherwise, it requires the picklist admin role and administrator.exe installed on their computer which annoys me. To top it off the picklist admin role gave users the ability to add and delete entire picklists, not something I'd want to grant to potential disgruntled employees.
[Reply][Quote]
Carla Tillman
Posts: 290
 
Re: How to switch read-only picklist to editable in codeYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 27 Nov 06 6:51 PM
fiogf49gjkf0d
Jeremy is correct; you can not do it the way you proposed. However, there are other options available to you if you need it bad enough. Neither of these are exactly 'recommended programming' but they will do the job.

  • Create your own control that is on the OnLoad. This one requires hardcoding the values in the form. Not real fun for updates.
  • Create 2 picklists (exact verbiage one editable one non-editable) ; add both to form, Set visibility according to user. Think double maintenance.
  • [Reply][Quote]
    Mary
    Posts: 17
     
    Re: How to switch read-only picklist to editable in codeYour last visit to this thread was on 1/1/1970 12:00:00 AM
    Posted: 28 Nov 06 10:12 AM
    fiogf49gjkf0d
    Thank you very much for all your responses. I got the ideas from your guys.

    Mary
    [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 © 2024 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): 11/22/2024 10:55:26 PM