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 ListDouble GroupingsDouble Groupings
Previous
 
Next
New Post
6/22/2012 10:22 AM
 

Using  http://www.formandlist.com/Documentat... as a guide, is it possible to get a double-sort working?

For example, the first tier of groups:  Computers, Monitors, Printers.

Then below this could be:  Computers - HP, Computers - Dell

Then within these groups would be the actual PC's:  (HP A4829, HPD8713), (Dell 7319, Dell 2912)

Thanks..


 
New Post
6/22/2012 11:31 AM
 

Tried this, but it's just listing the main groups and they're indented underneath each other.

Thanks..

<xsl:key name="data-by-maingroup" match="udt:Data" use="udt:Main_x0020_Groupings" />
<xsl:key name="data-by-subgroup" match="udt:Data" use="udt:Sub_x0020_Groupings" />

<xsl:template match="/udt:UserDefinedTable">
    <ul>
      <xsl:for-each select="udt:Data[count(. | key('data-by-maingroup', udt:Main_x0020_Groupings)[1]) = 1]">
        <li>
          <div style="font-size: 16px;">
            <xsl:value-of select="udt:Main_x0020_Groupings" disable-output-escaping="yes" />
          </div>
          <xsl:variable name="currentData" select="key('data-by-maingroup', udt:Main_x0020_Groupings)" />
          <xsl:if test="$currentData">
            <ul>
              <xsl:for-each select="udt:Data[count(. | key('data-by-subgroup', udt:Sub_x0020_Groupings)[1]) = 1]">
                <li>
                  <div style="font-size: 12px;">
                    <xsl:value-of select="udt:Sub_x0020_Groupings" disable-output-escaping="yes" />
                  </div>
                  <xsl:variable name="subData" select="key('data-by-subgroup', udt:Sub_x0020_Groupings)" />
                  <xsl:if test="$subData">
                    <ul>
                      <xsl:apply-templates select="$subData" mode="list">
                        <xsl:sort select="udt:Changed_x0020_at" order="descending" />
                      </xsl:apply-templates>
                    </ul>
                  </xsl:if>
                </li>
              </xsl:for-each>
            </ul>
          </xsl:if>
        </li>
      </xsl:for-each>
    </ul>
  </xsl:template>

 
New Post
6/22/2012 1:40 PM
 

Hello Jeff.

Nested grouping  iss even more ugly:
The second key needs to include also information about the first one, often done by concating group and subgroup.

I have no example here, and the example in this link is not very readable: http://forums.asp.net/t/1439932.aspx/1

Look at the use statement of the second key, it might give you the idea how to continue.

Kind regards

Stefan

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListDouble GroupingsDouble Groupings


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