-
Posts
352 -
Joined
-
Last visited
-
Days Won
28
Content Type
Profiles
Forums
Events
Posts posted by ZigZig
-
-
I Ahmad,
The callback procedure is not the one that shows a message, but the one called as parameter from the procedure that shows a message.
Did you try something like this?
//uniFormConfirm is an application form with an uniLabel ("Do you really want to close your session?") and an uniButton "OK" (with ModalResult set to mrOK). uniFormConfirm.ShowModal( procedure(Sender:TObject;Result:Integer); begin if Result=mrOK then TerminateMySession; end ); procedure TerminateMySession; begin //do whatever you want to close properly a session end;
-
Hi Irwan,
Did you achieve how to show uniscreenmask manually ?
-
Use callback procedure.
-
Hi irwan,
You can use JavaScript (with ExtEvents code or with AddJS method).
For example, if you have an UniScreenMask on your MainForm, and if you set its AttachedControl to UniButton1, you can write something ilke this :
MainForm.UniButton1.showMask();
If you do so, don't forget to manually hide this mask when it becomes useless:
MainForm.UniButton1.hideMask();
I hope it will help you.
- 1
-
Nice tip, thank you SilvaM!
-
Hello Alexandre,
Please try to find answers to your questions in previous topics, everything is aleady fully explained so many times...
Also, please try to use English, or go to non-English forums.
- 2
-
nice website,,
i hope this sample web will be open source,,
Thanks a lot for your comment.
Unfortunately, this web site will not be open source.
-
You are welcome!
-
Use parameters (see http://forums.unigui...eter#entry22980).
By the way, you just won the prize of the longest topic title in the world!
- 1
-
Use parameters (see http://forums.unigui.com/index.php?/topic/4592-passing-html-vars-to-isapi-unigui-application/?hl=parameter&do=findComment&comment=22980).
By the way, you just won the prize of the longest topic title in the world!
- 1
-
Hi all UniGuys,
-
Hi NizamUlMulk,
Difference between ISAPI mode and .exe mode is nothing but a compiler directive: nothing changes into your code. Everything that works in .exe mode is written and works in the same way in ISAPI mode (except if you run a very old version of UniGUI where "VCL mode" means "Windows forms mode").
Try this code :
myURLParameter:=UniApplication.Parameters.Values['myParameter'];
Then, if you open your uniGUI application with this URL : .../URLParamsDemo.dll?myParameter=hello, you will see that UniApplication.Parameters.Values['myParameter'] is equal to 'hello'.
I use this way of getting parameters in all my ISAPI developments, I never noticed a problem.
If you cannot compile this piece of code, try to add uniGUIApplication to your uses clause.
BTW, what is your version of uniGUI ?
- 1
-
Why don't you use TUniMemo ?
-
I think that your URL runs in compatibility mode in your IE11. Try to disable compatibility mode (or remove your url from IE's compatibility list or uncheck "show intranet sites in compatibility mode"), it shoud solve your issue.
- 1
-
-
Hello,
Here is a website for a Belgian theater, fully created with uniGUI, which looks like a stateless website (but is not) : http://www.theatredelavie.be
This is the public site (where you can read about shows, order a ticket, aso...). Nothing was done outside uniGUI: this is 100% Delphi + uniGUI.
More explanations from Farshad :
Technically speaking this site is not a "stateless" site because for example you can't bookmark a certain page and revisit it later. However, that doesn't matter anymore. Web is evolving and more and more site are becoming dynamic web sites with dynamic content rather than being a bunch of static pages.
Whatever you create with uniGUI will be stateful. Which means all states are kept in server side. However you can give the impression that your site is a regular stateless web site like what ZigZig did.
Of course, there is also an admin site (that looks more like a normal uniGUI application) for theater employees but I cannot give public access to this part.
- 1
-
Would you please describe what you had to do to make a stateless web site with uniGUI? Stateless is what I'm used to so using uniGUI to do it as well would be great.
Please see Farshad's answer about stateless website : http://forums.unigui.com/index.php?/topic/4570-final-release/&do=findComment&comment=22810
-
Thank you Farshad, Delphi Developer and Ronny!
- 1
-
- perhaps when you want to develop a fully stateless website with lots of url directing and url linking. uniGUI fits best for web applications.
Even in that case, uniGUI fits perfectly: I made a stateless website entirely with uniGUI: http://www.theatredelavie.be/.
- 2
-
By the way,
Thank you Farshad for your answer!
-
if fsGlobalUnit is not a session variable, maybe you should rename this topic... There is no problem at all with sessions!
-
OK so if I understand your code, fsGlobalUnit is a global variable created on ServerModule and shared into each MainModule session. Is it right?
-
Where does this script run? I mean: in which unit is this for-loop ?
-
Dear KingOrmon,
IMHO, that is more a question of cursor location or lock type on your DataSet, than a "serious problem with Sessions".
Close old Session - if the same username starts a new Session
in General
Posted
Dear Ahmad,
My mistake, I didn't understand that you need to send a message to another session of the same user.