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 ListInclude filter in XSLT script when changing rendering from "table grid" to "user defined XSL"Include filter in XSLT script when changing rendering from "table grid" to "user defined XSL"
Previous
 
Next
New Post
6/7/2009 9:38 AM
 

Hi,

I have a UDT, rendered as a "default grid table", with a given filter expression.

Now, to get the needed output layout, I need to change the rendering option from "default grid table" to "user defined XSL transformation".

So, using the embedded XSL/XSLT generator, I have built a XSLT script to modify what is displayed, but I still don't know how to include the "original" filter expression, i.e. the filter I simple specified in "grid table setting" (something like [udt_field]='some value').

As this goes beyond my current XSL knowledge, I kindly request a hint to include the above-mentioned filter expression in the script.

XSL rendering option is flexible but it turns to be much more complicated too.

Thanks in advance.

 
New Post
6/9/2009 3:02 PM
 

The filter statement would look quite different in XSL, e.g. udt:Data[udt:udt_field='some value']

form and List supports the same filter from default grid also in XSL transformations.

 
New Post
6/11/2009 9:08 AM
 

Hi Stefan,

thanks for your kind reply.

I studied the XSLT script, located where to insert the filter statement you suggested and it worked, but it was just an example to make myself clear.

Infact the given expression (i.e. "[field]='some value') was just a reference and soon I realized I should have used a field comparison to a DNN Token value.

Here things get more complicated as XSLT scripts cannot access outer variables (DNN Token, URL, etc) and passing the needed DNN Token to the script from the UDT as a parameter (querystring) is not supported: I chose to change my way.

In Grid Table rendering, thanks to the embedded features of the form and List module, it's very easy to setup common use options like filters, sorting and so on, when you have to change to XSL rendering (generally to style the layout), I like say "good luck"...

Infact my goal was just to hide the column headers and I suppose it's easier to do that just using CSS, infact I'm looking at overriding the "Normal UDT_Table*" class for the header text color, in order to set it in the same color of the background. Much easier, isn't it?

Thanks for all.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListInclude filter in XSLT script when changing rendering from "table grid" to "user defined XSL"Include filter in XSLT script when changing rendering from "table grid" to "user defined XSL"


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