Jump to content

lcolombo

uniGUI Subscriber
  • Posts

    71
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by lcolombo

  1. Hi, You should not declare a global variable, but a public variable in MainModule class unit MainModule; interface uses uniGUIMainModule, SysUtils, Classes, uniGUIBaseClasses, uniGUIClasses; type TUniMainModule = class(TUniGUIMainModule) UniNaImLtSistema: TUniNativeImageList; procedure UniGUIMainModuleSessionTimeout(ASession: TObject; var ExtendTimeOut: Integer); procedure UniGUIMainModuleCreate(Sender: TObject); procedure UniGUIMainModuleBrowserClose(Sender: TObject); procedure UniGUIMainModuleDestroy(Sender: TObject); private public vGlobalVariable: string; end;
  2. https://docwiki.embarcadero.com/Libraries/Alexandria/en/Data.DB.TDataSet.IsSequenced
  3. What database do you use? We use ADS by SAP and we had to check the Sequenced option in the dataset to avoid this problem. Regards
  4. Hi, We use Advantage Database Server and had the same error continuously. We fixed it by changing the following option of the TAdsTable component: Sequenced := true; SequencedLevel := slExact; Regards,
  5. Hi, In my case, I had the same problem and after a lot of testing we discovered that the problem was related to the static loading of a dll. We changed the way we use the dll (LoadLibrary, GetProcAddress and FreeLibrary) and it fixed it. Regards,
  6. I use this: UniServerModule.NewCacheFileUrl(False, 'pdf', vFileName, vSubDir, vFileCacheURL, True); // copy file to vFileCacheURL and then UniPDFFrame.PdfURL := vFileCacheURL; Regards
  7. Is it possible to reclycle a node in the hyperserver from a unigui application? The idea is to achieve the same thing as clicking on this option, but from the same unigi application: Regards,
  8. Does anyone use Advantage Database Server ? I seek to exchange experiences and advice on the implementation of this database. Regards
  9. @irigsoft, I manually replaced the js file, then I did several tests and I didn't have big problems, but only in a pre-production environment.
  10. Sherzod, The problem was in the isnumber function that I used inside the ondrawcell event and not in the ondrawcell event. Thank you very much for the support.
  11. Sherzod, Can I set a css class for some cells? something like that: StringGrid1.Cells[Col, Row].style := 'mycls'; Regards
  12. Sherzod, The grid has 40 columns and 1100 rows. With the ondrawcell event it takes several minutes to display the grid. Without the ondrawcell event, the grid is displayed immediately. Regards,
  13. Hi, I need to right align cells that have a numeric value or a date. I tried the following but it is very slow: procedure TMyForm.StringGridDrawCell(Sender: TObject; ACol, ARow: Integer; var Value: string; Attribs: TUniCellAttribs); begin if (isNumeric(Value) or isDate(Value)) then begin Attribs.Style.Style := 'text-align: right;'; end; if ARow = 0 then Attribs.Style.Style := 'text-align: center'; end; Is there an alternative that uses clients events? Regards
  14. OnDrawCell event: procedure MyForm.StringGrid1DrawCell(Sender: TObject; ACol, ARow: Integer; var Value: string; Attribs: TUniCellAttribs); begin Attribs.Style.Style := 'text-align: right;'; if ARow = 0 then Attribs.Style.Style := 'text-align: center'; end;
  15. See http://www.unigui.com/doc/online_help/synch-and-asynch-operations.htm
  16. Did the problem start this week? We have a similar problem that started this week and we cannot detect what it is. What browser do you use? We use Chrome regularly and now we are testing with Firefox to rule out that it is a problem with the latest Chrome update Regards
  17. @irigsoft, Thank you very much, you helped me understand the problem and how the unigui session cookie works. @farahad, we need to be able to make the session cookie more secure to be able to pass the security audits of our clients. Regards,
  18. 1. Yes 2. IIS 3. In web.config The cookiesession1 cookie is a "request" cookie and not a response cookie. Could this be the problem why the rewrite does not work? Regards,
  19. A client performed a penetration test on our application (payroll application) and told us that the cookie must have the sameSite and secure attributes configured. How can I configure the sameSite and secure attributes in the cookie cookiesession1 ? Regards
  20. Hi, Is the sessions_per_nodes parameter of the hypervisor already implemented ? Regards,
  21. Hi, We hire a penetration test on a system based on unigui and they recommend us to update the jquery libraries: The following libraries are out of date: /fullweb.dll/uni-1.90.0.1526/jQuery/jquery-1.11.2.min.js Version: 1.11.2 Date: 2014 /fullweb.dll/uni-1.90.0.1526/jQuery/MaskedInput/jquery.inputmask.min.js Version: 3.1.63-22 Date: 2015 /fullweb.dll/uni-1.90.0.1526/jQuery/autoNumeric/autoNumeric-1.9.35.js Version: 1.9.35 Date: 2015 is it possible to update these libraries? Regards
  22. Hi, You must delete each item: I := UniTreeMenu1.Items.Count-1; while(I > 0) do begin UniTreeMenu1.Items.Delete(UniTreeMenu1.Items.Item[I]); I := UniTreeMenu1.Items.Count-1; If(I = 0)then UniTreeMenu1.Items.Delete(UniTreeMenu1.Items.Item[0]); end;
×
×
  • Create New...