Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, July 5, 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 - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: Odd Date Behaviour
Matthew Rose
Posts: 12
 
Odd Date Behaviour Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Apr 11 6:19 AM

We currently have a separate database that we use to store data in that is downloaded from our website, this data we wish to import into SalesLogix.  We have developed a tool to do this, however when we put it into production we are having issues.

Whenever we select a record from a particular table with a Date in it does not return the row, I have produced some simple code to prove this theory;

         dim ssQL,objSLXDB,SLX_DB,objRSFields

         sSQL = "select * from webprops_asset where assetid = '3865'"
         
         Set objSLXDB = NEW SLX_DB
         Set objRSFields = objSLXDB.GetNewRecordSet
         objRSFields.Open sSQL, objSLXDB.Connection
         msgbox objRSFields("Assetmodel")
         objRSFields.Close

The webprops_asset is a view of the external database (definition below)

[dbo].[asset](
    [assetID] [int] IDENTITY(1,1) NOT NULL,
    [assetEntityID] [int] NULL,
    [assetManufacturer] [varchar](64) NULL,
    [assetModel] [varchar](64) NULL,
    [assetDerivative] [varchar](64) NULL,
    [assetCapCode] [varchar](64) NULL,
    [assetImport] [varchar](64) NULL,
    [assetImportType] [varchar](64) NULL,
    [assetDrive] [varchar](64) NULL,
    [assetType] [varchar](64) NULL,
    [assetMileage] [varchar](64) NULL,
    [assetChassisNumber] [varchar](64) NULL,
    [assetExtras] [varchar](64) NULL,
    [assetRegNumber] [varchar](12) NULL,
    [assetRegDate] [datetime] NULL,
    [assetCapValue] [float] NULL,
    [assetClass] [varchar](32) NULL,
    [assetUseage] [varchar](32) NULL)

When using the OLE Database connection all is good, works fine! However when we use the SQLNative Client it will not return the row unless we omit the assetRegDate field from the query.  

Any ideas? Has anyone else expeianced this?






[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Odd Date Behaviour Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Apr 11 8:32 AM

The SalesLogix provider will adjust for GMT (unless the field is setup for SLX not to do so), so it is likely that you may not be taking that into account.


 

[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): 7/5/2025 9:07:10 AM