Jump to content

Volk65

uniGUI Subscriber
  • Posts

    168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by Volk65

  1. UniDBLookupComboBox can I change the color / background of the rows in the drop-down list? For example, as in UniDBGrid there is an ondrawcolumncell event.
  2. I use Google chrome But I tried it in Firefox-everything was displayed correctly. And in Google chrome-wrong
  3. Hi! 1. I have UniPageControl without pages 2. I call a procedure (Form.AddPage). The procedure adds a UniTabSheet, create a URLFrame on the TabSheet, and sets the URL property ... As a result, the first page of the report is displayed normally, and the second page is very small (see image). The example shows this defect very clearly. In the example there are two pages, but there can be many of them (not two). Test7.rar
  4. +1 It is really necessary functionality.
  5. I already tested https://gist.githubusercontent.com/lukehorvat/5607821/raw/6fe2113b4946b36e8bcdf10a3904560ef9a00758/excel-grid-plugin.js (Not working) test6.rar
  6. Yes. I saw that too. But the first link did not open. And I wasn't sure if it was still relevant. If the second link is the actual script, I'll try. https://gist.githubusercontent.com/lukehorvat/5607821/raw/6fe2113b4946b36e8bcdf10a3904560ef9a00758/excel-grid-plugin.js
  7. I looked... and not found For example: "How to activate cell editing in UniDBGrid" http://forums.unigui.com/index.php?/topic/10306-how-to-activate-cell-editing-in-unidbgrid/
  8. Hi! UniDBGrid: I Need to start editing the cell by pressing Key>32. How to do it?
  9. Don't quite understand the question
  10. Hi al! Need advice. There is a DB. There is a large directory that is updated rarely. If each session opens data from this directory every time-this is an extra load on the server. The idea is this: 1. To place component to access the directory in the module, ServerModule. 2. Once an hour, on a timer to refresh data from the server. 3 All sessions turn to ServerModule, where the data is already loaded into memory. 4. As a data source in ServerModule I want to use TDataSetProvider. I see one problem (and I don't know what's going to happen) - when a session is started to read data from ServerModule and at that moment triggered a timer to update the data. Is this algorithm a good idea or a bad idea? If there is another (correct) solution, then tell me how to do it correctly.
  11. I did that. Is that right? 1.ClientEvents -> ExtEvents -> beforehide function beforehide(sender, eOpts) { var me=sender; ajaxRequest(me, '_hide', []); } 2. OnAjaxEvent procedure TRootFrame.UniFrameAjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); var RetVal: Integer; begin if EventName = '_hide' then FrameMessage(FM_HIDE, 0, 0, RetVal); end; Thanks. It works.
  12. When I change UniFrame.Visible True or False. I need to call my procedure, for example: procedure OnFrameVisibleChanged(....); UniFrame does not have events like the form: OnShow, OnHide.
  13. Hi all. How to track change the visibility of the UniFrame? When changing to visible:=True|False;
  14. Hi. I understand that two questions in one day is too much! The user clicks: http:\\brokenserver.com?prm1=val1&prm2=val2 And in the browser, when opened, the user sees: http:\\brokenserver.com BUT, inside UniApplication I have access to UniApplication.Parameters. I found the topic: http://forums.unigui.com/index.php?/topic/7629-hide-parameter/ but there it is necessary to hide every known parameter, but in the future there may be many such parameters. How to hide everything at once?
  15. Hi One small problem in MainModule - no property access Cookies: PS: implementation {$R *.dfm} uses uniGUIApplication, UniGUIVars, ServerModule, UType, Variants, uni_Data_Module, UProc, XCrypt2, UniGUIForm;
  16. Hi. If I understood you correctly: function TUniReport.ExportReport: Boolean; var Exp1: TfrxPDFExport; Exp2: TfrxJPEGExport; AUrl : string; P: Integer; OldFName, NewFName: String; begin Result:=False; case FExportType of retPDF: begin Exp1:=TfrxPDFExport.Create(nil); try Exp1.Background := True; Exp1.ShowProgress := False; Exp1.ShowDialog := False; -- Get a new file name in the cache !!! Exp1.FileName := UniServerModule.NewCacheFileUrl(False, 'pdf', '', '', AUrl, True); Exp1.DefaultPath := ''; FRF.Export(Exp1); -- Now display this file in a special form to view the PDF frm_UReport_Preview.UniURLFrame1.URL:=AUrl; frm_UReport_Preview.ShowModal; frm_UReport_Preview.Caption:=FRepName; Result:=True; finally Exp1.Free; end; end; If you want to transfer the file to the client instead of displaying it: UniSession.SendFile(Exp1.FileName, SendAsFileName);
  17. Hi all! How it works now: 1. You are prompted with a login form 2. User cookies are read 3. The login password fields are filled in 4. The user clicks on "OK" 5. There is a check in the database 6. If all is well, then Modalresult=mrOK Is this possible(?): 1. Cookies are read before the login window is displayed 2. If url parameters were passed at startup (UniApplication.Parameters), it checks the user in DB with his / her cookies. 3. If the check does not pass (for example, cookies are not saved), the login window is displayed. 4. But, if the check user in DB = OK, the LOGIN WINDOW is NEVER DISPLAYED and opened from the Mainform I was able to check the user and close the window. I used the "onaftershow" event. BUT, login window displays 0.5 seconds, after which the main window opens. But I want the login window never to be displayed. If the parameters have been passed and the user verification has passed.
×
×
  • Create New...