Inconsistent Results When Using Variables Inside a Repeat

Is it “Legal Wappler” to put variables inside a repeat statement in HTML?

I am doing this as described below, but I’m getting irratic results with regard to the variable values being updated correctly based on the server connect data that has been loaded.

Does it make any difference if the repeat is a repeat children?

The details are below!

Antony.

= = = = = = = = = = = = = = = = = =

I have a repeat which lists the attendees at an event and then a column for 4 different messages they may have been sent. It looks like the image below.

I have a code structure something like this:

repeat attendees
   16 variable definitions which reference a value from the repeat
   HTML for each row as shown below.

The variable definitions look something like this:

<dmx-value id="mt1_sent" dmx-bind:value="activity_msrs.data.msrs.where(`status_`, 's', &quot;==&quot;).where(`sent_by`, 'e', &quot;!=&quot;).where(`contacts_to`, contact, &quot;==&quot;).where(`message_template`, mt1.value, &quot;==&quot;).count()"></dmx-value>

where contact is a value which comes from the repeat statement.

Community Page
Last updated: