Hi all,
It is currently not possible to SetParamsResult for a dynamic array using the following structure if a FileField is present in the array;
SetParamsResult({
“tab_1”: {
“section_1”: {
“array_1”: {
variable_1: [values]
}
}
}
})
It would be great if this could be added eventually :)!
Thanks a lot.
Cheers!
Hi Jelle,
As a dynamic array is similar to a table (a list of dictionaries), be sure to set the params in that given format. Taking your example, the format should change to:
# assuming `values` is a list of values:
new_array = [{"variable_1": val} for val in values]
SetParamsResult({
“tab_1”: {
“section_1”: {
“array_1”: new_array
}
})
I believe a FileField
cannot be set. If you find this a limitation, maybe good to add this request to the Feature Requests
category.
1 Like
Thanks a lot, already thought so… Will add it to the Feature Request category.
Cheers!
I’ve also edited the title of this post to make it clear that you are trying to set a File
in a DynamicArray
.