XModPro

Error with Multiple Templates in a module

John Jacobson John Jacobson posted Apr 16, 2016
Active Apr 20 · Viewed 2306 times

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?

2 Replies

Loading replies...