Hi Isomorphic,
can you tell what's the best practice when one has to change a field of a DynamicForm, but the fields property is "IR", but not "IRW".
I have the case where I want to upload an attachment. The attachment can have a type (coming from a SelectItem) like "Contract" or "Photo".
Depending on the value here I want to set FileItem.accept, which is "IR", so I need to update it.
Now, can/should I call DynamicForm.setFields with all the old fields via DynamicForm.getFields + a new instance of FileItem with correct accept, or what is the suggested way of doing this?
There seems to be no method setItem(fieldName, FormItem), that could be used to replace the item without a "W".
Thank you & Best regards
Blama
can you tell what's the best practice when one has to change a field of a DynamicForm, but the fields property is "IR", but not "IRW".
I have the case where I want to upload an attachment. The attachment can have a type (coming from a SelectItem) like "Contract" or "Photo".
Depending on the value here I want to set FileItem.accept, which is "IR", so I need to update it.
Now, can/should I call DynamicForm.setFields with all the old fields via DynamicForm.getFields + a new instance of FileItem with correct accept, or what is the suggested way of doing this?
There seems to be no method setItem(fieldName, FormItem), that could be used to replace the item without a "W".
Thank you & Best regards
Blama
Comment