1

I've faced the problem with nvelocity #foreach statement. I'd like to save the collection item properties to the js variable. So I thought that construction like this would cover the issue.

jQuery('#resendButton').bind('click',

   function (e) {
          var failedItems = [#foreach($item in $FailedOrders)
               $item.SpecificId#between
               ,
             #end
          ... 
   });

But it failed. I'm not even able to debug it. What's the best way to implement such a piece of logic on vm?

Thanks in advance

godspeed
  • 247
  • 1
  • 4
  • 15

1 Answers1

0

I got same issue here, could you please explain a bit more on how you get over it?

hi I think NVelocity advance lopping syntax will help you figure out your issue

Community
  • 1
  • 1
Jian_H
  • 173
  • 1
  • 4
  • 18