Jump to content

Fábio Matte

uniGUI Subscriber
  • Posts

    159
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Fábio Matte

  1. Hello, I'm using FMSoft UniGUI v1.90.0.1543. 1. I put a UnimFileUpload component; 2. In a Button, I put the code below: With UnimFileUpload do begin Accept: = 'image'; Capture: = ''; Run; end; 3. In the OnCompleted of UnimFileUpload, the following: procedure TmFrameLocais.UnimFileUploadCompleted(Sender: TObject; AStream: TFileStream); var Nome : String; // Extrai o da Nome da foto origem : String; extensao : String; // extensao destino : String; // Caminho padrao begin Nome := ExtractFileName(UnimFileUpload.FileName); // Extrai o da Nome da foto origem := UniServerModule.StartPath+'ArquivosCliente\FotosBens\'; extensao := ExtractFileExt(UnimFileUpload.FileName); // extensao destino := origem + IntToStr(dmMobile.qryInventarioco_cliente.AsInteger)+ '\'; // Caminho padrao RenomarFotoBem(origem,destino, Nome, extensao); end; 4. The Function to Rename the File [RenomarFotoBem]: procedure TmFrameLocais.RenomarFotoBem(Origem, Destino, Nome, Extensao : String); begin DeleteFile( destino + IntToStr(dmMobile.qryInventariochapa_atual.AsInteger) + Extensao ) ; CopyFile(PChar(origem + Nome), PChar(destino + Nome), False); RenameFile(destino+Nome, destino + IntToStr(dmMobile.qryInventariochapa_atual.AsInteger) + Extensao ); DeleteFile( origem + Nome ) ; end; So, this DeleteFile does not trigger because UnimFileUpload continues to use the image that is in the DeleteFile( origem + Nome ) ; and then does not let me delete or rename. That is, the file that is where the upload was made, I can't even rename or delete it. I can only do this in the destination folder.
  2. I am using the UnimFileUpload component to upload images to the server, and it is going perfectly. When this image arrives at the server, I need to rename it, but it doesn't work, because UniGUI holds this image in memory until I close the system or open another image. I tried to use UnimFileUpload.free, and it frees up to change the image, however the Access Violation UniGUI when I try to send another one. How can I upload this image to the server already renamed using UnimFileUpload or how can I release the memory file so that I can edit it?
  3. Thanks, I wasn’t sure which term to use to search the forum. Problem solved, thanks. procedure TMainmForm.UnimFormReady(Sender: TObject); begin with UnimTabPanel1 do if not TabBarVisible then JSInterface.JSCall('getTabBar().setVisibility', [TabBarVisible]); end;
  4. I'm trying to hide the TabSheet by checking the TabVisible Option for False and the TabVisibleBar for False, both in Runtime and in designe and it is not working. I’m still viewing the Tabs. How should I proceed ? Note: UniGUI MOBILE
  5. Hi, Set up my Linux environment using Debian 10. I never had any problems using FMX, it always worked. So I only activated it for use with the UniGUI 1536, but the following error happens: How can I solve ? Note: I am using Delphi Pro v10.4.1.
  6. I'm having some problems when trying to open some UniDBLookupComboBox, most of the time I have to double-click. And when closing or canceling anything, DBGrid adds the columns, and when closing the frame, the message that is described below appears I still forward a video showing the error. _rsov_(O2D9,0);setStoreRow(O255,2147483647,2147483647,{"0":"","_0":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","1":"","_1":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","2":"","_2":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","3":"","_3":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","4":"(MEMO)","_4":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","5":"","_5":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","6":"","_6":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","7":"","_7":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","8":"","_8":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","9":"","_9":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","10":"","_10":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","11":"","_11":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","12":"","_12":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","13":"","_13":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","14":"","_14":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","15":"","_15":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","16":"","_16":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","17":"","_17":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","18":"","_18":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","19":"","_19":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","20":"","_20":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","21":"","_21":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","22":"","_22":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","23":"","_23":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","24":"","_24":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","25":"","_25":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","26":"","_26":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","27":"","_27":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","28":"","_28":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","29":"","_29":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","30":"","_30":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","31":"","_31":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","32":"","_32":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","33":"","_33":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","34":"","_34":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","35":"","_35":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","36":"","_36":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","37":"","_37":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","38":"","_38":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","39":"","_39":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","40":"","_40":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","41":"","_41":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","42":"","_42":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","43":"","_43":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","44":"","_44":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","45":"","_45":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","46":"","_46":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","47":"","_47":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","48":"","_48":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","49":"","_49":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","50":"","_50":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","51":"","_51":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","52":"","_52":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","53":"","_53":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","54":"","_54":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","55":"","_55":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","56":"","_56":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","57":"","_57":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","58":"","_58":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","59":"","_59":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","60":"","_60":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","61":"","_61":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","62":"","_62":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","63":"","_63":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","64":"","_64":"{fc:'#0000FF',fts:'font-weight:bold;font-size:12px;font-family:Calibri'}","_x":1,"_r":-1},false);_cgds_(O251);_rfes_(O2D9); How should I proceed ? 20200928_163035.mp4 U_framePTR_Bens.rar
  7. As I was unable to get help and find something related to the problem, I ended up giving up using the function I would like. But if at any time someone posts I help us, then I review again.
  8. Is it possible to add a different image to each Line of the UniDBTreeGrid according to my IF ELSE conditionals, just as we do in UniTreeView?
  9. Good Morning!!! How do I close a frame in a RowExpander when opening another Row? And also how to Trigger RowCollapse when Expanding another Row?
  10. When entering a frame with a grid with rowexpander and expanding the row, the first time it works normally, but if I close the frame, open another one, and reopen it causes an error. If I don't expand the row, the error does not appear. See the video. ERROR ROWEXPANDER.mp4
  11. For example, I am making a system that will need to attach images and save to the PostgreSQL database. However, customers will have no control over the size of the images. You will have images with 1mb, 2, 3, 5, 10mb and of different sizes, 1080x980, 700x600, 4096x2048, etc. So before saving these images in the bank, I would like to convert them to a fixed size: 800x600, which would be about 200kb, so I would save space in the bank and when I request the image on the server, it opens more quickly.
  12. Good night, how do I activate this picWidth property ?? I can't find her here. If you have the complete code for this function, it would help me a lot. Thanks.
  13. I run via IIS, how do I see this in standalone?
  14. I cleared the Windows log, and rerun the Unigui application until I got the error. I am forwarding the log generated by windows in the private message.
  15. I sent you a private message with some files and my IIS configuration.
  16. Is my code to open Frame alright, see? procedure TframeMOVIMENTOS.InsertFrame(AName, ATitle: string; MeuIDFrame, IDIcone: Integer); var Path, BackgroudTAB: string; begin try if FFrameName = AName then Begin Exit; End else Begin FFrameName := AName; End; Path := UniServerModule.StartPath + 'Frames\'; FreeAndNil(FCurrentFrame); except on E : Exception do begin sg.Info('ERRO NO ID FRAME...: '+MeuIDFrame.ToString); Abort; end; end; Try if AName <> 'TframeMOVIMENTOS' then begin FreeAndNil(FCurrentFrame); FCurrentFrame := TUniFrameClass(FindClass('T' + AName)).Create(Self); FCurrentFrame.Align := alClient; FCurrentFrame.Parent := containerSubFrames; containerSubFrames.Caption := ATitle; FCurrentFrame.Background.Url := BackgroudTAB; end; except on E : Exception do begin sa.Warning('Atenção de Exceção! 002',E.Message+' - Classe: '+e.ClassName+' - AName= '+AName, procedure(const ButtonClicked: TAButton) begin sg.Warning('Informe a classe', '>> initialization RegisterClasses([T'+AName+']); << no final do Frame U_'+AName+'.', 5000); Abort; end); Abort; end; end; end;
  17. OK. How often does this occur? - As the video I showed, I just restart the program and click a few times on the options that open UniFrame, already happens. That is if I use those options happens after 4 or 5 clicks. Do you have a fast UniTimer in your web app? - No, nowhere in the project I am using a UniTimer.
  18. Few questions: 1) Do you have a virus protection software on your server installed? - Just had the windows firewall itself, but I disabled it to test and continued the same. - Also added to the firewall all ports used by HyperServer. 2) Have you installed the HyperServer configuration installer? - Yes 3) Which uniGUI version are you using? - 1.90.0.1508, which was the last available for Lincensa in which I bought. - Check it out, my email is based on the purchase I made last year.
  19. Good morning, I'm having some problems on my HyperServer, he is dropping the connection all the time in some of my frames or forms. The HyperServer Log is as follows: BetterFuell.dll: 00005EEC: 11:32:44 []:Starting Server. Module Handle: 0000000000400000 BetterFuell.dll: 00005EEC: 11:32:44 [TUniServerModule]:Server First Init. BetterFuell.dll: 00005EEC: 11:32:44 [TUniHyperServer]:InitInterceptor BetterFuell.dll: 00005EEC: 11:32:44 [Transport.PoolSize]:516 BetterFuell.dll: 00005EEC: 11:32:45 []:Server Started. Module Handle: 0000000000400000 BetterFuell.dll: 00003CB0: 11:33:24 []:Terminating ISAPI Server. Module Handle: 0000000000400000 BetterFuell.dll: 00003CB0: 11:33:24 [TUniServerModule]:Shutting Down Server. BetterFuell.dll: 00003CB0: 11:33:24 [TUniHyperServer]:Terminating... BetterFuell.dll: 00003CB0: 11:33:24 [TUniHyperNodeManager]:Terminating... BetterFuell.dll: 00003CB0: 11:33:24 [TUniHyperNodeManager]:Terminated. BetterFuell.dll: 00003CB0: 11:33:24 [TUniGUISessionManager]:Terminating Session manager. BetterFuell.dll: 00003CB0: 11:33:24 [TUniGUISessionManager]:Stopping Cache Eraser... BetterFuell.dll: 00003CB0: 11:33:24 [TUniGUISessionManager]:Cache Eraser Stopped. BetterFuell.dll: 00003CB0: 11:33:24 [TUniGUISessionManager]:Destroying Worker Threads. BetterFuell.dll: 00003CB0: 11:33:24 [TUniGUISessionManager]:Session manager terminated. BetterFuell.dll: 00003CB0: 11:33:24 [TUniHyperServer]:Terminated. BetterFuell.dll: 00003CB0: 11:33:24 [TUniServerModule]:Server Shutdown Completed. BetterFuell.dll: 00003CB0: 11:33:24 []:ISAPI Server Terminated. Module Handle: 0000000000400000 BetterFuell.dll: 00003CB0: 11:33:24 []:<--------------------------------------------------------------> BetterFuell.dll: 00003E9C: 11:33:26 []:>--------------------------------------------------------------< BetterFuell.dll: 00003E9C: 11:33:26 []:Starting Server. Module Handle: 0000000000400000 BetterFuell.dll: 00003E9C: 11:33:26 [TUniServerModule]:Server First Init. BetterFuell.dll: 00003E9C: 11:33:26 [TUniHyperServer]:InitInterceptor BetterFuell.dll: 00003E9C: 11:33:26 [Transport.PoolSize]:516 BetterFuell.dll: 00003E9C: 11:33:27 []:Server Started. Module Handle: 0000000000400000 BetterFuell.dll: 00005564: 11:36:07 [TUniHyperServer.HandleHTTPRequest(), Node:[0]]:Socket Error # 10054 Connection reset by peer. BetterFuell.dll: 00005564: 11:36:07 [HttpExtensionProc[127.0.0.1]]:EIdSocketError : Socket Error # 10054 Connection reset by peer. : Addr: $00579BC4 BetterFuell.dll: 00007280: 11:36:11 [SendCommand Error, Node: 0]:Socket Error # 10061 Connection refused. BetterFuell.dll: 00007280: 11:36:13 [SendCommand Error, Node: 0]:Socket Error # 10061 Connection refused. BetterFuell.dll: 00007280: 11:36:25 [SendCommand Error, Node: 0]:Socket Error # 10061 Connection refused. BetterFuell.dll: 00007280: 11:36:27 [SendCommand Error, Node: 0]:Socket Error # 10061 Connection refused. BetterFuell.dll: 00007280: 11:36:40 [SendCommand Error, Node: 0]:Socket Error # 10061 Connection refused. BetterFuell.dll: 00007280: 11:36:42 [SendCommand Error, Node: 0]:Socket Error # 10061 Connection refused. BetterFuell.dll: 00007280: 11:36:54 [SendCommand Error, Node: 0]:Socket Error # 10061 Connection refused. BetterFuell.dll: 00007280: 11:36:56 [SendCommand Error, Node: 0]:Socket Error # 10061 Connection refused. BetterFuell.dll: 00007280: 11:36:56 [Node #0]:Node Status request timed out. Node purged. BetterFuell.dll: 00005564: 11:43:07 [TUniHyperServer.HandleHTTPRequest(), Node:[0]]:Socket Error # 10054 Connection reset by peer. BetterFuell.dll: 00005564: 11:43:07 [HttpExtensionProc[127.0.0.1]]:EIdSocketError : Socket Error # 10054 Connection reset by peer. : Addr: $00579BC4 BetterFuell.dll: 00007280: 11:43:20 [SendCommand Error, Node: 0]:Socket Error # 10061 Connection refused. BetterFuell.dll: 00007280: 11:43:22 [SendCommand Error, Node: 0]:Socket Error # 10061 Connection refused. BetterFuell.dll: 00007280: 11:43:34 [SendCommand Error, Node: 0]:Socket Error # 10061 Connection refused. BetterFuell.dll: 00007280: 11:43:36 [SendCommand Error, Node: 0]:Socket Error # 10061 Connection refused. BetterFuell.dll: 00007280: 11:43:48 [SendCommand Error, Node: 0]:Socket Error # 10061 Connection refused. BetterFuell.dll: 00007280: 11:43:50 [SendCommand Error, Node: 0]:Socket Error # 10061 Connection refused. BetterFuell.dll: 00007280: 11:44:02 [SendCommand Error, Node: 0]:Socket Error # 10061 Connection refused. BetterFuell.dll: 00007280: 11:44:04 [SendCommand Error, Node: 0]:Socket Error # 10061 Connection refused. BetterFuell.dll: 00007280: 11:44:04 [Node #0]:Node Status request timed out. Node purged. BetterFuell.dll: 00002EB0: 11:45:02 []:Terminating ISAPI Server. Module Handle: 0000000000400000 BetterFuell.dll: 00002EB0: 11:45:02 [TUniServerModule]:Shutting Down Server. BetterFuell.dll: 00002EB0: 11:45:02 [TUniHyperServer]:Terminating... BetterFuell.dll: 00002EB0: 11:45:02 [TUniHyperNodeManager]:Terminating... BetterFuell.dll: 00002EB0: 11:45:02 [TUniHyperNodeManager]:Terminated. BetterFuell.dll: 00002EB0: 11:45:02 [TUniGUISessionManager]:Terminating Session manager. BetterFuell.dll: 00002EB0: 11:45:02 [TUniGUISessionManager]:Stopping Cache Eraser... BetterFuell.dll: 00002EB0: 11:45:02 [TUniGUISessionManager]:Cache Eraser Stopped. BetterFuell.dll: 00002EB0: 11:45:02 [TUniGUISessionManager]:Destroying Worker Threads. BetterFuell.dll: 00002EB0: 11:45:02 [TUniGUISessionManager]:Session manager terminated. BetterFuell.dll: 00002EB0: 11:45:02 [TUniHyperServer]:Terminated. BetterFuell.dll: 00002EB0: 11:45:02 [TUniServerModule]:Server Shutdown Completed. BetterFuell.dll: 00002EB0: 11:45:02 []:ISAPI Server Terminated. Module Handle: 0000000000400000 BetterFuell.dll: 00002EB0: 11:45:02 []:<--------------------------------------------------------------> BetterFuell.dll: 00001738: 11:45:09 []:>--------------------------------------------------------------< BetterFuell.dll: 00001738: 11:45:09 []:Starting Server. Module Handle: 0000000000400000 BetterFuell.dll: 00001738: 11:45:09 [TUniServerModule]:Server First Init. BetterFuell.dll: 00001738: 11:45:09 [TUniHyperServer]:InitInterceptor BetterFuell.dll: 00001738: 11:45:09 [Transport.PoolSize]:516 BetterFuell.dll: 00001738: 11:45:11 []:Server Started. Module Handle: 0000000000400000 BetterFuell.dll: 00005198: 11:45:20 [TUniHyperServer.HandleHTTPRequest(), Node:[0]]:Socket Error # 10054 Connection reset by peer. BetterFuell.dll: 00001738: 11:45:20 [TUniHyperServer.HandleHTTPRequest(), Node:[0]]:Socket Error # 10054 Connection reset by peer. BetterFuell.dll: 00005198: 11:45:20 [HttpExtensionProc[127.0.0.1]]:EIdSocketError : Socket Error # 10054 Connection reset by peer. : Addr: $00579BC4 BetterFuell.dll: 00001738: 11:45:20 [HttpExtensionProc[127.0.0.1]]:EIdSocketError : Socket Error # 10054 Connection reset by peer. : Addr: $00579BC4 BetterFuell.dll: 00004464: 11:45:32 [SendCommand Error, Node: 0]:Socket Error # 10061 Connection refused. BetterFuell.dll: 00004464: 11:45:34 [SendCommand Error, Node: 0]:Socket Error # 10061 Connection refused. What am I doing wrong to make this happen? Follows CFG file. BetterFuell.cfg VIDEO DO ERRO.mp4
  20. I don't have any custom JS code, it's just pure Pascal. JS and HTML use only to call UniFrame within a Contanaier. JS and HTML use only to call UniFrame within a Contanaier. See the attached HTML file, the code I use to call the Event, and the only two PAS files that have the Error. if EventName = 'mnuCadEmpenho' then begin InsertFrame('frameCad_Empenhos' , 'EMPENHOS', 1, 1); end; index_lancamentos.html U_frameAnulacaoEmpe.pas U_frameCad_Empenhos.pas
  21. Inside the browser console is only giving this error.
×
×
  • Create New...