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 ListPair Values Not WorkingPair Values Not Working
Previous
 
Next
New Post
8/12/2011 2:59 PM
 
Hello..
I have a text box which I have configured for a drop-down list and it has a list of item with values.  This is for the date of a month; 1|1st;2|2nd;3|3rd;4|4th; etc.  I've done the same for the month; 1|January;2|February; etc.  When viewed in the list, I need the information to show up as January 5th, February 23rd, etc depending on what the end-user selects in the drop-downs; thus the reason for the pair values.

As part of the sorting of the list, I'm trying to take the values of these two columns plus the year to create a calculated field which is a date data type to sort the items.

If I set the expression of the calculated column to [Month.Value] + '/' + [Date.Value] + '/' + [Year], I get an error stating that it Cannot find column [Month.Value].

I've tried configuring the value pairs as 1st|1;2nd|2; for the date and Janauary|1;February|2; for the month for testing purposes, but I keep getting the same cannot find column error.

Any ideas on why this isn't working properly?  Did I find a bug?  Thanks..  -Jeff
 
New Post
8/13/2011 5:54 AM
 
  • The definition of the drop down list has no influence to the calculated column
  • A calculated column as DateTime should result in a string like '2009-04-20T15:25:00+02:00', not your American localized date format
  • [Month.Value] + '/' + [Date.Value] + '/' + [Year], can only work if you have columns named Month.Value, Date.Value and Year. The error message tells  that there is at least no column Month.Value
 
New Post
8/13/2011 10:10 AM
 
Hello Stefan..  Thanks for the reply..

I guess I was just misunderstanding the use of the paired values then.

Could I grab the paired values for the month and date to create a date string in the calculated column?  If so, how can I accomplish this to generate the proper date sting?

I'm using the list for archived audio files and the creation date is going to be different than the actual record date.  I need to filter the list to only show that last 90 days of recordings.  Instead of the end-users having to select a date with a date column (it came up when I showed them; "Why do I have to enter the date of the audio files twice?!"), I thought I could use a calculated column to auto-generate a date using the month, date and year values and then filter using this column.

Thanks again for the reply.  -Jeff
 
New Post
8/13/2011 12:06 PM
 
Jeff,
Did you read this thread: Filter only records not older then two months,
Use the  record_date instead of created_at date, set it up as field with type date and remove the caclulated column

 
New Post
8/15/2011 11:18 AM
 
Thank for the reply Stefan..

I have a question, may you better explain how the filter works?

[Ticks:Today]  - [created at_UDT_Ticks] < (30 + 31)  * [Ticks:TicksPerDay]

Thanks.. -Jeff
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListPair Values Not WorkingPair Values Not Working


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