Wrong prefix within repeat

Wappler Version : 5.2.2
Operating System : Windows 10
Server Model: NodeJS
Database Type: SQLite
Hosting Type: Wappler

  1. No hasItems() - 4:42 and 5:19
  2. Incorrect code - 6:30

@patrick, in a previous version of Wappler, this is the code that was created:

<div class="dropdown-menu" aria-labelledby="dropdown1">
      <a class="dropdown-item" href="#" dmx-repeat:repeat2="sub_navigation">{{sub_item}}</a>

In version 5.2.2, this is the code:

<div class="dropdown-menu" aria-labelledby="dropdown1">
     <a class="dropdown-item" href="#" dmx-repeat:repeat2="_['sub-navigation']">{{_['sub-item']}}</a>

Will the former code be compatible with the latter?

the difference Ben is that when you use dash in ID’s it has to be escaped as it isn’t a valid identifier. So it is escaped with _[‘xxx-xxx’]

In your previous example you used underscore which is fine and doesn’t need to be escaped.

I will check the wrong prefixing, it was an existing bug:

Geez, computers are dumb. I meant to place an underscore, I always do. The darn (r + n) thing didn’t recognise my mistake causing me hours of anguish.

Fortunately @George to the rescue and this whole post is no longer relevant.

Long live Wappler!

Fixed in Wappler 5.2.3

This topic was automatically closed after 24 hours. New replies are no longer allowed.