Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Reseting ViewFileItem when ShowFileInline is false

    Hello ,
    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);
    	}
    There is a Delete button that removes the record and resets the form
    Code:
    	public void onClick(final ClickEvent event) {
    		dynamicForm.clearValues();
    		dynamicForm.editNewRecord();
    		deleteIButton.setDisabled(true);
    	}
    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

    #2
    Hi Stonebranch

    Thanks for the clear test case. We've got a fix for this issue which will be present in our next nightly SGWT EE build.
    Will you also need a patch for the version you're using (2.1)?

    Paul

    Comment


      #3
      Thanks Paul . We`ll let you know if we need a patch .

      Stonebranch

      Comment

      Working...
      X