1. BRIAN PROM
  2. PowerBuilder
  3. Friday, 26 April 2019 19:35 PM UTC

Does the new Powerbuider 2017 rich text control for datawindow column RTE support hyperlinks?  If so, how do you implement it?

 

Thanks

Brian Prom

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 26 April 2019 19:39 PM UTC
  2. PowerBuilder
  3. # 1

Hi Brian;

  Add the RTF escape code syntax as follows (for example) ...

{\field{\*\fldinst HYPERLINK "http://www.google.com/"}{\fldrslt http://www.google.com}}

HTH

Regards ... Chris

Comment
There are no comments made yet.
BRIAN PROM Accepted Answer Pending Moderation
  1. Friday, 26 April 2019 19:51 PM UTC
  2. PowerBuilder
  3. # 2

Thanks, I'll give that a shot.  

Comment
There are no comments made yet.
Ricardo Colarina Accepted Answer Pending Moderation
  1. Monday, 29 April 2019 02:03 AM UTC
  2. PowerBuilder
  3. # 3

Hi Brian,

I created a hyperlink in MS Word, selected then copied the text, then pasted it onto the RTE control.  Then the resulting richtext formatted string in the control is what I based my hyperlinks functionalities on.  Basically it's also what Chris has suggested.  But you may need other stuff for the looks like the blue colour and the underline, something similar to the string below:

{\rtf1\ansi\ansicpg1250\deff0{\fonttbl\f0\fswiss Tahoma;}
{\colortbl ;\red255\green255\blue255 ;\red0\green0\blue0 ;\red5\green99\blue193 ;}

Cheers,

Ricardo

Comment
There are no comments made yet.
Gordon Weil Accepted Answer Pending Moderation
  1. Tuesday, 19 October 2021 18:47 PM UTC
  2. PowerBuilder
  3. # 4

Hi,

Is there a datawindow that shows a working example of this? When I paste in the RTF escape code syntax from Chris I get an "Incorrect syntax" error message when I try to save the datawindow.

Gordon

Comment
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.