I have setup multiple templates in a module as per the example in the <xmod:CommandLInk> DataView command in the manual.
See http://dnndev.com/fiddle/fid/554
However I get an error when opening the page the first time which says
Must declare the scalar variable "@OrderID"
Once I click on one of the commandlinks it then goes away. It's directly because there is no value being passed yet to the second template.
Is there a way to avoid this? Create a default value or set it to the first item in the first template?