Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListCalculated field referencing UDT columnsCalculated field referencing UDT columns
Previous
 
Next
New Post
9/24/2009 12:20 PM
 

Hi

I have a F&L table with two user defined time columns, "Start Time" and "End Time".  I want to show the elapsed time as decimal hours (ie: 90 mins = 1.5 Hrs) between the two times.  How do I reference the "Start Time" and "End Time" values from within the custom field configuration.  ie: What is the format for referencing the values from my time columns ?

Any docs or examples would be most welcome.

 

 
New Post
9/24/2009 2:40 PM
 

Use a calculated column with the following expression:

([End Time_UDT_Ticks]  - [Start Time_UDT_Ticks]) / [Ticks:TicksPerDay] / 24

 
New Post
9/24/2009 9:18 PM
 

This is a perfect example of stuff we need to keep in a wiki somewhere.   Perhaps you would consider http://formandlist.com??
There is sooo  much to learn with F&L (UDT) and everyday there is something useful posted here.  It's getting hard to keep track of it.

 
New Post
9/25/2009 10:28 AM
 

Hi Stefan

The call to [ColumnName_UDT_Ticks] does not return a value. I have created two new (time) columns called Started and Finished. They have default values of 09:00 and 17:30.  I then add a calculated field with the following expression:

([Finished_UDT_Ticks]  - [Started_UDT_Ticks]) / [Ticks:TicksPerDay] / 24

The Output on the edit screen is: 

(([Finished_UDT_Ticks] - [Started_UDT_Ticks]) / 864000000000 / 24)

It seems that my time columns are not returning their values.

Any ideas ?

Cheers - Guy  

 
New Post
9/25/2009 11:06 AM
 

The Edit record screen does not show the results of the calculated column.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListCalculated field referencing UDT columnsCalculated field referencing UDT columns


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out