Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Wednesday, May 1, 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: Plugin Cleanup
Jeff L
Posts: 65
 
Plugin CleanupYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Aug 06 2:39 PM
fiogf49gjkf0d
I found a post on SalesLogixBlog.com to generate a list of plugins that are not released, not the released version or Another plugin with the same type, family, & name is released

I am trying to get a handle on how SalesLogix writes release info to the Plugin table.

Our goal is to remove non used plugins also, but I also want to identify plugins that are only released to 'Retired' users (groups, templates reports etc.).

Can someone provide some input on this or point me to a good resource?

Thanks in advance.
[Reply][Quote]
Timmus Agersea
Posts: 328
 
Re: Plugin CleanupYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Aug 06 2:49 PM
fiogf49gjkf0d
Hey Jeff

Here it the SQL Jeff is talking about:

SELECT
Distinct P.PluginID,
CASE P.Type
WHEN 0 THEN 'Processes, Contact'
WHEN 1 THEN 'Processes, Sales'
WHEN 2 THEN 'Scripts, Legacy Basic'
WHEN 3 THEN 'Forms, Legacy'
WHEN 4 THEN 'Report Profiles'
WHEN 5 THEN 'Scripts, SQL'
WHEN 8 THEN 'Groups, ACO'
WHEN 13 THEN 'Macros'
WHEN 14 THEN 'Menus'
WHEN 15 THEN 'Toolbars'
WHEN 18 THEN 'Images, Bitmap'
WHEN 19 THEN 'Reports'
WHEN 22 THEN 'Forms, Legacy List View'
WHEN 23 THEN 'Groups'
WHEN 24 THEN 'Forms, Legacy Support'
WHEN 25 THEN 'Templates, Mail Merge'
WHEN 26 THEN 'XML Schema'
WHEN 27 THEN 'Scripts, VBscript'
WHEN 28 THEN 'Forms'
WHEN 30 THEN 'Main View'
WHEN 31 THEN 'Global Script'
ELSE 'Unknown'
End Type,
P.Family, P.Name
FROM
Plugin P
LEFT JOIN Plugin Child
ON Child.BasedOn = P.PluginID
INNER JOIN
(
SELECT
Parent.Type, Parent.Family, Parent.Name
FROM
Plugin Parent
INNER JOIN Plugin Child
ON Child.BasedOn = Parent.PluginID
) Released
ON Released.Type = P.Type
AND Released.Family = P.Family
AND Released.Name = P.Name
WHERE
P.BasedOn IS NULL
AND Child.PluginID IS NULL
ORDER BY
P.Type, P.Family, P.Name


To identify plugins that are released you can use this


SELECT
P.PluginID
FROM
Plugin P
WHERE
P.BasedOn IS NOT NULL


This will give you all the plugins that are released to an individual user that has been retired (I believe Type = R means retired. I am too lazy to check )


SELECT
P.PluginID
FROM
Plugin P
INNER JOIN UserSecurity US
ON US.UserID = P.UserID AND US.Type = 'R'
WHERE
P.BasedOn IS NOT NULL


Does that help?

Timmus
[Reply][Quote]
Jeff L
Posts: 65
 
Re: Plugin CleanupYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Aug 06 3:03 PM
fiogf49gjkf0d
Thanks Tim.

This will keep me busy for a little while
[Reply][Quote]
Jeff L
Posts: 65
 
Re: Plugin CleanupYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Sep 06 11:37 AM
fiogf49gjkf0d
We have built a process to clean up old non released plugins.

Works great with one exception.

We have a vb script plugin created by someone long ago. It is referenced by some released forms.

Viewing the lists of VB Scripts in SalesLogix Architect the script in question has a check mark in the 'Dev' column but no check mark in the 'Rel' column. Right click and select 'Release Plugin' shows that it is released to 'Everyone'.

Viewing the record in the PLUGIN table, shows Released = F and Dev = T.

How is it that SalesLogix treats this as released (all users can access the tabs using this script) and yet have it marked as Not Released?

Removal of this plugin causes the error message 'included script ... missing'

We have noticed some other issues regarding releasing of plugins.

Does anyone have any input ?
[Reply][Quote]
Timmus Agersea
Posts: 328
 
Re: Plugin CleanupYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Sep 06 1:16 PM
fiogf49gjkf0d
Sounds like the Released flag got out of whack somehow. This is why I do not rely on any of the boolean flags in the plugin table. If you go through the sql provided you will see that the way to determine if a plugin is released is that its PluginID will be another record's basedon value. Make sense?

To rectify the boolean issue, just release the plugin again. It is already released but by doing so, the architect will correctly set the boolean flag to true.

Timmus
[Reply][Quote]
Jeff L
Posts: 65
 
Re: Plugin CleanupYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Sep 06 1:13 PM
fiogf49gjkf0d
Thanks Tim

We have stumbled on another problem and would like to know if anyone else has see this.

We have a number of PLUGIN records where the BasedOn field points to a Plugin that has a different name. Most are of type 19 (Reports). A couple have crossed types, A type 8 (Group) pointing to a type 28 (Form).

Has anyone else seen this? Any ideas as to how it happens?

Question:

When a user selects a plugin released to them (i.e. a report), Which plugin record's DATA field accessed. The 'Parent' original plugin with the NULL BasedOn value, or the DATA field from the plugin record linked to the user?

PLUGINID NAME BASEDON DATA
p6UJ9A000HS2 Dream Team All Dates BLOB
p6UJ9A000HS3 Dream Team All Dates p6UJ9A000HS2 BLOB



[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): 5/1/2024 8:36:26 AM