herculanojs Posted January 12, 2018 Share Posted January 12, 2018 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 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 12, 2018 Share Posted January 12, 2018 Hi, ... in cases of failures handled in the system What do you mean ? Quote Link to comment Share on other sites More sharing options...
herculanojs Posted January 12, 2018 Author Share Posted January 12, 2018 I already managed to solve Quote Link to comment Share on other sites More sharing options...
Tokay Posted January 12, 2018 Share Posted January 12, 2018 Please share your decision. It could be useful for others. Thank you. Quote Link to comment Share on other sites More sharing options...
herculanojs Posted January 14, 2018 Author Share Posted January 14, 2018 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 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.