Page 18 of 33 FirstFirst ... 8161718192028 ... LastLast
Results 171 to 180 of 324

Thread: Export store to Excel

  1. #171
    Sencha User
    Join Date
    Jun 2011
    Posts
    12

    Default

    Hi Everybody,

    I need a help its very urgent, exproter was working fine on my environment, thanks for the very good work. But the problem is my clients environment doesn't allows swf, so that in their environment its not working.

    Can anyone help me with bypassing the swf to format grid to xcel? Its very urgent...

    Thanks in advance..

  2. #172
    Sencha User
    Join Date
    May 2012
    Posts
    2

    Default

    ,I always have the error when I display the button: ext-debug.js:4486
    Uncaught TypeError: Cannot call method 'substring' of undefined

    How can I fix it?I'm using EXTJS4.It looks like a namespace problem


  3. #173
    Touch Premium Member
    Join Date
    Jul 2011
    Posts
    9

    Default

    Hi Shawon,

    I am in the same situation. Did you figure out if you can use exporter without using swf?

    - Srinivas

  4. #174
    Sencha User
    Join Date
    May 2012
    Posts
    2

    Default

    I now export excel from server.That is reliable

  5. #175
    Sencha User
    Join Date
    Mar 2012
    Posts
    27

    Default Problem

    I have implemented the export button but when I click on it nothing happened, and I don't have any error. What can be wrong please help

  6. #176
    Sencha User
    Join Date
    May 2012
    Posts
    1

    Default

    hi parkcity
    Awesome work...........i tried implementing it, but nothing happens when i click on the exporter button in the toolbar..........i have defined headers and dataindexes for the grid ...................no errors too...........my code is.....

    var myStore = new Ext.create('Ext.data.Store', {
    storeId:'simpsonsStore',
    fields:['name', 'email', 'phone'],
    data:{'items':[
    { 'name': 'Lisa', "email":"[email protected]", "phone":"555-111-1224" },
    { 'name': 'Bart', "email":"[email protected]", "phone":"555-222-1234" },
    { 'name': 'Homer', "email":"[email protected]", "phone":"555-222-1244" },
    { 'name': 'Marge', "email":"[email protected]", "phone":"555-222-1254" }
    ]},
    proxy: {
    type: 'memory',
    reader: {
    type: 'json',
    root: 'items'
    }
    }
    });


    var myGrid = new Ext.create('Ext.grid.Panel', {
    title: 'Simpsons',
    store: myStore,
    tbar : [
    {
    xtype: 'exporterbutton',
    store: myStore
    }],
    columns: [
    { header: 'Name', text:'name',dataIndex: 'name' },
    { header: 'Email', dataIndex: 'email', flex: 1 },
    { header: 'Phone', dataIndex: 'phone' }
    ]});




    Ext.onReady(function(){


    var myWindow = Ext.create('Ext.window.Window',{
    height: 250,
    width: 450,
    renderTo:Ext.getBody(),
    items:[myGrid]
    });
    myWindow.show()


    });



    Untitled.png

    Kindly suggest something.....

  7. #177

    Default

    wiznia can you update your github with the Style.js fix for extjs 4.1 made by rdominelli ? (and other older fixes if any)

    http://www.sencha.com/forum/showthre...l=1#post773479

    Thanks

  8. #178
    Sencha User
    Join Date
    Jun 2008
    Posts
    157

    Default

    Can somebody make a pull request on github? Does the fix also works in Ext 4.0?

  9. #179
    Sencha User
    Join Date
    Mar 2012
    Posts
    27

    Default Other use of exporter

    Can I use a button that is not on the grid panel with this plugin and a store that is not shown in grid on the page?

  10. #180
    Sencha User
    Join Date
    Jun 2008
    Posts
    157

    Default

    Yes, you can put the button anywhere.
    The config goes as follows:
    - if the store config is sent, it will use that.
    - if the component config is sent, it will use the store of that component (and if it's a grid the colModel).
    - if none of those configurations is found, it will use the first gridpanel that's a container of the button itself, and if it's not found a treepanel.

    If none of those work, it will probably throw an error (I haven't tried it), the exporter needs a store to function.

Page 18 of 33 FirstFirst ... 8161718192028 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •