Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, June 28, 2025 
 
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!
 Web Forums - SalesLogix Web Platform & Application Architect
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: plugin table not accessible to user
chez
Posts: 44
 
plugin table not accessible to userYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Nov 11 9:47 AM
fiogf49gjkf0d

after inserting an opportunity i need to get a pluginid for the salesprocess.


in snippet where it runs i have tried:


hql " select p.PluginId from Plugin where p.Type='1'"...etc


nhibernate.iquery query = session.createQuery(hql)...etc


have also tried


sage platform.iqueryable repoitory enitiyfactory.getrepository<IPlugin>()


criteria.addetc....


both run ok for admin but when log in as user it fails?


though plugin table available to all users?

[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: plugin table not accessible to userYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 26 Nov 11 1:40 AM
fiogf49gjkf0d
When you run SQL through slx it adds security to ensure the user has access to the plugin you are trying to lookup. Make sure the plugin (sales process) is released to everyone.
[Reply][Quote]
John H. Hedges
Posts: 62
 
Re: plugin table not accessible to userYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 26 Nov 11 6:58 PM
fiogf49gjkf0d
That query shouldn't work for ADMIN either - are you sure it actually ran? You aren't aliasing the PLUGIN table reference, and TYPE is an integer, so the "1" shouldn't be in quotes.

Try "SELECT P.PLUGINID FROM PLUGIN P WHERE P.TYPE = 1" instead...?
[Reply][Quote]
chez
Posts: 44
 
Re: plugin table not accessible to userYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Nov 11 5:42 AM
fiogf49gjkf0d

yes does work with or without 1 in quotes for admin


checked salesprocess release to everyone - unreleased it then re-released to make sure


still doesnot work though!!!

[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: plugin table not accessible to userYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Nov 11 6:35 AM
fiogf49gjkf0d

Can you post the full sql you are using? There can be multiple rows for salesprocesses depending on their release state, exclude the "Admin" row.


This is the SQL I use to get a plugin id for a given salesprocess:



 



SELECT PLUGINID FROM PLUGIN WHERE NAME = 'MySalesProc' AND USERID <> 'ADMIN'




 





 





 



 


[Reply][Quote]
chez
Posts: 44
 
Re: plugin table not accessible to userYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Nov 11 6:41 AM
fiogf49gjkf0d

fixed ..decided to make connection as admin just to get plugid then user can do salesprocess etc


Sage.Platform.Data.IDataService service = Sage.Platform.Application.ApplicationContext.Current.Services.Get<Sage.Platform.Data.IDataService>();
//log on as admin!!
    string connectionString ="Provider=SLXOLEDB.1ersist Security Info=True;Initial Catalog=" + service.Database + ";Data Source=" + service.Server + ";User ID=adminassword=\"Danger\"; Extended Properties =\"PORT=1706;LOG=ON;CASEINSENSITIVEFIND=ON;AUTOINCBATCHSIZE=1;SVRCERT=12345;;ACTIVITYSECURITY=OFF;TIMEZONE=NONE\" ";
 
 //open connection
    System.Data.OleDb.OleDbConnection cn = new System.Data.OleDb.OleDbConnection();
    System.Data.OleDb.OleDbCommand cmd = new System.Data.OleDb.OleDbCommand();
 
 try
 {         
        cn.ConnectionString = connectionString;
        cn.Open();
        cmd.Connection = cn;
        string strSQL = string.Format("Select pluginid from plugin where type=1 and name='{0}' and userid='ADMIN'", strText);
        cmd.CommandText = strSQL;
        System.Data.OleDb.OleDbDataReader dr = cmd.ExecuteReader();
        if (dr.Read())
            strPluginId = dr.GetValue(0).ToString();


        dr.Close();
        cmd.Dispose();
        cn.Dispose();
 }
 catch(Exception ex)
 {
  throw new Exception("Can not find pluginid for salesprocess");
 }


 


...then goes onto normal salesprocess stuff creating each record..setting stage..etc

[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: plugin table not accessible to userYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Nov 11 6:45 AM
fiogf49gjkf0d

Yes you are specifically obtaining the Admin release of the plugin. Change it to <> Admin.

[Reply][Quote]
chez
Posts: 44
 
Re: plugin table not accessible to userYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Nov 11 6:52 AM
fiogf49gjkf0d

when salesprocess runs it gets the admin version of the plugin, as a base version , and uses this info to create the salesprocess...

[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: plugin table not accessible to userYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 Nov 11 10:10 AM
fiogf49gjkf0d

USERID is a CHAR(12) field.....which means there is NO value 'ADMIN' ever stored into the database......it's either
LIKE 'ADMIN%' or
= 'ADMIN       ' or
RTRIM(USERID) = 'ADMIN'

[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: plugin table not accessible to userYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Dec 11 6:52 AM
fiogf49gjkf0d

= 'ADMIN' will still work without a ltrim/rtrim etc.


Chez have you change the SQL yet to not look for the admin release of the plugin? The secrights join will stop that record getting to you for anyone other than admin.


 


If you are starting a salesprocess use my sql to get the pluginid then call:



Sage.Entity.Interfaces.ISalesProcesses sp = Sage.Platform.EntityFactory.Create<Sage.Entity.Interfaces.ISalesProcesses>();


sp.InitSalesProcess(pluginId,opportunity.Id.ToString());



 

[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: plugin table not accessible to userYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Dec 11 8:56 AM
fiogf49gjkf0d

Thanks, didn't know the web worked this way for Char(12) properties....I've been bitten enough by this on the LAN side.....and of course been bitten by case sensiTivIty on the WEb sidE.

[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: plugin table not accessible to userYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Dec 11 10:55 AM
fiogf49gjkf0d

It doesn't mind that way directly in SQL also, never noticed this problem in the LAN either. Case sEnsItiviTy on the other hand...

[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 © 2025 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): 6/28/2025 5:37:58 PM