Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, May 3, 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!
 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: Using A Date In ReportAddCondition
Vaughn Poulson
Posts: 32
 
Using A Date In ReportAddCondition Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Feb 15 1:05 PM

I can't figure out how to add a date to crystal report condition


Using the following code


Application.BasicFunctions.ReportAddCondition "slxEquipmentExpenseByAPAndTicket:NEEDEDBYDATE", ">", #2015/1/1 12:00 AM#, "DateTime", ""


I get the error 


Error inf formula Record Selection:


'({SLXEQUIPMENTEXPENSEBYAPANDTICKET.NEEDEDBYDATE}>'1/1/2015')'


A date-time is required here.


When i launch the report.  I've tried different date formats and different data types but still can't get it to work.

[Reply][Quote]
Norman Rice
Posts: 5
 
Re: Using A Date In ReportAddCondition Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Feb 15 11:00 AM

I am having the same issue trying to pass an integer


Error in formula  Record Selection: 


'({INVTRSLN.STAGEBATCHNUM} = '2')'


A number is required here.


----


    dim intStageBatchNum


    If Application.BasicFunctions.GlobalInfoExists("gStageBatchNum") Then


        intStageBatchNum = Application.BasicFunctions.GlobalInfoFor("gStageBatchNum")


        Application.BasicFunctions.ReportAddCondition "INVTRSLN:STAGEBATCHNUM"," = ", intStageBatchNum , "Integer", ""


    End If


 


 


 

[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/3/2024 8:08:35 AM