0

Detect list selection

In a table view/list, select a row and the form slides out. One can move the selection up and down the list and the form data changes to reflect the selected row. Standard Ninox behaviour.

Is there any way to detect when a (different) row is selected? Basically a trigger when the row selection changes?

27replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
    • UKenGB
    • UKenGB
    • 4 days ago
    • Reported - view

    Ok, your example works for me. So I considered the difference from my db.

    I added an onselected() function (that does nothing of any use) in my initialisation table. Then onselected() DOES work in other tables.

    So I removed that function from the initialisation table in your test db. It still worked.

    I removed it from my db and it worked. 😠

    About the only consistency is that if I open that initialisation record automatically on load, onselected() then doesn't work in other tables.

    If I don't run it on load and just open that table manually after the db is loaded, then onselected() works.

    I need to look further at the differences between my db and your test one. Have to look into that tomorrow.

    Like
    • UKenGB Ok, let me know because, I'm interested in eliminating a bug in my Ninext code. Thanks in advance.

      Like
Like Follow
  • 4 days agoLast active
  • 27Replies
  • 102Views
  • 2 Following