Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, June 7, 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!
 Architect Forums - Controls
Forum to discuss usage & tips for SalesLogix controls and other 3rd party ActiveX controls. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to Controls | New ThreadView:  Search:  
 Author  Thread: setting Grid sql cause error
htet aung
Posts: 14
 
setting Grid sql cause errorYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 06 Nov 07 2:33 AM
grid sql

SELECT A1.C_UPLOAD_SYSTEMXLS_DETID, A1.NRID, A1.DESCRIPTION, A1.PRICE FROM
C_UPLOAD_SYSTEMXLS_DET A1
LEFT OUTER JOIN C_UPLOAD_SYSTEMXLS A2 ON (A1.C_UPLOAD_SYSTEMXLSID=A2.C_UPLOAD_SYSTEMXLSID)
LEFT OUTER JOIN C_CURRENCY A5 ON (A2.CURRENCY=A5.C_CURRENCYID)
LEFT OUTER JOIN C_LANGUAGE A4 ON (A2.LANG=A4.C_LANGUAGEID)
LEFT OUTER JOIN C_PRICELIST A3 ON (A2.C_PRICELISTID=A3.C_PRICELISTID)
WHERE (A3.C_PRICELISTID='QQF8AA0006BE') AND (A4.LANGDESCRIPTION='ENGLISH') AND (A5.CURRENCYNAME='GBP') AND (A2.DESCTYPE='short')

---
modified sql
SELECT T1.C_UPLOAD_SYSTEMXLS_DETID,t1.NRID,t1.[DESCRIPTION],T1.Price
FROM
(
--------------------------------------------------------------------------------------------------------------------
SELECT T2.C_UPLOAD_SYSTEMXLS_DETID,t1.pos ,t1.C_PRICELISTID,t1.NRID,t1.[DESCRIPTION],t1.DescType,T2.price,T1.Lang,T2.currency
FROM
( SELECT T2.C_UPLOAD_SYSTEMXLS_DETID,T1.C_PRICELISTID,T1.DescType,T1.Lang,T1.currency,T2.NRID,T2.[DESCRIPTION],T2.PRICE,T2.POS
FROM sysdba.C_UPLOAD_SYSTEMXLS T1
LEFT OUTER JOIN sysdba.C_UPLOAD_SYSTEMXLS_DET T2 ON T1.C_UPLOAD_SYSTEMXLSID = T2.C_UPLOAD_SYSTEMXLSID
)T1

INNER JOIN

( SELECT T2.C_UPLOAD_SYSTEMXLS_DETID,T1.C_PRICELISTID,T1.DescType,T1.Lang,T1.currency,T2.NRID,T2.[DESCRIPTION],T2.PRICE,T2.POS
FROM sysdba.C_UPLOAD_SYSTEMXLS T1
LEFT OUTER JOIN sysdba.C_UPLOAD_SYSTEMXLS_DET T2 ON T1.C_UPLOAD_SYSTEMXLSID = T2.C_UPLOAD_SYSTEMXLSID
)
T2 ON t1.nrid = t2.nrid

WHERE T1.C_PricelistID = 'QQF8AA0006BE' and t1.descType = 'short' and T2.C_PricelistID = 'QQF8AA0006BE' and t2.descType = 'short'
--------------------------------------------------------------------------------------------------------------------
)T1

LEFT JOIN sysdba.c_language T2 ON T1.lang = T2.c_languageid
LEFT JOIN sysdba.c_currency T3 ON T1.currency = T3.c_currencyid

WHERE
t2.langdescription = 'English' and t3.currencyname = 'usd'


it show

An error occurred execution active form script
invalid column name 'C_UPLOAD_SYSTEMXLSID'

help me
[Reply][Quote]
Vladimir
Posts: 93
 
Re: setting Grid sql cause errorYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 06 Nov 07 2:43 AM
Run modifyed sql in ms sql query analyzer. If error will not occure then slxprovider does not support this sql.
[Reply][Quote]
htet aung
Posts: 14
 
Re: setting Grid sql cause errorYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 06 Nov 07 2:51 AM
in query analyzer the modified sql run and show result
[Reply][Quote]
Vladimir
Posts: 93
 
Re: setting Grid sql cause errorYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 06 Nov 07 2:58 AM
So, slxprovider does not support this sql. You can run SLXProfiler (%program files%\saleslogix\) and see which sql executed.
You need exclude instructions like (select ....) t1.
[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/7/2025 1:08:41 PM