Jump to content

Servermessages


wkotze

Recommended Posts

Hi guys, i want on session termination to display message particular to that session,
and i've set the servermessages  on creation of  mainmodule,
BUT
this property is ignored and the servermodule servermessages  is displayed instead

Im I doing something wrong, or is this a known issue ?

 

 

Link to comment
Share on other sites

4 hours ago, wkotze said:

and i've set the servermessages  on creation of  mainmodule,
BUT
this property is ignored and the servermodule servermessages  is displayed instead

Hello,

You should use UniMainModule.ServerMessages...

Link to comment
Share on other sites

I do use UniMainModule.ServerMessages, this is however ignored and Servermodule is used ServerModule.ServerMessages is used

procedure TUniMainModule.UniGUIMainModuleCreate(Sender: TObject);
var t : string;
begin
  t :='<html><body><a href="[###url###]/'+ UserCode +'"><br>[###message###]<br>Restart application</a></body></html>';
  ServerMessages.ExceptionTemplate.text := t;
  ServerMessages.terminatetemplate.text := t;
  ServerMessages.invalidsessiontemplate.text := t;
end;

 

Link to comment
Share on other sites

1 hour ago, wkotze said:

I do use UniMainModule.ServerMessages, this is however ignored and Servermodule is used ServerModule.ServerMessages is used

Please tell me what exactly is not working, and how should it be..?

Link to comment
Share on other sites

Hi Sherzod,  on session  terminate i want go the user a link to log back in with his url parameters

if session started with  http:/ip/?prodid=100,  on session terminate i watn to hoew messgae : "Terminated, click here to return to http:/ip/?prodid=100"
if session started with  http:/ip/?prodid=200,  on session terminate i watn to hoew messgae : "Terminated, click here to return to http:/ip/?prodid=200"
if session started with  http:/ip/?prodid=300,  on session terminate i watn to hoew messgae : "Terminated, click here to return to http:/ip/?prodid=300"

The maninmodule. servermessages is howver ingonred, and the servermodule.servermessages  is displayed

 

termmsg.dpr

Link to comment
Share on other sites

On 5/16/2020 at 1:42 PM, wkotze said:

Hi Sherzod,  on session  terminate i want go the user a link to log back in with his url parameters

if session started with  http:/ip/?prodid=100,  on session terminate i watn to hoew messgae : "Terminated, click here to return to http:/ip/?prodid=100"
if session started with  http:/ip/?prodid=200,  on session terminate i watn to hoew messgae : "Terminated, click here to return to http:/ip/?prodid=200"
if session started with  http:/ip/?prodid=300,  on session terminate i watn to hoew messgae : "Terminated, click here to return to http:/ip/?prodid=300"

The maninmodule. servermessages is howver ingonred, and the servermodule.servermessages  is displayed

 

termmsg.dpr

i need the solution to ,for this case

Link to comment
Share on other sites

On 5/21/2020 at 3:55 PM, wkotze said:

any news on this

hello i found the way  just empty your ulr href like this

image.png.738b2b89eab4a064b9e906fef4b36ec2.png 

replace server message on server module & mainmodule

Edited by donlego
Link to comment
Share on other sites

  • Administrators
On 5/16/2020 at 9:42 AM, wkotze said:

Hi Sherzod,  on session  terminate i want go the user a link to log back in with his url parameters

if session started with  http:/ip/?prodid=100,  on session terminate i watn to hoew messgae : "Terminated, click here to return to http:/ip/?prodid=100"
if session started with  http:/ip/?prodid=200,  on session terminate i watn to hoew messgae : "Terminated, click here to return to http:/ip/?prodid=200"
if session started with  http:/ip/?prodid=300,  on session terminate i watn to hoew messgae : "Terminated, click here to return to http:/ip/?prodid=300"

The maninmodule. servermessages is howver ingonred, and the servermodule.servermessages  is displayed

 

termmsg.dpr

It is the default behavior. Try this in either ServerModule or MainModule:

 

<html>
<body bgcolor="#dfe8f6">
<p style="text-align:center;color:#0000A0">[###message###]</p>
<p style="text-align:center;color:#A05050">Terminated, click <a href="[###url###]">here</a> to return to application.</p>
</body>
</html>

 

Link to comment
Share on other sites

both
servermodule.servermessages  and
maninmodule. servermessages  is set

BUT

only
servermodule. servermessages  display on session termination
I want  maninmodule. servermessages to display NOT servermodule. servermessages 

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...