Jump to content

freedowsRoO

Members
  • Posts

    188
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by freedowsRoO

  1. Hello guys!! How you doing? I've been testing some small applications to learn more about performance with Unigui but i want to know from you guys what is the best pratice to consuming less resource of the server side? I tested 3 cases with 500 records with one DBGrid: Consuming an API and saving the data in a TFDMentable. Direct connecting in the local database with TFDQuery. Direct connecting in the local database but saving the data in a TFDMentable. Using the stress test tool in all the 3 cases, the consuming off resources is pretty much the same. The big deal here is that with direct connecting the server side holds the memory until i close the TFDQuery and in the other tests i close the TFDQuery immediatly fetch the records on the TFDMentable realising the memory more fast than the others.
  2. i did it! Thanks for the help but i have another question, is it possible to get the name of the grid that i drag the record in this code? Is that the same solution that you answered me above, i just need to get the name of the grid tha i drag the record now. function window.afterrender(sender, eOpts) { var me=sender; me.dropTargetBody = Ext.create('Ext.dd.DropTarget', Ext.getBody(), { ddGroup: 'D1', notifyDrop: function(source, evt, data) { ajaxRequest(me, 'dropped', []); }, notifyEnter: function() { } }); }
  3. I have a components saved in my database and i use this code to drag the record from the grid and drop him to the panel and create the component at runtime, but the component is aways created with top=0 and left = 0. I have already tried to get the cordinates but without success.
  4. Hello again my friend! Is It possible to get the drop cordinates (x,y) inside this ajaxrequest ?????? function window.afterrender(sender, eOpts) { var me=sender; me.dropTargetBody = Ext.create('Ext.dd.DropTarget', Ext.getBody(), { ddGroup: 'D1', notifyDrop: function(source, evt, data) { ajaxRequest(me, 'dropped', []); }, notifyEnter: function() { } }); }
  5. Any ideia when it will be release? =]
  6. Hello, i'm using the build 1534. I found the component but the only way i found to get the data was trough the remote query but remote query is no the solution that i need. I need the possibility to link a datasource to the combobox. Thanks
  7. Hi @Sherzod We will have this component in the DB pallete? I need to link a datasource on combobox.
  8. Sorry ASLAN i saw the demo but it's still not clear how to draw the vector in runtime. I tried to use the following code to draw the vector but it's add only one point at time in my map, it's not connect the points and draw the vector. with UniMap1.Vectors.Add do begin AddPoint(lat, lng); VectorType:=mvPolygon; with Options do begin color:= UniColorButton1.Color; fillColor:= UniColorButton2.Color; weight:= Trunc(UniNumberEdit5.Value); opacity:= UniNumberEdit6.Value; fillOpacity:= UniNumberEdit7.Value; radius:= Trunc(UniNumberEdit8.Value); end; AddToMap; FitBounds; end;
  9. Hello guys! How you doing? Is there a way to drawing vectors on unimap in runtime? I need that when i click on the map the vector will drawing point by point. I saw the demo and tried but no sucess.... Version1.90.1530
  10. Ok, thank you so mutch for try...
  11. Sorry, it works but the problem continue =( The uniSession.SendFile still send a lot of files to save like if i had a loop im my function. I think the problem is not in the function, I think is some problem with the uniSession.SendFile command because in the second time that i click de button the Event is call just one time but de UniSession.SendFile keep send the file BEFORE the AjaxEvent be call in delphi. There is a way to clear the cache or buffer of the session? SendFile with clientEvents.rar
  12. Ok, almost there... What if i need to change the 'sender.id' for another component? I need to take a screenshot of a panel not of my button(sender).
  13. When i click the button i need to send to the clientEvents the JSID of the component that i want.
  14. Any object, i need to set there the object that i want to take the screeshot. How it works ? When the function was in the delphi click event i just use the code like: MyPanel.JsID or MyButton.JsID. How it workd now that i change my function to ClientEvents?
  15. A little question: Is this line correct? html2canvas(document.getElementById(PanelCentral.jsID) , { dpi: 144 } ) If i need to use another component there i just call de name of the component?
  16. Nice, I'm already trying to do that but without success... function click(sender, e, eOpts) { html2canvas(document.getElementById(PanelCentral.jsID) , { dpi: 144 } ).then( function(canvas) { '+ var ctx = canvas.getContext("2d"); ctx.webkitImageSmoothingEnabled = false; ctx.mozImageSmoothingEnabled = false; ctx.imageSmoothingEnabled = false; var myImage = canvas.toDataURL("image/jpeg,1.0"); ajaxRequest('#1', "getData", ["base64Data="+myImage]); } ); }
  17. Yeh it is incomplete, i just made the example using the html2cavas with the ajaxrequest because the problem only show when i call de html2canvas function. In my main application i convert the base64 image and save on a PDF, after that i send the 'unisession.sendFile'. Just focus on the problem, i click one time in the button and the server send me 2 files do download just it. Thanks in advanced...
×
×
  • Create New...