Announcement

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

    Export ListGrid to PDF with scrolling and fetchData criteria set

    Hello Isomorphic Team,

    I am noticing a small display issue when exporting to PDF (using exportContent) on a ListGrid if fetchData() has a criteria passed in. If you scroll in the ListGrid in the sample below and click the PDF button to export the listGrid to PDF, it displays all the column data under one column (see attached snapshot) until you scroll again. If I call fetchData() on the ListGrid without any criteria passed in, it doesn't produce this issue. Is this a bug or is there something I can do to prevent this?

    I am using build v8.3p_2013-03-27/Pro Development Only and tested on both FF (version 19) and Chrome.

    Thanks.

    Code:
    <%@ taglib uri="/WEB-INF/iscTaglib.xml" prefix="isomorphic" %>
    <HTML><HEAD>
    	<isomorphic:loadISC skin="Enterprise"/>
    </HEAD>
    
    <BODY>
    
    <SCRIPT>
    
    <isomorphic:loadDS ID="supplyItem"/>
    
    isc.ListGrid.create({
        ID: "itemList",
        dataSource: "supplyItem",
        fields : [
            { name:"itemName" },
            { name:"SKU" },
            { name:"unitCost", width:50 },
            { name:"units", width:40 }
        ],
        selectionType: "single"
        // expansion
    	,canExpandMultipleRecords: true,
    	canExpandRecords: true,
    	getExpansionComponent: function (record) {
    		return isc.DetailViewer.create({
    			data: record,
    			fields: [
    				{name: "itemName", title: "Name"},
    				{name: "description", title: "Description"},
    				{name: "category", title: "Category"}
    			]	
    		});		
    	}
    });
    
    isc.Button.create({
    	ID: "pdfButton",
    	title: "PDF",
        click:function () {
        	var settings = {
        		skinName: "Enterprise", 
    			pdfName: "export"
      	    };
            isc.RPCManager.exportContent(itemList, settings);
        }
    });
    
    isc.VLayout.create({
    	ID: "contentLayout",
    	width: "600",
    	height: "500",
    	layoutTopMargin: 10,
    	members: [pdfButton, itemList]
    });
    
    itemList.fetchData({category: "Canteen and Washroom Products"});
    
    </SCRIPT>
    </BODY></HTML>
    Attached Files

    #2
    Hi Isomorphic, I just wanted to follow up on this post. I am curious to see if this is a bug that and if it can be fixed.

    Thanks.

    Comment


      #3
      Thanks for the report - we've fixed this in 8.3p and 9.0d - please retest with a nightly build of April 20 or later

      Comment


        #4
        Thank you for fixing this! I have confirmed that this is fixed with v8.3p_2013-04-22/Pro Development Only. We will be upgrading to 9.0 soon also.

        Comment

        Working...
        X