1. Cecilia Jiménez Bedoya
  2. PowerServer 2020 or older (Obsolete)
  3. Friday, 15 June 2018 11:16 AM UTC

Hello, I´m working with Powerserver in PB2017. I´m making a website, I have a form and I want to open a document.

Once I have the document in the server, how do I do if I want than when I click on a field in a datawindow the document will be open in the browser?

 

Thank you. 

Appeon Support Team Accepted Answer Pending Moderation
  1. Wednesday, 20 June 2018 00:31 AM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 1

Hi Cecilia,

You can use the similar codes as following to open the URL from the default browsers:

inet l_inet

string ls_url = "http://www.at.gov.ae:7007/resources/OnlineService/097BDF5C-ECC1-48FE-B505-5235501CE9FF.pdf"

l_inet = create inet

l_inet.hyperlinktourl(ls_url)

Destroy l_inet

Regards,
ZhaoKai

Comment
There are no comments made yet.
Govinda Lopez @Appeon Accepted Answer Pending Moderation
  1. Friday, 15 June 2018 15:42 PM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 2

Hi Cecilia:

 

You can use Appeon's File Server for that. You would need to install it in your server and use the functions available in PowerBuilder. You may find more detailed information about it here.

 

I hope this helps.

 

Regards,

Comment
  1. Cecilia Jiménez Bedoya
  2. Monday, 18 June 2018 06:45 AM UTC
Hola Govinda, gracias por contestar.



He visto respuestas tuyas en español así que prefiero escribirte en mi lengua .



He visto el video del Appeon´s File Server que tiene Marco Meoni en la web. He intentado reproducir el ejemplo exactamente igual al suyo y me da un error -1 al hacer el upload. No se que estoy haciendo mal.



De todas formas, para utilizar el appeon´s file server tendria que hacer un download en el cliente y yo no querría tener que descargar el fichero, simplemente querría mostrarlo. No se si esto es posible con este objeto o tendría que hacer otra cosa.



 



Muchas gracias.

  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.