Sorting in infopath

P

Pavel Chlupáèek

Is there any way to sort entries in repeating tables aka <xsl:sort>? I just
do not want to have preserved code for every table/repeating section.

Thanks.
 
S

Steve van Dongen [MSFT]

Unfortunately there are some issues around using xsl:sort. InfoPath will not leave this element alone during a roundtrip in the designer. The only way to use xsl:sort successfully is to either add it at the very end (and don't load in the designer any more), or use a preserve code block.

Actually, you can avoid using a preserve code block provided that you have some pre-publish documentation that instructs how to fix each xsl:sort element manually. This might be okay until your dev work is complete (i.e. the tables stop changing). Once the tables are "fixed", then add the preserve code block so you don't keep losing your sort.

--
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com



Is there any way to sort entries in repeating tables aka <xsl:sort>? I just
do not want to have preserved code for every table/repeating section.

Thanks.

The designer will not remove xsl:sort if you add it manually to the
XSL.

Regards,
Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top