Announcement

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

    getPrintHTML returns null when called on a layout?

    I have the following test code;

    Code:
    isc.VLayout.create({
      ID: "layout1",
      members: [
        isc.Label.create({
          ID: "label",
          contents: "test"
        })
      ]
    });
    
    isc.Button.create({
      top: 100,
      title: "label print HTML",
      click: function() {
        alert( label.getPrintHTML() ); // displays the label print HTML.
      }
    });
    
    isc.Button.create({
      top: 150,
      title: "layout print HTML",
      click: function() {
        alert( layout1.getPrintHTML() ); // displays null.
      }
    });
    When I click the "label Print HTML" it shows the label print HTML.

    But if I click the "layout print HTML" which calls getPrintHTML against a layout containing the label it shows null.

    Am I doing something wrong?

    v8.3p_2013-03-13/LGPL Development Only

    #2
    Any ideas any one?

    Comment


      #3
      Pass a callback into getPrintHTML(), rather than gathering it's return value.

      Comment


        #4
        Great thanks. That works.

        Comment

        Working...
        X