1. Vladimir K.
  2. PowerBuilder
  3. Monday, 28 September 2020 17:53 PM UTC

Not sure if it is even possible.

 

Have a data in the table: 

'All additional information about our privacy, can be found at this location: https://community.appeon.com/index.php/qna/q-a/ask?category=1 Thank you.'

store procedure returns this data to tabular datawindow, read-only column, and if the user click GoTo button, i am opening webpage with specified address

 

Is there is anyway or anything i can use to present user with something like this:

'All additional information about our privacy, can be found at this location Thank you.'

 

Something like use Rich TextEdit control or Rich Text datawindow and preformat return as something like:

/*
???
'All additional information about our privacy, can be found at ' + [URL="https://www.sql.ru/forum/actualpost.aspx?bid=39"] this location[/URL] + ' Thank you.'
???
*/

 

Any help will be greatly appreciated.

Thank you

Sincerely

Vlad

Vladimir K. Accepted Answer Pending Moderation
  1. Monday, 28 September 2020 21:44 PM UTC
  2. PowerBuilder
  3. # 1

Hi Chris.

Glad to hear you.

Thank you for your reply.

I am kind of already doing this. Please see attached.

Original request was: Endpoint return will be saved to database as string with url, if there is one, all the way at the end of that string and nothing else will be after that.

Well now it is "it may be more the one url, anywhere inside that string." and it will be nice to see them friendly renamed and in blue.

Attachments (1)
Comment
  1. Vladimir K.
  2. Tuesday, 29 September 2020 17:28 PM UTC
Chris, do you know if there is a syntax that can be used around URL before i return data to datawindow, so it will displays renamed and possibly blue colored in the RT datawindow.



Something like:

[URL="https://community.appeon.com/index.php/qna/q-a/hi-all-having-a-q-about-displaying-renaming-hyperlink";]Place to go[/URL]



?
  1. Helpful
  1. Chris Pollach @Appeon
  2. Tuesday, 29 September 2020 17:51 PM UTC
FWIW: Personally, I would just then store the hyper links in the DB then as "anchors" wrapped in RTF syntax.
  1. Helpful
  1. Vladimir K.
  2. Tuesday, 29 September 2020 18:51 PM UTC
Thank you Chris, but it is not an option.
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 28 September 2020 20:35 PM UTC
  2. PowerBuilder
  3. # 2

Hi Vlad;

  This is one way that I have done this type of implementation before ....

1) Add two Static Text objects to the DW.

2) One is the long text

3) One is the bold blue URL Text. Set the Pointer for this ST to "HyperLink!"

 Now in the DWO's DW Control for the Clicked event , you would code ...


IF  String (DWO.name) = "st_url"  THEN
    iNet         lo_iNet
    String      ls_url
    ls_url = DWO.Tag
    lo_iNet    =     CREATE iNet
    lo_iNet.Hyperlinktourl ( ls_url )
    Destroy  lo_iNet
END IF

 

Food for thought.

HTH ... regards ... Chris

 

Comment
  1. Olan Knight
  2. Tuesday, 29 September 2020 23:31 PM UTC
Nice soluion, Chris.
  1. Helpful
  1. Chris Pollach @Appeon
  2. Wednesday, 30 September 2020 00:20 AM UTC
Thanks Olan.
  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.