Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, November 25, 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 - Legacy Development
Forum to discuss SalesLogix legacy development including views, scripts, etc.. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to Legacy Development | New ThreadView:  Search:  
 Author  Thread: Find Forms that contain specific fields
Kristi Benton
Posts: 3
 
Find Forms that contain specific fieldsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Apr 13 9:30 AM

 


 


 


I'm trying to find all active forms that have a particular field on them.  Below is my query for finding a field in groups and it works great.  But parsing the blob field for plugin type 28 has not been so successful.  There appears to be another block of binary within it that I think contains the field information.  If anyone knows how to accomplish this I would greatly appreciate the help.


  


  


DECLARE @strFIELD VARCHAR(max)


SET @strFIELD = 'TYPE'


 


with Groups


AS (SELECT PLUGIN.NAME AS GroupName, PLUGIN.FAMILY, plugin.pluginid, DATA as DATA1,


 CONVERT(VARCHAR(MAX), CONVERT(VARBINARY(8000), DATA), 1) DATA


 


FROM PLUGIN with (nolock)


 


LEFT OUTER JOIN SECCODE  with (nolock)


ON PLUGIN.USERID = SECCODE.SECCODEID


 


LEFT OUTER JOIN USERINFO with (nolock)


 


ON PLUGIN.USERID = USERINFO.USERID


 


WHERE PLUGIN.TYPE = 8


and  userinfo.username is not null)


 


,Fields


AS (select


 


GroupName,Family,Pluginid,


 


CASE WHEN DATA LIKE '%SQL.STRING%'


                         THEN


SUBSTRING(DATA,CharIndex('SQL.STRINGS',DATA),CharIndex('KeepAlive',DATA)-


CHARINDEX('SQL.STRINGS',DATA))


 


ELSE NULL END AS SQLString


 


FROM Groups)


 


Select


 


GroupName,Family,Pluginid,@STRFIELD KeyField


 


FROM Fields


 


where SQLString like '%' + @STRFIELD + '%'


Order by GroupName,Family Asc  ;

[Reply][Quote]
John H. Hedges
Posts: 62
 
Re: Find Forms that contain specific fieldsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 Apr 13 2:59 PM
fiogf49gjkf0d

You might try Electrician, though I have to admit it's badly out-of-date at this point. You are correct in that there are hex-encoded blocks within the streamed binaries; Electrician tries to decode them, but doesn't always succeed. Unfortunately, decoding them completely requires access to the source code of the Delphi components being streamed, and that code is of course proprietary. Still, it's better than trying to do it with just a SQL query.


Good luck!

[Reply][Quote]
Kristi Benton
Posts: 3
 
Re: Find Forms that contain specific fieldsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Apr 13 9:36 PM
Thank you, I will give it a shot.
[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/25/2024 2:44:57 AM