Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, February 22, 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: Incorrect date appearing in datagrid
SLX_Novice
Posts: 246
 
Incorrect date appearing in datagridYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Jul 13 11:26 AM
fiogf49gjkf0d

Hi all.


We have SLX LAN v7.2.1.


We have a table C_myTable that we import some data, one of which is an invoice date field from our ERP software. When I look at SalesLogix table it shows 07/22/2013, but when I look at the record in SalesLogix, it shows 07/21/2013.


What's going on? I'm importing the data via a SQL Server 2000 DTS.


Thank you in advance!

[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: Incorrect date appearing in datagridYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Jul 13 12:07 PM
fiogf49gjkf0d

DTS doesn't take into account the actual UTC time. The provider looks at the date/time and converts it back to local time. You need to alter the colum in sectabledefs to set the DateTimeType to 'D' for this table/column. The SLX provider will then just report what is in the column without converting it to UTC.

[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: Incorrect date appearing in datagridYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Jul 13 12:10 PM
fiogf49gjkf0d

So, assume the col is INVPAID then your SQL would be:


 



UPDATE SECTABLEDEFS SET DATETIMETYPE ='D' WHERE TABLENAME = 'C_MYTABLE' AND FIELDNAME = 'INVPAID'


 


Then restart the SLXServer (or, if you cannot do this then you can simply add DUMMYFIELD to any table, commit it, then drop it - this refreshes the server).


 

[Reply][Quote]
SLX_Novice
Posts: 246
 
Re: Incorrect date appearing in datagridYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Jul 13 12:26 PM
fiogf49gjkf0d

That fixed it. Thanks!

[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): 2/22/2025 9:16:39 AM