mehmet07 Posted August 17, 2023 Share Posted August 17, 2023 Merhaba, Yazmış olduğumuz programı farklı ülkelerde müşterilerimiz kullanıyor. Programda kullanıcı hangi ülkeden giriş yapmışsa o ülkenin saat verisini nasil olabilirim. Şuanda müşteriler hangi ülkeden girerse girsin serverin saat bilgini atiyor. Buna göre de tablolara kaydı girdiği saati yazdıracagım. Teşekkürler. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 17, 2023 Share Posted August 17, 2023 Merhaba, In which module do you want to know the client time? Quote Link to comment Share on other sites More sharing options...
mehmet07 Posted August 17, 2023 Author Share Posted August 17, 2023 Unigui de bir formun üzerine buton ekleyip tıkladığımda göstermesi yeterli olur. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 17, 2023 Share Posted August 17, 2023 43 minutes ago, mehmet07 said: Unigui de bir formun üzerine buton ekleyip tıkladığımda göstermesi yeterli olur. Ok, there are several ways, I'll try later. Quote Link to comment Share on other sites More sharing options...
mehmet07 Posted August 17, 2023 Author Share Posted August 17, 2023 tesekkur ederim Sherzod Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 17, 2023 Share Posted August 17, 2023 One possible solution: 1. UniButton1 -> 2. UniButton1.ClientEvents.ExtEvents -> function click(sender, e, eOpts) { ajaxRequest(sender, 'getClientDT', {dt: Ext.Date.format(new Date(), 'd/m/y g:i:s A')}, false); } 3. UniButton1.OnAjaxEvent -> procedure TMainForm.UniButton1AjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); begin if EventName = 'getClientDT' then begin (Sender as TUniButton).CustomAttribs.Values['clientDT'] := Params.Values['dt']; end; end; 4. UniButton1.OnClick -> procedure TMainForm.UniButton1Click(Sender: TObject); begin UniMemo1.Lines.Add((Sender as TUniButton).CustomAttribs.Values['clientDT']); end; 5. You can also convert the value to TDateTime... Quote Link to comment Share on other sites More sharing options...
mehmet07 Posted August 21, 2023 Author Share Posted August 21, 2023 tesekkur ederim Sherzod Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.