Jump to content


Photo

O redirect to html file on server when logging off


  • Please log in to reply
4 replies to this topic

#1 herculanojs

herculanojs

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 458 posts
  • LocationCuiabá-Brasil

Posted 12 January 2018 - 03:27 AM

Would it be possible in cases of failures handled in the system, open a certain html file that is on the server at the end of the session?

 

It is not a page that is running on another service, it is just an html file


  • 0

#2 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 4987 posts

Posted 12 January 2018 - 03:54 PM

Hi,

 

... in cases of failures handled in the system

 

What do you mean ?


  • 0

#3 herculanojs

herculanojs

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 458 posts
  • LocationCuiabá-Brasil

Posted 12 January 2018 - 04:29 PM

I already managed to solve


  • 0

#4 Tokay

Tokay

    Active Member

  • uniGUI Subscriber
  • PipPipPip
  • 74 posts

Posted 12 January 2018 - 05:43 PM

Please share your decision. It could be useful for others. Thank you.


  • 0

#5 herculanojs

herculanojs

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 458 posts
  • LocationCuiabá-Brasil

Posted 14 January 2018 - 02:07 AM

What I was trying to do, was at the end of the session due to an error situation due to database connection failure eg show a tutorial on how it could solve the problem. For this, I created the whole tutorial in an hmtl file, and the intention was to open this file inside the unigui. I did not want to have to create a form to display the content, but could just make a call to some method similar to page redirection to achieve such a result.
 
The solution I used was to load the contents of the html tutorial, and to pass in the end message of the user session.
 
UniSession.Terminate (content of the tutorial);
 
 
------------
O que estava tentando fazer, era ao finalizar a sessão por uma situação de erro em razão de falha de conexão com o banco de dados por exemplo, exibir um tutorial de como ele poderia solucionar o problema. Para isso, criei todo o tutorial em um arquivo hmtl, e a intenção era abrir este arquivo por dentro do unigui. Não queria ter que criar uma form para exibir o conteúdo, mas que pudesse apenas fazer uma chamada ao algum método semelhante ao de redirecionamento de páginas, para conseguir tal resultado.
 
A solução que utilizei, foi carregar o conteudo do tutorial html, e passar na mensagem de finalização da sessão do usuário.
 
UniSession.Terminate(conteúdo do tutorial);

  • 1




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users