andyhill Posted September 29, 2020 Share Posted September 29, 2020 Goal: Make a quick and nasty Grid Print. Testing Grid Exporter I found I need more control over the results. I want to export a Grid to HTML and optionally save the results on Server silently, then process the HTML result dynamically, finally load it into a HTMLFrame and Print. Problems found with current implementation:- Cannot dynamically link and enable Exporter at runtime ? Cannot dynamically Turn On/Off Grid Paging at runtime ? Cannot control exported File Location (Client/Server) ? // dbGridItems.WebOptions.Paged:= False; // NEVER CHAGES // dbGridItems.JSInterface.JSCall('pagingBar.getComponent("refresh").click', []); //dbGridItems.Exporter.Exporter:= UniGridHTMLExporter1; // CRASHES //dbGridItems.Exporter.Enabled:= True; dbGridItems.Exporter.ExportGrid; //dbGridItems.Exporter.Enabled:= False; // dbGridItems.WebOptions.Paged:= True; Please advise - Thanks Link to comment Share on other sites More sharing options...
andyhill Posted September 30, 2020 Author Share Posted September 30, 2020 Sherzod, Farshad - please comment. Link to comment Share on other sites More sharing options...
alfr Posted October 1, 2020 Share Posted October 1, 2020 have you seen the following workarounds? Link to comment Share on other sites More sharing options...
andyhill Posted October 2, 2020 Author Share Posted October 2, 2020 Exporter adds Default Title if left blank. Exporter auto-downloads to client, I do not want it to download to client, I want it to export to Server where I will post process. Changing dbGrid.WebOptions.Paged:= False; at runtime fails. Assigning dbGrid.Exporter.Exporter:= UniGridHTMLExporter1; at runtime fails. Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted October 3, 2020 Share Posted October 3, 2020 On 10/1/2020 at 11:08 PM, andyhill said: Exporter adds Default Title if left blank. Exporter auto-downloads to client, I do not want it to download to client, I want it to export to Server where I will post process. Changing dbGrid.WebOptions.Paged:= False; at runtime fails. Assigning dbGrid.Exporter.Exporter:= UniGridHTMLExporter1; at runtime fails. Hi, The exporter is designed to send Xls to the client-side as it is a native function of fExtJS. If you want to export in serverside, you need to use export with other tools. You can't change paged in runtime. If you want to show all records, you may increase WebOptions.PageSize to a high number. Assigning exporter in runtime should work as you can see from Grid - Exporter demo. Please send a test case if you are still getting error. Link to comment Share on other sites More sharing options...
andyhill Posted October 3, 2020 Author Share Posted October 3, 2020 Hayri, I appreciate your comments however you are only telling me what I already found out via testing. What I would like is the ability to print grids without third party intervention - not a big ask when one considers most of the functionality is already there. I ask that the UniGUI developers consider this. Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted October 3, 2020 Share Posted October 3, 2020 4 hours ago, andyhill said: Hayri, I appreciate your comments however you are only telling me what I already found out via testing. What I would like is the ability to print grids without third party intervention - not a big ask when one considers most of the functionality is already there. I ask that the UniGUI developers consider this. Hi, As we are using ExtJS Native Exporter, we don't have ability save it to server side. As you can understand we are developing UniGUI side. We don't have any plan to implement any 3rd party excel exporter components. It is your choice to select one and use it to export grid to server side. Link to comment Share on other sites More sharing options...
andyhill Posted October 4, 2020 Author Share Posted October 4, 2020 I understand - wishful thinking Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now