How to add a URL link to a column in a DataWindow

Symptom

How to add a URL link to a field/column in a DataWindow?

Environment

PowerBuilder

Solution

In the DataWindow control clicked event, add the following code:

inetlinet getcontextservice("Internet", linet)
choose case dwo.name
 case "<column_name>"
  linet.hyperlinktourl("www.appeon.com")
 case "<column_name>"
  linet.hyperlinktourl("www.appeon.com")
 end choose