11/27/2024 4:23:44 AM
|
|
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!
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.
|
|
|
|
Help with Calculated Fieds
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? |
|
|
|
Re: Help with Calculated Fieds
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.
|
|
|
|
Re: Help with Calculated Fieds
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 |
|
|
|
Re: Help with Calculated Fieds
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 |
|
|
|
Re: Help with Calculated Fieds
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) |
|
|
|
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!
|
|
|
|
|
|
|
|