On a window I have a Power Table and a Template Repeater, and inside the Template Repeater contains two buttons and a Power Table.
The Power Table inside the Template Repeater has a custom dataset property that I’m trying to use as a dropdown for one specific column.
Power table configureEditor that works.
isCellEditable isn’t turned off. Rows are for display and selecting only. The column “Procedure Name” successfully acts as a dropdown list.
ds = system.dataset.toPyDataSet(self.ProcedureData)
options = [(row["id"],row["name"]) for row in ds]
if colName == "Procedure Name":
Power table configureEditor inside Template Repeater that doesn’t work.
isCellEditable isn’t turned on, but I have logic to change that for the column “Type.” I have tried this with the column “Type” as editable, and still this doesn’t work. I’m stuck. I would like Type to have a dropdown list. The custom property on this Power Table is not empty; it contains a dataset 2C x 5R. Should I bind the custom property to the Template Repeater instead?
if colName <> "Type":
ds = system.dataset.toPyDataSet(self.select_agitation)
options = [(row["idSelect"], row["select_text"]) for row in ds]
if colName == "Type":
Also, can I not use system.util.getLogger() inside of an extension function?
In configureEditor, I’ve tried reading the dataset directly from tags, custom properties on the power table, and custom properties on the template repeater. I’m at a loss here and any help is appreciated.