Hello ,
Our dynamic form has a bunch of text fields and a ViewFileItem to display file .
There is a Delete button that removes the record and resets the form
On the button click all fields are cleared except for ViewFileItem.
This works fine if ShowFileInline is set to true.
Thanks,
Stonebranch
p.s. We are using SmartGWTEE2.1
Our dynamic form has a bunch of text fields and a ViewFileItem to display file .
Code:
private void initViewLogoItem() { viewLogoItem.setAttribute("editorType", "ViewFileItem"); viewLogoItem.setType("imageFile"); viewLogoItem.setShowFileInline(false); viewLogoItem.setShowErrorText(false); viewLogoItem.setShowErrorIcon(false); }
Code:
public void onClick(final ClickEvent event) { dynamicForm.clearValues(); dynamicForm.editNewRecord(); deleteIButton.setDisabled(true); }
This works fine if ShowFileInline is set to true.
Thanks,
Stonebranch
p.s. We are using SmartGWTEE2.1
Comment