|
<< Click to Display Table of Contents >> Navigation: Telegram > 2024 > 04 > 27 > Telegram_2024-04-27T18 |
2024-04-27T18:00:50
Hi Steven,
I believe you are testing from another session, is that correct?
You could try gSessions.LookupAndLock() method. The most complete overload of that method can give you all the information you need (if the session exists, if it's expired, if it's already locked, etc.). However it will lock the session, if not locked something that I don't recommend.
Can you give more details about the requirements?
2024-04-27T18:02:08
Yes, there is:
WebApplication.ShowPrompt() is what you're looking for:
type: pre procedure ShowPrompt(const AMsg: string; const ACallback: string; const ATitle: string = '';
const DefaultValue: string = ''; const OkBtnCaption: string = '';
const CancelBtnCaption: string = ''; callbackData: TStrings = nil); virtual; language:
2024-04-27T18:03:06
ACallback parameter is the key here. This is the name of a registered callback method that will be called when the input box is closed (either via OK or Cancel buttons)
2024-04-27T18:04:12
This demo shows it: type: link https://github.com/Atozed/IntraWeb/tree/master/XIV/Delphi/NewDialogs