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!
 Data & Imports Forums - T-SQL & Queries
Forum to discuss general T-SQL questions and help with queries related to SalesLogix data. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to T-SQL & Queries | New ThreadView:  Search:  
 Author  Thread: Merging Duplicate Picklist
Ben
Posts: 2
 
Merging Duplicate PicklistYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Apr 14 11:57 AM

I'm a noob with SalesLogix I apologize in advance if I get some of the SLX specific lingo wrong.


We use Web exclusively except for an admin(not me) that uses the local client.


 


We have some duplicate picklists for a field on a tab in Contacts.


I can find the picklists that are duplicate in the database (SQL below), I don't want to create orpan records by just deleting some duplicate from the PICKLIST table.  I don't know how these relate back to the contact record so I can merge them before deleting the unused picklist rows.  


 


 



<pre>

DECLARE @pickname VARCHAR(50)


SET @pickname = 'Conference Attended'


 


SELECT TEXT, count(*) FROM [SYSDBA].[PICKLIST]


WHERE PICKLISTID = 


(


SELECT ITEMID FROM [SYSDBA].[PICKLIST]


WHERE text = @pickname


)


GROUP BY TEXT


ORDER BY COUNT(*) DESC 


 


 


[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Merging Duplicate PicklistYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Apr 14 12:48 PM

Outside of Picklists in Tickets......very few Picklist controls link the Picklist ID to the Picklist to retrieve the value.....it's simply datavalues that are stored.....

So simply eliminiating the picklist duplicates will be fine......one caveat.....the ADMIN owned row should NOT be deleted unless it's a duplicate of another owned Admin owned picklist value for the same picklist......All Users see Admin owned rows, plus their User created rows (if any).....so make sure you don't delete the remaining Admin owned picklist item.....

[Reply][Quote]
Ben
Posts: 2
 
Re: Merging Duplicate PicklistYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Apr 14 1:52 PM

Thanks!


 


Looks like IIS needs to be restarted and the broswer history/temp files need to be deleted for web users to see the change.

[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 3:52:48 AM