Bug 2991

Hyperlinks in RTE 14 January, 2021

Geir Magne Vangen
05 July, 2019
Product: PowerBuilder Category: Controls & UI
Version: 2017 R3 Build:
Classification: Appeon bug Publishing: Public
Priority: P3
Status: Scheduling Reason:
Communication Status: Waiting for Customer
Mark Lee @Appeon 14 January, 2021
Hi Geir,
Just to let you know that we had transferred this issue to the TX Text Control provider and they found that the RTF format content you provided is incorrect (a backslash is missing after '{\field{').
The correct rich text is as follows:
{\rtf1{\colortbl ;\red0\green0\blue238;}{\field{\*\fldinst HYPERLINK "'+sle_url.text+'"}{\fldrslt{\ul\cf1'+sle_text.text+'}}} }

During the verification, it could export normal HTML content when I chose Built in TX Text Control ActiveX 28.0.
But the issue still exists if I chose Built in TX Text Control ActiveX 15.0. Thus it is recommended you use a higher version TX control like 'Built in TX Text Control ActiveX 28.0' for the time being.

Mark Lee
Mark Lee @Appeon 14 December, 2020
Hi Geir,

Thanks for your feedback on PB 2019 R3 Beta Build 2556.
For the "hypertext link is totally" issue, it seems to be a bug.
I can reproduce it on our side and we will escalate this problem to our development team for further analysis.
We will need some time to handle this issue and we will get back to you when we make some progress.

Mark Lee
Geir Magne Vangen 09 December, 2020
Hi Mark,

Just tested this using PB 2019 R3 Beta build 2556.

When choosing Built in TX Text Control ActiveX 15.0, I get the same result as in PB2017R3. When saving document as html, the <a> - element is repeated.

<body style="font-family:'Arial';font-size:12pt;text-align:left;"><a href="https://www.appeon.com" style="color:#0000EE;text-decoration:underline ;"></a>
<p style="margin-top:0pt;margin-bottom:0pt;"><a href="https://www.appeon.com" style="color:#0000EE;text-decoration:underline ;">Appeon</a></p>

Choosing Built in TX Text Control ActiveX 28.0, the hypertext link is totally ignored when adding this to the rich text.

Are there some work arounds here I haven't discovered?

The test case provided 10 October 2019 should reproduce this for you.

Best regards,
Mark Lee @Appeon 02 December, 2020
Hi Geir,

I would like to check with you if the response provided has been helpful enough to resolve your case. If so, can we proceed to close the ticket?. 
Otherwise, do let us know if we can provide you with any further assistance and keep in mind that you are always welcome to open another ticket in case you need it.

Mark lee
Mark Lee @Appeon 15 October, 2020
Hi Geir,

I suggest that you upgrade your PB version to 2019 R2 2353 and select Built-in TX Text Control to full build your application again.
Based on my test result, this new version of control now automatically supports hyperlinks in TX Text.
Additionally, yes, TX Text Control 28.0 (32-bit and 64-bit) will be included in Powerbuilder 2019 R3. You will be able to get the full 64bit functionality of this control in R3.

Currently PowerBuilder 2019 R3 Beta is available. You are welcome to download and install it for verification on your side. Let us know your feedback soon!
Here is the PowerBuilder Installer link for 2019 R3 Beta:
Here is the release notes link (including bugfix list):
1.       Do not use a Beta release for production use.
2.       PowerBuilder 2019 R3 cannot coexist with PowerBuilder 2019 or PowerBuilder 2019 R2. It will upgrade/overwrite these versions. We suggest that you install it on a separate machine or a virtual machine for your test.

Mark Lee
Geir Magne Vangen 24 August, 2020
Any news on this issue regarding support for hyperlinks in TX TEXT?

I would argue that hyperlinks should be a basic functionality for these kind of editors, and should be added to your built in TX TEXT control. Especially now when you make the TE TEXT control obselete (where this actually works).


"The built-in Rich Edit Control will no longer be eligible for technical support. The recommended RichTextEdit editors are the built-in TX Text Control ActiveX 15.0 (32-bit only) and TX Text Control 28.0 (32-bit and 64-bit)."

Does this mean that TX Text Control 28.0 will be included in Powerbuilder 2019 R3? And we get full 64bit functionality for this control?

Mark Lee @Appeon 16 October, 2019
Hi Geir,

Thanks for reporting this problem!
Currently the built-in-TX-control doesn't support the Hyperlink element.
And as you said, the hyperlinks work well when you use the "Build-in Rich Edit Control”.
We can reproduce the issue that ‘it delivers html which includes two <a>-elements, both including the same link’ and the behavior is the same as that in PB 12.6.
But if we add text to the rich text as follows:
No data will be represented twice.
So it should be a new requirement/enhancement rather than a bug.
We'll transfer it to our product team for consideration.

Mark Lee
Mark Lee @Appeon 11 October, 2019
Hi Geir,

Thanks for reporting this problem.
We will work on it and get back to you soon.
Thanks for your patience and understanding.

Mark Lee
Geir Magne Vangen 10 October, 2019
w_rte_link_test.srw (7KB)

Hi Chris,

Sorry for this late reply. This hasn't been solved yet, but I found some time to build a test case. 

I've added a window, where you can push the 'Add link to RTE text' button. In this case the Appeon url will be added to the rte.
Then you can push "Generete html" to present the html-representation of this.

The appeon-link is represented twice in the html file, and this gives us some problems in a later process (publishing the information on web the link is presented two times).

As mentioned we are using the "Built-in TX Text control" as the we have other problems with the "Build-in Rich Edit Control" that makes it unusable for us.
Chris Pollach @Appeon 02 August, 2019
Hi Geir;

   We have not heard back from you for a while. Were you able to resolve your issue?

Regards ... Chris
Chris Pollach @Appeon 05 July, 2019
Hi Geir;

  Thank you for those HTML examples from the RTE control.

  Can you provide us with a simple test case PB Application that mirrors the problem(s) you reported around the RTE link issues.

Regards ... Chris
Geir Magne Vangen 05 July, 2019
built-in-RTE-html.zip (1KB)


We have an application using the built in rich text editor in powerbuilder to manage information for later publishing on web. We are trying to add functionality for the editor for add hyperlinks.

This add links to the rich text as follows:

	{\rtf1{\colortbl ;\red0\green0\blue238;}{\field{\*\fldinst HYPERLINK "'+sle_url.text+'"}{\fldrslt{\ul\cf1'+sle_text.text+'}}} }

So far so good.

But when we try to generate html from the rich text, the built in TX text control delivers html which includes two <a>-elements, both including the same link.
See enclosed built-in-TX.html.

When changing to the build in rich edit control, the result is as expected, the link only turn up once.
See enclosed built-in-RTE.html.

The reason we can't use the built in rich edit control are other issues that control has (we are also using RTE in some data windows and for generating documents). These problems has been reported earlier.

Is the problem with html-generation from the built-in-TX-control something you can help us out with? The best for us would of course be functionality in the RTE control for editing hyperlinks.

*Reproduce Steps:

Windows 7
Database Type:
Database Version: