Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

$4.95 Windows Hosting at Webhost4life.com
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
The best choice for your web site host, email hosting, and domain registration.
 


  Sponsors  

Meet Our Sponsors

AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
Click here to go to dev.live.com for Windows Live developer resources
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  User Defined Ta...  Calculated Field
Previous Previous
 
Next Next
New Post 8/13/2006 2:38 PM
User is offline Stefan Cullmann
1431 posts
6th Ranked








Re: Calculated Field 

Robert,

first study the generated XML, this will help you writing your stylesheet:
http://dotnetnuke.com/Community/ForumsDotNetNuke/tabid/795/forumid/56/threadid/57044/scope/posts/Default.aspx

You will discover that

  • the column names gets xml encoded -> [Transaction Type] will be <Transaction_x0020_Type>
  • you will find an addional element <Date_UDT_Value> which contains the formated date for your [Date] column respecting the current localization

Stefan Cullmann - stefan.cullmann [at] dotnetnuke.com

forms & Lists (UDT5.0) will be the next major release of the User Defined Table project.
A first Preview is available, though it requires DotnetNuke 5 (Beta 5).

 
New Post 8/16/2006 4:38 AM
User is offline Robert Belknap
66 posts
www.belknap.us
10th Ranked


Re: Calculated Field 

Thanks for the rapid response. 

I was a little slow at understanding the <Date_UDT_Value> tip, but finally got it.  I was looking for a method to define the [date] as a date and was not seeing that that function was already done for me in the <Date_UDT_Value>.  Even though you told me...

I am curious as to why there is a difference in the time offsets highlighted below.  I would have expected the offset to be the same.

   <Data>
      <UserDefinedRowId>15</UserDefinedRowId>
      <CreatedBy>host</CreatedBy>
      <CreatedAt>2006-08-01T08:05:57-07:00</CreatedAt>
      <ChangedBy>host</ChangedBy>
      <ChangedAt>2006-08-01T08:05:57-07:00</ChangedAt>
      <Date>2004-12-31T00:00:00-08:00</Date>
  ...

 
New Post 8/16/2006 9:20 AM
User is offline Stefan Cullmann
1431 posts
6th Ranked








Re: Calculated Field 
 rbelknap wrote

Thanks for the rapid response. 

I was a little slow at understanding the tip, but finally got it.  I was looking for a method to define the [date] as a date and was not seeing that that function was already done for me in the .  Even though you told me...

Localization of the date is rendered to the XML content because of missing date function in the .NET XSLT implementation.
Otherwise you would need to parse the date as string - which is ugly and don't support localization.

 rbelknap wrote

I am curious as to why there is a difference in the time offsets highlighted below.  I would have expected the offset to be the same.

  
      15
      host
      2006-08-01T08:05:57-07:00
      host
      2006-08-01T08:05:57-07:00
      2004-12-31T00:00:00-08:00
  ...

Me too - very strange. I will think about.


Stefan Cullmann - stefan.cullmann [at] dotnetnuke.com

forms & Lists (UDT5.0) will be the next major release of the User Defined Table project.
A first Preview is available, though it requires DotnetNuke 5 (Beta 5).

 
New Post 12/9/2006 4:54 AM
User is offline Tikkune
198 posts
9th Ranked




Re: Calculated Field 
Modified By Tikkune  on 12/9/2006 9:14:37 AM)

 Stefan Cullmann wrote
you will find an addional element <Date_UDT_Value> which contains the formated date for your [Date] column respecting the current localization

Brand new to XML/XSL, I don't understand how to code the date element above.   Would someone please show it used in a snippet of .xsl? Thank you.


"If a problem can be solved, there's no use worrying about it. If it can't be solved, worrying will do no good."
 
New Post 12/9/2006 5:55 AM
User is offline Stefan Cullmann
1431 posts
6th Ranked








Re: Calculated Field 
  1. XSL (without an EXSLT library) doesn't provide any date related functions, they are treated as strings.
  2. The data inside UDT is loaded into a dataset containing multiple tables. The main data is inside the table "data". UDT provides its own datatypes that provide some more features, they are not mapped build in into .Net. We help ourself adding some invisible columns, it depends on the current udt type.
  3. The date data type adds an invisible column containing the localized date as string. This helps you presenting a nice date using xml.
  4. These invisble colums are described in the documentation for UDT3.3.7. (unpublished), 
    and here http://www.dotnetnuke.com/tabid/795/forumid/56/threadid/69772/scope/posts/Default.aspx  

 


Stefan Cullmann - stefan.cullmann [at] dotnetnuke.com

forms & Lists (UDT5.0) will be the next major release of the User Defined Table project.
A first Preview is available, though it requires DotnetNuke 5 (Beta 5).

 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  User Defined Ta...  Calculated Field
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


DotNetNuke Hosting Provider UK
UK leading DotNetNuke Hosting provider. Owned and operated by a Microsoft Gold Certified Partner.
www.DNN-Portals.co.uk
Alliance Systems & Programming Inc
Alliance is not just our name... it's how we do business. We partner with our clients, learning their business processes and standards and then applying our expertise to help them improve their workflow and profitability.
www.Alliancesys.com
Customer Connect
Customer Connect provides cutting edge solutions that deliver sales, marketing and customer service results.
www.customer-connect.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP