NetTalk Central

Author Topic: Hyperlinks in browse  (Read 3300 times)

Gordon Holfelder

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
    • Email
Hyperlinks in browse
« on: February 02, 2011, 08:15:18 PM »
Hi All-

I'd like to create a series of hyperlinks as part of the text that is being displayed in a browse. There may be one or more of these. They are currently stored in a child table. Each of these child records contains the text and the blob that is to be displayed when the hyperlink is pressed.

Now the question; do any of the examples show something like this? Any suggestions where to start?

Thanks in advance for the help.
Gordon

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Hyperlinks in browse
« Reply #1 on: February 03, 2011, 05:47:11 PM »
Are you hyper linking to a new page? If so you should be able to add extra parameters to the hyperlink so the page you are calling can display the correct info.

I do a similar thing but found Firefox is VERY slow hyperlinking to a _self page. Other browsers are fine and Firefox is also ok to _blank.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Hyperlinks in browse
« Reply #2 on: February 03, 2011, 10:38:47 PM »
Hi Gordon,

Is this sort of like a "more info" link?
Where the user clicks on the link, and up pops a dialog with the expanded information?

cheers
Bruce


Gordon Holfelder

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
    • Email
Re: Hyperlinks in browse
« Reply #3 on: February 04, 2011, 01:27:26 PM »
Hi All, and thanks for replying-

I've got the browse to work in generating the link. The links are to additional documents that are PDF's that have been stored as blobs in the database. The code I'm using is something like:

 SET(AFpicView)
  LOOP
    NEXT(AFpicView)
    IF ERRORCODE()
      BREAK
    END
    IF loc:Links
      loc:Links     = loc:Links & ', '
    END
    loc:Links       = loc:Links &               |
      p_web.CreateHyperLink(AFpic.Description,  |
      'HTTP://' & CLIP(p_web.RequestHost) &     |
      '/ViewAttachment' &                       |
      '?Type=Item' &                            |  
      '?ID=' & PResi:SelfServiceItemID &        |
      '?Row=' & AFpic.Order,                    |
      '_blank')
  END

Then I display the loc:Links field (making sure to turn on the XHTML option).

Now I'm trying to get the ViewAttachment procedure written. In this procedure I plan on transferring the Blob to a file using the arguments that are on the link. I've created a NewWebPage procedure where I'll trap the arguments and build the PDF. Still working on the learning curve...

Thanks,
Gordon

« Last Edit: February 04, 2011, 01:50:29 PM by Gordon Holfelder »