1. #231
    Sencha Premium Member
    Join Date
    Sep 2011
    Posts
    23
    Vote Rating
    0
    delusion is on a distinguished road

      0  

    Default


    Has anyone used this with a tree panel? I have it working for a grid, but when i try to give it a tree componenet, or a tree store, it goes into the excelFormatter, tries to render a workbook,

    then does on this

    Code:
    try { __flash__toXML(Downloadify.getTextForSave("downloadify_1355328296803")) ;}catch (e) {"<undefined/>"; }
    which i assume is from the downloadify.swf, and then dies with the catch(e) being a TypeError : undefined_method

    It's very strange as it gets past this point when using a grid component.

    thanks for any ideas anyone might have

  2. #232
    Ext JS Premium Member
    Join Date
    Aug 2010
    Posts
    52
    Vote Rating
    2
    mikih is on a distinguished road

      0  

    Question


    does anyone have a clue whats wrong with the generated excel source? I am happy to help, but have no starting point


    Cheers

    Florian

  3. #233
    Sencha User
    Join Date
    Dec 2012
    Posts
    2
    Vote Rating
    0
    Sheng_Yunzhou is on a distinguished road

      0  

    Default


    Hi Sarz,

    I had the same style problem too but I used the updated Style.js here http://www.sencha.com/forum/showthre...l=1#post773479

  4. #234
    Sencha User
    Join Date
    Nov 2012
    Location
    Belarus
    Posts
    8
    Vote Rating
    0
    vitalz is on a distinguished road

      0  

    Default fire click event on exporter button

    fire click event on exporter button


    I use a different button which events a controller handles and then the controller tries to fire event on a hidden exporter button.

    Ext.define("MyApp.view.MyPanel", {
    extend:"Ext.panel.Panel",
    requires:['MyApp.view.component.Table'],
    alias:"widget.mypanel",
    title:"Table Data",
    itemId:"mypanelId",
    layout:'fit',
    items: [
    {
    xtype:'exporterbutton',
    itemId:'exportmytableId',
    hidden:true,
    store: Ext.create("MyApp.store.data.SomeData"), /* why should I define store two times initially? */
    swfPath: '../myapp/ux/exporter/downloadify.swf',
    downloadImage: '../myapp/ux/exporter/download.png'
    },
    {

    xtype:'mytable',
    itemId:'mytableId',
    forceFit: true,
    store: Ext.create("MyApp.store.data.SomeData")
    }
    ]

    });



    Ext.define("MyApp.controller.Export", {
    extend: "Ext.app.Controller",

    ...blah de blah...

    /* handle event from tbar button */
    exportMe : function() {
    var mytable = Ext.ComponentQuery.query('mytable[itemId="mytableId"]');
    var exporter = Ext.ComponentQuery.query('exporterbutton[itemId="exportmytableId"]')[0];
    exporter.setComponent(mytable, {});
    exporter.fireEvent(
    'click'); /* 'down' event also never works; the same is applicable to exporter.body variable */
    }

    });





    But it seems that event never happens. I do not see Save download dialogue...

    I have also tried to use Downloadify JS without Ext.ux.exporter.Button but it looks when the ExtJS extension requires (absolutely useless in my current case) swf path, download image... it is completely locked by button logics somewhere in the source code that is why I suppose to use Downloadify JS separately (without knowing implementation details) is still not a good idea!

  5. #235
    Sencha User
    Join Date
    Jan 2013
    Posts
    4
    Vote Rating
    0
    xdengli is on a distinguished road

      0  

    Default thanks,export to csv

    thanks,export to csv


    export to csv , use notepad to open normal ,but use excel to open garbled Chinese
    character
    what can i do ? tks。

  6. #236
    Sencha User
    Join Date
    Dec 2012
    Posts
    2
    Vote Rating
    0
    Sheng_Yunzhou is on a distinguished road

      0  

    Default


    Vitalz: I think the problem is because the exportbutton is actually a swf file (which triggers the opening of download window), not a button, therefore fireEvent('click') may not work.

    I'm also waiting for solutions.

  7. #237
    Sencha User
    Join Date
    Nov 2012
    Location
    Belarus
    Posts
    8
    Vote Rating
    0
    vitalz is on a distinguished road

      0  

    Default


    Quote Originally Posted by xdengli View Post
    export to csv , use notepad to open normal ,but use excel to open garbled Chinese
    character
    what can i do ? tks。
    Well... that is a hack way. Surely I personally may do it.
    But I am developing system for customers who will never go such painful way. What means when user clicks export button browser downloads an Excel file.

  8. #238
    Sencha User
    Join Date
    Nov 2012
    Location
    Belarus
    Posts
    8
    Vote Rating
    0
    vitalz is on a distinguished road

      0  

    Default


    Quote Originally Posted by Sheng_Yunzhou View Post
    Vitalz: I think the problem is because the exportbutton is actually a swf file (which triggers the opening of download window), not a button, therefore fireEvent('click') may not work.

    I'm also waiting for solutions.
    Yes, flash is going to be completely removed. Otherwise flash is a reason to never use Ext.ux.exporter user exentension. So, it looks Downloadify is based on flash... we have to hope something will change.

    First heard flash became main reason we refused Ext.ux.exporter and replaced it by server side Apache POI.

    The other important feature after no flash is good news that multi stores/tables may be exported to one file. For instance, there are some tables on the screen and those tables need to be exported to one *.xls

  9. #239
    Sencha User
    Join Date
    Apr 2009
    Posts
    10
    Vote Rating
    1
    kalchas is on a distinguished road

      1  

    Default Export to Excel 2003, 2007, 2010

    Export to Excel 2003, 2007, 2010


    I modified the Ed Spencer, Mason Zhang files and now export to Office 2003,2007,2010, Libreoffice is possible.
    Attached Files

  10. #240
    Sencha User
    Join Date
    Nov 2012
    Location
    Belarus
    Posts
    8
    Vote Rating
    0
    vitalz is on a distinguished road

      0  

    Default


    Quote Originally Posted by kalchas View Post
    I modified the Ed Spencer, Mason Zhang files and now
    did you remove flash?

