Announcement

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

    TimeItem wouldn't print its value

    Smart GWT 4.0p (SmartClient Version: v9.0p_2013-07-15/PowerEdition Deployment (built 2013-07-15))

    TimeItem wouldn't print its value neither using
    Code:
    Canvas.showPrintPreview(window);
    nor
    Code:
    Canvas.printComponents(window.getChildren());
    All the other fields like the TextItem and the DateItem are printed correctly on the same form, but TimeItem remains empty.

    #2
    We're not seeing this problem, so there may be some condition present in your app required to cause this.
    Could you show us a simple EntryPoint class we can run on our end to demonstrate the problem?

    Regards
    Isomorphic Software

    Comment


      #3
      I can repeat it with this very simple class:

      Code:
      public class TestPrintTimeItem implements EntryPoint {
      
      	@Override
      	public void onModuleLoad() {
      		final DynamicForm form = new DynamicForm();
      		
      			TimeItem ti = new TimeItem("Time");
      			ti.setValue(new Date());
      		
      			ButtonItem biPrint = new ButtonItem("Preview");
      			biPrint.addClickHandler(new ClickHandler() {
      				
      				@Override
      				public void onClick(ClickEvent event) {
      					Canvas.showPrintPreview(form);
      				}
      
      			});
      		
      		form.setFields(ti, biPrint);
      		form.draw();
      		
      	}
      
      
      }
      Attached Files

      Comment


        #4
        We've now made a change to address this. Please try the next nightly build (dated July 19 or above), 3.1p, 4.0p, 4.1d branches

        Regards
        Isomorphic Software

        Comment


          #5
          Tested/Resolved

          Thank you.

          Comment

          Working...
          X