Data binding issue - can't select property of where clause

Wappler Version : 4.0.4
Operating System : mac
Server Model:
Database Type:
Hosting Type:

Expected behavior

The user should be able to select the “Property” in a where clause using the UI

Actual behavior

No values are shown

How to reproduce

On a content page, with a server connect…

Select an array from a repeat. In this case the “prices” array is being selected from within a repeat of “products” which is retrieved via the server connect.

On a child of the repeat attempt to set dynamic inner text by selecting a nested array within the repeat.
Add a where method and attempt to using the dynamic bindings to select a column from “prices”.

This is the desired result (produced manually)

<div class="row row-cols-2" is="dmx-repeat" id="each_product" dmx-bind:repeat="" key="product_id">
    <div class="col">
        <div class="card">
            <div class="card-body">
                <h5 class="card-title" dmx-text="stripe_name">Card title</h5>
                <h1 dmx-text="prices.where(`stripe_interval`, 'month', '==')">Heading</h1>
                <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
                <a href="#" class="btn btn-primary">Go somewhere</a>

When you select prices (before trying to use where) - what is the expression generated in the data picker?
How does it look like?

All good

1 Like

This has been fixed in Wappler 4.0.6

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