Thread Participants: 116

  1. dawesi (1 Post)
  2. feiji1983 (1 Post)
  3. isaac (1 Post)
  4. radtad (4 Posts)
  5. austin1030 (1 Post)
  6. pavanextjs (5 Posts)
  7. aragm (1 Post)
  8. terjeio (1 Post)
  9. il Sergio (2 Posts)
  10. edspencer (1 Post)
  11. nitingautam (2 Posts)
  12. edykstra (3 Posts)
  13. kalchas (4 Posts)
  14. pardha (1 Post)
  15. shelly (1 Post)
  16. talha06 (3 Posts)
  17. vaucer (1 Post)
  18. SMMJ_Dev (7 Posts)
  19. Ekambos (1 Post)
  20. vispiron (1 Post)
  21. sdruckerfig (4 Posts)
  22. jwcraig (1 Post)
  23. dbrin (1 Post)
  24. scaddenp (2 Posts)
  25. grisevich (1 Post)
  26. semialcruz (3 Posts)
  27. krishnarn1 (1 Post)
  28. mikih (1 Post)
  29. Teemac (3 Posts)
  30. jpcoppol (1 Post)
  31. ssuarez (4 Posts)
  32. trinitrotoluen (1 Post)
  33. aladdina (1 Post)
  34. Mental (3 Posts)
  35. nuskin (5 Posts)
  36. droessner (5 Posts)
  37. HIG (1 Post)
  38. jjerome (4 Posts)
  39. bee (2 Posts)
  40. RAD001 (8 Posts)
  41. RNL (1 Post)
  42. shawon (4 Posts)
  43. parkcity (4 Posts)
  44. carlosgoias (1 Post)
  45. Ewoq (7 Posts)
  46. skotamreddy (1 Post)
  47. another_i (5 Posts)
  48. neerajbherwal (1 Post)
  49. nimda13 (2 Posts)
  50. acteon (2 Posts)
  51. ma1986 (2 Posts)
  52. pierrocknroll (1 Post)
  53. Aranair (7 Posts)
  54. clarkbanks (1 Post)
  55. linyajun (1 Post)
  56. delusion (2 Posts)
  57. Jay Tanwar (2 Posts)
  58. supermarcos (6 Posts)
  59. mmuzamil (1 Post)
  60. amishra06 (1 Post)
  61. hundare (1 Post)
  62. Ecthelion (1 Post)
  63. balajivaikar (2 Posts)
  64. jarobi (1 Post)
  65. ferchotipin (2 Posts)
  66. sebas2515 (3 Posts)
  67. arpeggian (3 Posts)
  68. a_kanin (1 Post)
  69. MeDigital (1 Post)
  70. Vasanthoo7 (3 Posts)
  71. jeora (1 Post)
  72. BlackLine (1 Post)
  73. mrhomer (7 Posts)
  74. KostasP (2 Posts)
  75. rdominelli (4 Posts)
  76. pksiv (1 Post)
  77. yoisen (2 Posts)
  78. opms (1 Post)
  79. Oxii (1 Post)
  80. sarz (6 Posts)
  81. gabsoftware (3 Posts)
  82. 9josh (1 Post)
  83. ananthk (2 Posts)
  84. psnprasad (1 Post)
  85. alex9311 (2 Posts)
  86. Pedro2263 (1 Post)
  87. felix822 (2 Posts)
  88. mpasacrita@escholar.com (1 Post)
  89. Garry Hawkins (1 Post)
  90. jesus.balles (1 Post)
  91. chandrima31 (1 Post)
  92. this-is-sparta (1 Post)
  93. vitalz (7 Posts)
  94. Sheng_Yunzhou (2 Posts)
  95. xdengli (1 Post)
  96. sgscontact (1 Post)
  97. nitingogia@gmail.com (1 Post)
  98. Swetosuvro (1 Post)
  99. sudrak (1 Post)
  100. cdmein (1 Post)
  101. code4jhon (1 Post)
  102. felixfang (2 Posts)
  103. jayasingh1802 (2 Posts)
  104. abdul haq (3 Posts)
  105. luatbravo (1 Post)
  106. gilmaredo@gmail.com (1 Post)
  107. ricardo.lourival (1 Post)
  108. Sundarganesh Ramar (1 Post)
  109. madhavan281981 (1 Post)
  110. suvo (3 Posts)
  111. shankar8rajah1 (1 Post)
  112. benny_GI (1 Post)
  113. cojocarutudor (1 Post)
  114. arnoldvillasanta (4 Posts)
  115. tajashwin (1 Post)
  116. mangeshppatil (2 Posts)