I want to add a button to a specific row and column when a specific value in that row exists. I would also like to show that value on the button. I could use some pointers to get started in the right direction. I know how to add buttons to a column but not sure how to limit it to specific rows.
I'm not sure you can. The view rendering is by column not by cell. You might could use a style binding that makes the buttons not look like buttons on the rows that do not qualify. You could disable them as well with parameters.
Better yet, just hide the button in the view based on parameter.
I am having issues passing parameters to the buttons for each row. Examples would help if you have them. You described what I basically need. I already tried rowData and value but no luck.
The easiest method is to add an input parameter on your button view named rowData
. The row data from the table row will automatically be passed to each view. You can access this data in the button view like this
self.view.params.rowData['someColumnName']
Copy and paste an example of the rowData into the button view parameter, so you can easily make bindings.
I have used that method before when using popups but also used the extension (.value) at the end. It is working now, thanks.
Cell render view are automatically passed two parameters:
rowData
gets the entire row's values.value
gets the value at that row/column intersection.
See all the passed properties at the bottom of Table Column Configurations | Ignition User Manual.