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 ListShow records for last 12 hoursShow records for last 12 hours
Previous
 
Next
New Post
3/15/2012 2:28 AM
 

Hello

I am trying to use FnL to create a log book for night security. The security people would be entering records between 8PM and 4AM. I would like the list view to display only the records entered on the present work period. 

Not sure how to write a filter statement that limits the records to those of the last 20 hours.

Thanks in advance
Peter

 

 

 
New Post
3/16/2012 9:00 AM
 

Hi Peter..
For a forms list we are showing documents which have their dates within the last 90 days.

I'm not sure how'd you configure this for 20 hours, but I think changing the 90 (90 days) to 1 might allow you to show the last 24 hours for a quick fix.

Here is our filter statement:
[Ticks:Today] - [Date of Recording_UDT_Ticks] < (90) * [Ticks:TicksPerDay]

Hope this helps.. -Jeff

FYI: If you look at the available tokens, this will help with the ticks:
[DateTime:Now]     Current Date and Time
[Ticks:Now]     CPU Tick Count for Current Second
[Ticks:Today]     CPU Tick Count since Midnight
[Ticks:TicksPerDay]     CPU Ticks per Day (for calculations)

Also take a look at the Hidden Columns Reference for getting dates information:
ColumnName     +_UDT_Original     +_UDT_Caption     +_UDT_Value     +_UDT_Ticks          +_UDT_Url
Date                       -                                 -                                 Localized Date    DateTime in Ticks   -
DateTime             -                                  -                                Localized Date     DateTime in Ticks    -


 
New Post
3/19/2012 10:49 AM
 

Thanks Jeff

I haven't made it work yet but the [TicksPerDay] opens lots of possiblities.

P

 
New Post
5/21/2012 3:45 PM
 

Did it!

[TICKS:NOW]-[Created at_UDT_TICKS] < [Ticks:TicksPerDay] * (.66)  

the (.66) is 18 hours

 For past days

[Ticks:Now] - [Created at_udt_ticks] <= [Ticks:TicksPerDay] * (n) AND [Ticks:Now] - [Created at_udt_ticks] >= [Ticks:TicksPerDay] * (n-1)   

Where n= number of days ago

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListShow records for last 12 hoursShow records for last 12 hours


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