Is it possible to dynamically change the render type and viewPath for a row based on a value in the row?
I’m populating the table data with a simple dict list with a name and setting.
Then on a transform on the table data I’m doing the following to try and insert the render and viewPath as part of the data.
tableRows = []
for row in value:
tableRow = {}
tableRow['name'] = row.name
settingValue = row.setting
if self.view.custom.printer.driver == 'OS':
if row.name == 'OSPrinterName':
setting = {
'value':row.setting,
'render':'view',
'viewPath':'Embedded/_Setup/_System/_Printers/Printer-List'
}
tableRow['setting'] = setting
tableRows.append(tableRow)
return tableRows
However it doesn’t seem to be changing the render type for that row and showing the view dictated in the viewPath.
Am I trying to do something that isn’t supported or am I missing something here?
Thanks for the help!