Sort repeating table -- revisited

N

Neal

I have been struggling to adapt code in the Asset Tracking sample so that I
can sort data in a repeating table on my form, but have reached the
hair-pulling stage. I have recreated the asset tracking form, copied all the
relevant code and duplicated the data source structure but when I click on
the sort button, nothing happens. The only thing I cannot duplicate on my
clone form is the digital signature element. Is the necessary for the sort
function to work? (When I make a copy of the Asset Tracking form, it works,
but you are not allowed to modify the schema in the sample.)
Any help with the solution in the sample would be appreciated, as would any
other method for sorting data in a repeating table.
Thanks,
Neal Engledow
 
R

Russ

I ran into a similar problem. Check if your button's onClick event is even
getting triggered- place an XDocument.UI.Alert into the function handler of
the button. What happened to me is that the script did not recognize the
onClick event of the button until I explicitly added that event through the
button's properties dialog (select "rules and custom code" from the action
menu, then click "edit form code" to insert the onClick function handler).
 

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