11/22/2024 10:51:44 PM
|
|
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!
Forum to discuss usage & tips for SalesLogix controls and other 3rd party ActiveX controls. View the code of conduct for posting guidelines.
|
|
|
|
How to switch read-only picklist to editable in code
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
|
|
|
|
Re: How to switch read-only picklist to editable in code
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. |
|
|
|
Re: How to switch read-only picklist to editable in code
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.
|
|
|
| |
|
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!
|
|
|
|
|
|
|
|