1. #181
    Sencha User
    Join Date
    Mar 2012
    Posts
    27
    Vote Rating
    0
    mrhomer is on a distinguished road

      0  

    Default


    Quote Originally Posted by wiznia View Post
    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.
    U think something like this:

    Code:
    Ext.Define('KA.view.Panel',{
       extend:'Ext.panel.Panel',
       items:[
           {
       xtype: 'exporterbutton',
       store: 'GridStore',
       component: Ext.getCmp('GridView') 
    }
       ]
    });

  2. #182
    Sencha User
    Join Date
    Jun 2008
    Posts
    157
    Vote Rating
    0
    wiznia is on a distinguished road

      0  

    Default


    You have to specify the store OR the component, not both. If it's a grid it's better to specify the component, because it uses the column model of the grid to format the output.

  3. #183
    Sencha User
    Join Date
    Mar 2012
    Posts
    27
    Vote Rating
    0
    mrhomer is on a distinguished road

      0  

    Default


    Nothing happens on the click of the button. I have no error what could be the problem ?

  4. #184
    Sencha User
    Join Date
    Jun 2008
    Posts
    157
    Vote Rating
    0
    wiznia is on a distinguished road

      0  

    Default


    Try debugging it....

  5. #185
    Sencha User
    Join Date
    Mar 2012
    Posts
    27
    Vote Rating
    0
    mrhomer is on a distinguished road

      0  

    Default


    Nothing I am using ExtJs 4 MVC maybe that is the problem or pls give me an example

  6. #186
    Touch Premium Member
    Join Date
    Feb 2011
    Location
    NJ
    Posts
    311
    Vote Rating
    52
    droessner is a jewel in the rough droessner is a jewel in the rough droessner is a jewel in the rough

      0  

    Default


    The swfobject.js has some try/catch blocks in it that don't do anything on an error. It's possible that an error is occurring somewhere in there and it is not being caught by the debugger.

  7. #187
    Sencha User
    Join Date
    Mar 2012
    Posts
    27
    Vote Rating
    0
    mrhomer is on a distinguished road

      0  

    Default


    Can I add a action to the button ?

  8. #188
    Touch Premium Member
    Join Date
    Dec 2010
    Location
    Jakarta, Indonesia
    Posts
    49
    Vote Rating
    0
    trinitrotoluen is on a distinguished road

      0  

    Default


    Quote Originally Posted by wiznia View Post
    Can somebody make a pull request on github? Does the fix also works in Ext 4.0?
    I'm using Ext-4.1.0 now.
    I already tested on MS Office 2007 (windows), Style.js fix made by rdominelli does work but still show a warning when opening the file.
    On MS Office 2011 (Mac) it doesn't work still error.
    How about other version does it work ? anyone

    Thanks Wiznia Great work

  9. #189
    Sencha User talha06's Avatar
    Join Date
    Jul 2009
    Location
    Turkey
    Posts
    303
    Vote Rating
    0
    talha06 is on a distinguished road

      0  

    Default


    Hello everyone,

    I'm getting 404 Not found Error despite the path that I wrote is true.. I'm including some other sources from same path.

    Here's my Export Button configuration:
    Code:
    this.btnExport = Ext.create('Ext.ux.exporter.Button', {            
            component: this,
            text        : "Download as .xls",
           swfPath  : 'ux/exporter/downloadify.swf',
           icon        : 'ux/exporter/download.png'
    });
    Here's my project directory:
    Snap 2012-06-11 at 17.47.19.png
    "People will never forget how you made them feel."
    linkedin.com/in/talhakabakus

  10. #190
    Sencha User
    Join Date
    Jun 2008
    Posts
    157
    Vote Rating
    0
    wiznia is on a distinguished road

      0  

    Default


    The path you are setting is relative... the relative path is relative of the url of the browser you are seeing, not from the js file.

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)