Jump to content

milton luiz

uniGUI Subscriber
  • Posts

    16
  • Joined

  • Last visited

Everything posted by milton luiz

  1. use this function in UniDbGrid to jump to the next line pressing enter and put the field in edit mode not needing another enter. in version 0.99 of unigui it works already in version 1.90 it is not working. can someone help? function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts) { var grid = sender;for (var i = 0; i < columns.length; i++) { columns.editor = {selectOnFocus: true}; //seleciona o texto if (columns[i].getEditor()) { columns[i].getEditor().on('specialkey', function(field, e) { if (e.getKey() == 13) { var store = grid.getStore(); var selModel = grid.getSelectionModel(); var selectedRecord = selModel.getLastSelected(); var recordIndex = store.indexOf(selectedRecord); var nextRecord = store.getAt(recordIndex + 1); if (nextRecord) { selModel.select(nextRecord); if (grid.editingPlugin && grid.uniRow && grid.uniCol){ var _row = grid.uniRow; var _col = grid.uniCol; setTimeout(function(){ grid.editingPlugin.startEdit(_row, _col); }, 10); } } } }) } } }
  2. I developed a system in Delphi 10 with Unigui and FastReport. In the computer it works, but when I open the web and enter the web site address the following error: "An Exception has occured in application: Access violation at address 008C59F3 in module 'Proj_Portal_Aluno.exe'. Read of address 00000000 Restart application " I already have another system in delphi 10 (without Unigui and FastReport) on the same server that works normally. I believe the problem is in Unigui or FastReport could anyone help me? Remember that on the server has the latest version of Unigui installed. Thank you. I developed a system in Delphi 10 with Unigui and FastReport. In the computer it works, but when I open the web and enter the web site address the following error: "An Exception has occured in application: Access violation at address 008C59F3 in module 'Proj_Portal_Aluno.exe'. Read of address 00000000 Restart application " I already have another system in delphi 10 (without Unigui and FastReport) on the same server that works normally. I believe the problem is in Unigui or FastReport could anyone help me? Remember that on the server has the latest version of Unigui installed. Thank you.
  3. I have a unigui web form that allows the user to download PDF file and generate the PDF for payment as per the code below, saving directly in the folder "DOWNLOADS" without showing anything to the user, this code already does. My problem is that each user will have a different path to the "DOWNLOADS" folder so I need to get the path to join with the name of the PDF file and save it in the downloads folder of the user's computer. UniMainModule.frxPDFExport1.FileName: = name + '.pdf'; UniMainModule.frxPDFExport1.DefaultPath: = 'C: \ Users \ Milton \ Downloads'; UniMainModule.frxPDFExport1.ShowDialog = false; UniMainModule.frxPDFExport1.ShowReport: = false; UniMainModule.frxPDFExport1.ShowProgress: = false; UniMainModule.frxPDFExport1.OverwritePrompt: = false; UniMainModule.frxRelBoleto.PrepareReport (); UniMainModule.frxRelBoleto.Export (UniMainModule.frxPDFExport1);
  4. I would like to know how to find the path of the user's downlod folder when the action is performed to save a report in dpf on the user's computer using unigui. in my computer: "C: \ user \ milton \ download \ relteste.pdf On users' web computers "C: \ ??????? \ download \ relteste.pdf I would like to know how to find the path of the user's downlod folder when the action is performed to save a report in dpf on the user's computer using unigui. in my computer: "C: \ user \ milton \ download \ relteste.pdf On users' web computers "C: \ ??????? \ download \ relteste.pdf
  5. How to get the path of a "download" folder by programming in unigui How to get the path of a "download" folder by programming in unigui HowHow to get the path of a "download" folder by programming in unigui?
  6. ALGUEM PODE ME AJUDAR? EU PRECISO GERAR RELATORIOS EM PDF USANDO FASTREPOR... OBRIGADO.
  7. milton luiz

    PDF

    CAN SOMEONE HELP ME? I need to generate PDF reports using FASTREPOR ... THANK YOU.
  8. Hi... I use the delphi xe2 program with rave report. I would like to know how to generate pdf of the report, writing directly to the download folder without needing to preview the report. Could someone help me? thank you.
  9. I am with this code to generate PDF: UniMainModule.RvSystem.DefaultDest:= rdFile; UniMainModule.RvSystem.DoNativeOutput:= false; UniMainModule.RvSystem.RenderObject:= UniMainModule.rvRenderPDF; UniMainModule.RvSystem.OutputFileName:= UniMainModule.LocalCachePath+'boletim'+turma_boletim+'.pdf'; UniMainModule.RvSystem.SystemSetups:= UniMainModule.RvSystem.SystemSetups -[ssAllowSetup]; UniMainModule.Rv_RelBolTur.projectfile:= 'C:\Portal_Aluno_Cnslv\Rv_RelBolTur.rav'; UniMainModule.Rv_RelBolTur.Engine:= UniMainModule.RvSystem; UniMainModule.Rv_RelBolTur.Execute; UniFrmRelBolTur.ShowModal(); UniMainModule.Rv_RelBolTur.Close; and when compiling this giving error in this line: UniMainModule.RvSystem.OutputFileName:= UniMainModule.LocalCachePath+'boletim'+turma_boletim+'.pdf'; error: [DCC Error] PortalProfessor.pas(493): E2003 Undeclared identifier: 'LocalCachePath' can anybody help me:
  10. when I put the reports of components of error MainModule line: UniMainModule.RvSystem.OutputFileName: = UniMainModule.LocalCachePath + 'newsletter' + turma_boletim + 'pdf.'; error: '[DCC Error] PortalProfessor.pas (493): E2003 Undeclared identifier:' LocalCachePath ' can anybody help me?
  11. I'm using RAVEREPORT to generate reports in PDF on unigui as extracted code in Forun UniServerModule.RvSystem.DefaultDest:= rdFile; UniServerModule.RvSystem.DoNativeOutput:= false; UniServerModule.RvSystem.RenderObject:= UniServerModule.rvRenderPDF; UniServerModule.RvSystem.OutputFileName:= UniServerModule.LocalCachePath+'boletim'+turma_boletim+'.pdf'; UniServerModule.RvSystem.SystemSetups:= UniServerModule.RvSystem.SystemSetups -[ssAllowSetup]; UniServerModule.Rv_RelBolTur.projectfile:= 'C:\Portal_Aluno_Cnslv\Rv_RelBolTur.rav'; UniServerModule.Rv_RelBolTur.Engine:= UniServerModule.RvSystem; UniServerModule.Rv_RelBolTur.Execute; UniFrmRelBolTur.ShowModal(); when a User will issue a report (PDF ) in the program appears (PDF) last generated report. It presents the latest generated in memory and not apreseta the youngest. what can I be doing in this case ???
  12. Its working... Thank you for your help...
  13. Alguém saberia alterar esta função para que ao avançar a linha o campo já fique em modo de edição, não sendo necessário dar outro clique para ficar em modo de edição. Does anyone know how to change this function to move the line of the field that let in edit mode , there is no need to click another to stay in edit mode ? function reconfigure(sender, store, columns, oldStore, the, eOpts) { var grid = sender; for (var i = 0; i < columns.length; i++) { if (columns.getEditor()) { columns.getEditor().on('specialkey', function(field, e) { if (e.getKey() == 13) { var store = grid.getStore(); var selModel = grid.getSelectionModel(); var selectedRecord = selModel.getLastSelected(); var recordIndex = store.indexOf(selectedRecord); var nextRecord = store.getAt(recordIndex + 1); if (nextRecord) { selModel.select(nextRecord); } } }) } } } Tks.
  14. Solved the leap problem with the enter key , just need to go down to the bottom line column be in edit mode to prevent the user having to give another click to put in add mode .
  15. Thanks for the reply.. Yes that is the functionality! But when you press < enter> to continue at the same column on the next line at editing mode , not for the next column of the same line . Then <enter> always come down to the next line at the same column .
  16. Hello, I would like to know a function within the unigui, that causes the <enter> skip to the next line in a unidbgrid, maintaining the status issue of similar field to what happens when we press the tab key. Can someone help me ?
×
×
  • Create New...