How to Show/Hide Button in Embedded View Based on Row Data

Hi,
I have a table in Perspective that uses an embedded view to render each row. Inside this embedded view, I have a red Stop button.

I want to conditionally hide or show this button based on the data from that specific row — for example, only display it when PROID = 2.

How can I access the row data inside the embedded view and use it to control the button’s visible property?

Any best practices or examples on how to bind and evaluate row data for visibility would be appreciated.

rowData show something below data:

PRODID: {"NOMINALWEIGHT":{"value":15.748,"style":{"backgroundColor":""}},"INVENTSTYLEID":{"value":"Std","style":{"backgroundColor":""}}},

Thanks!

Does your view have an input parameter named rowData (exactly that)?

For testing, copy one row from the table's props.data to be the default value in the parameter.

And then add an expression binding to the Stop button's META.visible property. Something like,
{view.params.rowData.PRODID} = 2

Checks:

  • Your post says PROID = 2. Your JSON says PRODID. Fix one of them!
  • Your PRODID JSON looks more complex than just returning a value '2'. Are you sure you've got that right?

Thanks for the advice!
Below are some additional details to help you better understand the current setup and status:
rowData contain whole table data not a single row.


Table Column Configurations | Ignition User Manual (scroll to the bottom) says,

rowData A JSON object representing table data for the current row. This is equivalent to accessing props.data[row] on the table.

It's not the data for the whole table. It is passed through automatically whether you use it or not.

Please post the text of the logger so we can try it out. (Use the </> button to format it as code.)

The first image i shared is the log from the logger out put.

image != text

images are often hard to read and are useless for copy & paste. Please follow the instructions of those from whom you hope to get help.