Bug 2991

Hyperlinks in RTE 15 October, 2020

Geir Magne Vangen
05 July, 2019
Product: PowerBuilder Category: Controls & UI
Version: 2017 R3 Build:
Classification: Enhancement Publishing: Public
Priority: P3
Status: Transferring Reason:
Mark Lee @Appeon 15 October, 2020
#8
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:
https://file.appeon.com/download/Installer/PowerBuilder/Beta/PowerBuilderInstaller_bootstrapper.exe
 
Here is the release notes link (including bugfix list):
https://docs.appeon.com/pb2019r3/release_bulletin_for_pb/Build-2556-Beta.html
 
Warnings:
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.

Regards,
Mark Lee
Geir Magne Vangen 24 August, 2020
#7
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).

https://www.appeon.com/developers/obsolete-features-in-powerbuilder-2019R3.html

"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?

Regards,
Geir
Mark Lee @Appeon 16 October, 2019
#6
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:
'{\rtf1{\ul\cf1'+a_text+'}}'
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.

Regards,
Mark Lee
Mark Lee @Appeon 11 October, 2019
#5
Hi Geir,

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

Regards,
Mark Lee
Geir Magne Vangen 10 October, 2019
#4
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
#3
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
#2
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
#1
built-in-RTE-html.zip (1KB)

*Phenomenon:

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:


Remarks:
OS:
Windows 7
Platform:
Database Type:
Oracle
Database Version:
18c