Guest Posted December 22, 2010 Share Posted December 22, 2010 Message from: "Cezar Wagenheimer" ?How to Identify If my session is in Desktop Mode or Web Mode? In WebMode, how to get the current library link? I want to retrieve the current link, something like 'http://unigui.wagenheimer.com:8077/', is this possible? Thanks! . Quote Link to comment Share on other sites More sharing options...
Guest Posted December 22, 2010 Author Share Posted December 22, 2010 Message from: "ldb" Il 22/12/2010 14:50, Cezar Wagenheimer ha scritto: > ?How to Identify If my session is in Desktop Mode or Web Mode? > > In WebMode, how to get the current library link? I want to retrieve the > current link, something like 'http://unigui.wagenheimer.com:8077/', is > this possible? > > Thanks! "Harry Rogers" wrote in message news:gDb0uZccLHA.512@anaxagvs227... > > Hi Farshad > > > > Which property should be checked to tell if an instance of an app is > > the desktop/VCL or a browser ? > > Inside a UniForm instance you have public property "WebMode". In other places "UniWebMode" global variable (defined in UniGUIRTTI unit) can be used. . Quote Link to comment Share on other sites More sharing options...
Guest Posted December 24, 2010 Author Share Posted December 24, 2010 Message from: "Farshad Mohajeri" "Cezar Wagenheimer" wrote in message news:sL3ks8doLHA.2084@anaxagvs227... > ?How to Identify If my session is in Desktop Mode or Web Mode? > You can check boolean var WebMode inside a Form or global UniWebMode wherever else. > In WebMode, how to get the current library link? I want to retrieve the > current link, something like 'http://unigui.wagenheimer.com:8077/', is > this possible? > UniLabel1.Caption:=UniApplication.UniSession.Host; . Quote Link to comment Share on other sites More sharing options...
Guest Posted January 6, 2011 Author Share Posted January 6, 2011 Message from: "Junior/RO" Farshad Mohajeri escreveu: > UniLabel1.Caption:=UniApplication.UniSession.Host; I have a similar issue. Can I use global UniSession to know the host? . Quote Link to comment Share on other sites More sharing options...
Guest Posted January 6, 2011 Author Share Posted January 6, 2011 Message from: "Farshad Mohajeri" "Junior/RO" wrote in message news:ioevgjSrLHA.2316@anaxagvs227... > Farshad Mohajeri escreveu: > >> UniLabel1.Caption:=UniApplication.UniSession.Host; > > I have a similar issue. > > Can I use global UniSession to know the host? yes, but global UniSession is not defined outside of event scope. i.e. you can't use it in a thread which runs independant of framework core. . Quote Link to comment Share on other sites More sharing options...
Guest Posted January 6, 2011 Author Share Posted January 6, 2011 Message from: "Junior/RO" Farshad Mohajeri escreveu: > yes, but global UniSession is not defined outside of event scope. i.e. you can't use it in a thread which runs independant of framework core. I have asked you about the global UniSession because seems that 'TUniMainModule.UniApplication' property is declared as of type TComponent and I can't access the UniSession property. Inside of a TUniForm, the UniApplication that I can access is a TUniGuiApplication and give me the UniSession property. . 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.