I have some parametrization as follows:
page_databases.tab_geometry.items = Section("items")
page_databases.tab_geometry.items.test = TextField("test")
page_databases.tab_geometry.items.set_params_items = SetParamsButton("Download item data", method = "set_params_item_data", flex = 100)
page_databases.tab_geometry.items.table_items = DynamicArray("Items")
page_databases.tab_geometry.items.table_items.item = TextField("Item")
page_databases.tab_geometry.items.table_items.type = OptionField("Type", options=["internal", "hole", "external"])
page_databases.tab_geometry.items.table_items.visible = OptionField("Visible", options=["True", "False", "Highlight"])
page_databases.tab_geometry.items.table_items.elevation = NumberField("Elevation (m)")
page_databases.tab_geometry.items.table_items.orientation = TextField("Orientation (deg)")
page_databases.tab_geometry.items.table_items.t = NumberField("Thickness (m)")
page_databases.tab_geometry.items.table_items.h = NumberField("Height (m)")
page_databases.tab_geometry.items.table_items.w = NumberField("Width (m)")
And an controller as follows:
@GeometryView("Geometry", duration_guess=1, x_axis_to_right=True)
def get_geometry_view(self, params, **kwargs):
project = params.page_general.project
table_cans = params.page_databases.tab_geometry.cans.table
test = params.page_databases.tab_geometry.items.test
table_items = params.page_databases.tab_geometry.items.table_items
I made an textfield named test to test why i can not load in the dynamicarray. I get the following error:
AttributeError: ‘builtin_function_or_method’ object has no attribute ‘test’