Pass current viewing record Id to a view element column formula

Hi all -

I have a table that has a view element. I'm trying to do formulas in the view element that requires data from the record I'm viewing. As we know, the view element takes you to another table so I've lost any connection to the record I'm viewing. I can do

let x := this;


when I'm doing the formula for the view element, but after that when I add a formula column in the view element I've lost any connection to the current viewing record. So if I did the above in the formula for the view element column, the "this" is now the table that is referenced in the view element and no longer the record of the table that I am viewing.

Has anyone figured out a way to do this?

3replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • I also encountered situations where such an access would have been needed, and I have been unable to find a solution. If there is one, I would love to learn. If there is none, well, maybe it would be time to ask Ninox for one. I mean a keyword that would represent a handle to the current view record.

    • John Halls
    • John_Halls
    • 8 mths ago
    • Reported - view

    Hi Fred

    I spent an evening trying to find a solution to this and, as Alain and yourself have concluded, there is no solution. All I could suggest is to run a script from a button in one of two ways

    1. Set a flag on the current record which the formula in the view can pick up in a select statement.
    2. Loop through the view data and add a link to the current record.

    Both have their pluses and minuses.

    Regards John

      • Fred
      • Fred
      • 8 mths ago
      • Reported - view

      John Halls Yeah, those were my thoughts as well. I was hoping that I was missing something, which wouldn't be surprising.

      Maybe I'll submit a feature request to Ninox.

Like2 Follow
  • 8 mths agoLast active
  • 3Replies
  • 135Views
  • 3 Following