Data Detail - only showing first table record

I there,

I have gone through the documentation to use data from a repeating table in a modal + data detail but am failing miserably.

The documentation I found can be found here

However, the data detail only shows the data pertaining to the first table record when I click any other table record

Any experts in the house please?

Many thanks

Modal code

Table code

Server connect code

This zero on the ViewDetail is causing that…
Try to change [0] to [$index]

(you are pulling always the first [0] records details instead of the current table row [$index])

Thank you. I had tried that and doesn’t seem to work for some reason.
Just re-did it and still the same :frowning:

Try removing the tableRepeat1 part completely so you just have uuid

TY. Also doesn’t work. without tableRepeat1, it doesn’t load anything in the table :frowning:

Are you sure the DataDetails is correct?



Here I see that the DataDetail component is inside the Modal… ?
And the paragraph that showing the DataDetails.data.name is inside the DataDetails component…

  1. Take the paragraph out from the datadetail.
  2. Bind from the UI the value for the paragraph
  3. As I initially wrote and @sitestreet confirmed , bind from the UI the value for the DataDetail select…
    (on the click event)
    Try and tell us if it works

(I see you upload screenshots from the query… Don’t you see the correct data in your table? If yes, It is not a matter of the query/serverconnect)

1 Like

Thank you again!

I can see data in the table. I shared so it was easier to see the query name. Have renamed it to getOrganizations, previously it was list Organizations which was confusing and not best practice(?).
1.moved the paragraph out of the data detail and data detail out of modal.
2. bound the value from the UI
3. click event - have tried with and without table1[$index]

Have also replaced the keys to link everything, using id instead of uuid.

Same behavior :frowning:

Screenshot 2024-02-09 at 17.16.29


You took the paragraph out from the DataDetail… OK, but you took the DataDetail out of the Modal!

Now the bindings probably don’t work…

My friend just try to make everything from scratch according to the tutorial…
Don’t assume that something is correct, Just do it from scratch and be sure that you do the correct steps!
It will take you 10’ and you will be sure of what you do.

EDIT:
I apologize… I just show that you did bind again the correct values…

But I instist, start form scratch to be sure!

I recommend you, after every step just add anotification to see the results…
eg. on click event add a notification to see if the name clecked is the correct.

By the way… What is that “prevent” on your click event ?

TY all for your inputs.

It seems something is off here.

I have followed the tutorial from scratch and it does suggest the paragraph to be added inside the data detail, so have reverted to what I had.

Managed to get this working…

The tutorial and the UI popups are misleading.

One needs to type in the fields and not pick them from the pick editor.

Screenshot 2024-02-09 at 18.19.31

Thank you all for your help!

2 Likes

Glad it worked for you.

I suspect that the problem was caused because you didn’t convert the container to a DataDetail

But added a DataDetail inside the Container…

That’s why your structure is:

Instead of like the tutorials:

Anyway, you got it working!!
:beer:

The devil in the detail.

Didn’t even know that was a different option, assumed it was a shortcut to adding it in.
Thank you so much.
Just re-did it, it fixed the table field selection but not the data detail field selection.

Probably something else was missed. Thank you so much for your help and kind follow up!

1 Like