Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Wednesday, November 27, 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: Help with Calculated Fieds
Darren Savery
Posts: 51
 
Help with Calculated FiedsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Jan 07 5:24 AM
fiogf49gjkf0d
Hi,

I need to create a calculated field but am stuck! I hope it's pretty easy to achieve and i'm prepared to feel small if someone can help me.

I have 2 datetime edit fields - 'start date' and 'end date'. I need to create a 'duration' value that will display the number of days between the end and the start. I tried creating a calculated field using the following formula:

'LOGITECHTICKETEXT.End Date'-'LOGITECHTICKETEXT.Start Date'

However, this does not return a value that is a number of days. Instead, it returns, a value of '08/01/1900'

Can anyone help me?
[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: Help with Calculated FiedsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 20 Jan 07 4:06 AM
fiogf49gjkf0d
Darren

If you are using SQL Server the something like

DateDiff(d,EndDate,StartDate)

Rather than drag/dropping a field - just type the above in the calculation area.

[Reply][Quote]
Darren Savery
Posts: 51
 
Re: Help with Calculated FiedsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Jan 07 3:24 AM
fiogf49gjkf0d
Hi Mike,

Many thanks for the reply. I'll try and get round to working on my little project today and integrate your suggestion :o)

Darren
[Reply][Quote]
Darren Savery
Posts: 51
 
Re: Help with Calculated FiedsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Feb 07 7:52 AM
fiogf49gjkf0d
Hi Mike,

I just got round to trying to create this field. However, i'm a little confused about:

"Rather than drag/dropping a field - just type the above in the calculation area."

What exactly do you mean by this? What calculation area?

Darren
[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: Help with Calculated FiedsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Feb 07 8:12 AM
fiogf49gjkf0d
Ordinarily, you would drag down the fields you need. However, you can just type into the box as well (that's what you need to do)
[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): 11/27/2024 4:36:19 AM