Search the Community
Showing results for tags 'UNisession'.
-
I start a new project , then add a unibitbtn and wrote this lines for test procedure TMainForm.UniBitBtn1Click(Sender: TObject); begin begin try showmask('Wait...'); unisession.syncronize; Sleep(1000); finally hidemask; unisession.syncronize(); end; end; end; But it says [dcc32 Error] Main.pas(40): E2003 Undeclared identifier: 'syncronize' whats wrong ? should I add any unit ?
- 6 replies
-
- unisession
- synchronize
-
(and 1 more)
Tagged with:
-
Подскажите как отправить всем сессиям сообщение от сервера? использовал uniSession.Alert не получилось
- 2 replies
-
- unisession
- alert
-
(and 1 more)
Tagged with:
-
Ejemplo al presionar el botón ok procedure btnOKClick(Sender: TObject); procedure Imprimir; begin UniMainModule.CrearWebFilePath; UniSession.AddJS('window.open('+QuotedStr(UniMainModule.WebFilePath)+',"_blank", "status=no,location=no,resizable=no,dependent=yes,toolbar=no,menubar=no", "false");' ); end; begin UniScreenMask1.AttachedControl := btnOk; UniScreenMask1.TargetControl := Self; Self.MessageDlg('Desea imprimir el contenido?', mtConfirmation, mbYesNo, procedure (Sender: TComponent; Res: Integer) var cerrarModal: boolean; begin cerrarModal := Res = mrNo; if not cerrarModal then Imprimir else CloseModal; end); end; En ese ejemplo no sale nunca el mensaje, y mucho menos se abre la nueva ventana que contendría el archivo pdf a imprimir. La prueba fue hecha sobre Chrome. Porqué puede ser que no dispare el messagedlg?. Tampoco cierra el form porque nunca se ejecuta el callback
- 1 reply
-
- UNisession
- MessageDLG
-
(and 4 more)
Tagged with:
-
Hello! What is the point of using global UniSession from uniGUIApplication module? Is it safe to use this UniSession from global procedures? Or global procedures should be avoided? E.g. I want to make a global procedure reading data from cookies, can I use UniSession.UniApplication.Cookies safely?
-
Greetings Uniguiers, The following entries are from my app's log files: MyApp: 00000F14: 09:29:07 [Exception]:Your MyApp session has terminated MyApp: 00000F14: 09:29:07 [HttpExtensionProc[157.203.255.2]]:EUniSessionException : Your MyApp session has terminated : Addr: $020C3196 On some days the logs show no entries at all. Others have the two lines shown above logged 5 times every second form up to a minute. In server module, I have ServerMessages.InvalidSessionMessage set to "Your MyApp session has terminated" so I know where the exception is coming from but I don't understand why. My own log files tell me that the user who's session caused the above message logged in at 09:26 (3 minutes before the timestamp on the messages) so it is not a timeout issue. Any idea why this happens? Some days I get no entries, some days I'll get 1 entry of the above lines and sometimes I'll get the same two lines repeated 5 times a second for about a minute. Thanks Andy