Display value from table in modal

Well your expression is wrong. It must be just id … no tableRepeat[0].id

Also better paste the code here, no screenshot of it. I can’t copy text from your screenshots.

like this?

<tr dmx-on:click="data_detail1.select(id)">

Yes.

no sorry no joy :frowning:

Would that go for the keys as well?

So what’s your whole table code and the data detail code…?
Maybe provide a link your page where we can check this.

<div class="col">
               <table class="table">
                   <thead>
                       <tr>
                           <th>Id</th>
                           <th>Notes</th>
                           <th>Date</th>
                           <th>Rating</th>
                           <th>Track idold</th>
                           <th>Member</th>
                           <th>Track</th>
                       </tr>
                   </thead>
                   <tbody is="dmx-repeat" dmx-generator="bs4table" dmx-bind:repeat="serverconnect1.data.query" id="tableRepeat1">
                       <tr dmx-on:click="data_detail1.select(id)">
                           <td dmx-text="id"></td>
                           <td dmx-text="notes"></td>
                           <td dmx-text="date"></td>
                           <td dmx-text="rating"></td>
                           <td dmx-text="track_idold"></td>
                           <td dmx-text="member_id"></td>
                           <td dmx-text="track_id"></td>
                       </tr>
                   </tbody>
               </table>
           </div>
           <div class="col" is="dmx-data-detail" id="data_detail1" dmx-bind:data="serverconnect1.data.query" key="serverconnect1.data.query[0].id">
               <p>{{data_detail1.data.notes}}&nbsp; A nice paragraph</p>
           </div>
       </div>
   </div>
key="serverconnect1.data.query[0].id"

Is wrong.
Should just be

key="id"

Great thank you now works :slight_smile:

I believe this is related to this bug - TableBody row click event does not select cell value

1 Like