Sort Repeating table columns dynamically by clicking on the header

S

SK

I am an Infopath/XML/XPath green bean.

I have a form with a repeating table. Everything works great.

However, I know my boss is going to want to click on the column header
values in the repeating table in order to reorder the columns dynamically
(damn Access).

How can I do this?

Thanks,

Sue
 
J

Josh Bertsch [MSFT]

Check out the code behind the "Asset Tracking" sample that came with
InfoPath. There is a drop down in that template that sorts the assets.
Similiar code could be used to sort your table.

Use button in the header and place your code in the onClick event handler.

Shouldn't be too hard if you are vaguely familiar with script.

--josh bertsch
 
J

JP

Hi,

I'm trying to use <xsl:sort> in xsl files after extracting the views. No
success so far. If you have any sample, please post it.

Thanks
 
J

JP

output should be html and not a xml. infect, i'm trying to create dynamic
sort in view using xsl:sort
 

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