Given a Dynamic array with Optionlists using the name=ātable_nameā doesnāt seem to work.
I cannot select the option in the UI. Only numberfield, text and multiselect.
The Optionfield justs goes back blank.
Given a Dynamic array with Optionlists using the name=ātable_nameā doesnāt seem to work.
I cannot select the option in the UI. Only numberfield, text and multiselect.
The Optionfield justs goes back blank.
hi johan,
i have some trouble fully understanding the issue. could you expand your code to minimal example that triggers the problem?
In the development environment we have a Dynamic Array that has OptionFields:
table = DynamicArray(ui_name=table_header, copylast=True, name="table_name")
table.name = TextField("Naam")
table.footings = MultiSelectField("Stiepen", options=footing_options)
table.footing_type = OptionField("Stieptype", options=footing_type_options)
If i use name=āā¦ā in the DynamicArray I cannot enter a value in the UI. It will show the options, but after being selected it turns white. (blank)
Thanks, looking into it.
UPDATE: it seems that the name
argument does not always work as intended. Apart from the problem you describe, also storing the data seem to not always work. @Johan_Tuls: if you save a revision and reload the editor, are the values you have put in still there? In my little test setup that does not seem to work.
We are checking out how we can fix this, in the mean time i advise to not use the name
attribute.
Looking at your example, I think that the fact that you add a ānameā property to the DynamicArray is what cause interference here, since you both define it through the init and then overwrite the attribute
table = DynamicArray(ui_name=table_header, copylast=True, name="table_name")
table.name = TextField("Naam")
Could you check that, if you simply update it to:
table.row_name = TextField("Naam")
you still have the same problem?
just checked this and the problem persists also when using another field name
We have implemented a fix, will post here again when this is released