NetTalk Central

Author Topic: What is more?  (Read 3165 times)

Jane

  • Sr. Member
  • ****
  • Posts: 372
  • Expert on nothing with opinions on everything.
    • View Profile
    • Email
What is more?
« on: October 17, 2022, 07:33:38 PM »
Hi, Bruce.

In a browse, for a string field there's an option on the Column tab called "Abbreviate Length".

It adds "more" as a hyperlink.  In the template-generated code, what's generated when I specify a picture of @s70 and an "abbreviate length" of 50 is:

Code: [Select]
packet.append( p_web.CreateHyperLink(p_web._jsok(Left(p_web.FormatValue(aud:notes,'@s70')),(Net:HtmlOk*0)+(Net:UnsafeHtmlOk*0)),,,,loc:javascript,,,(Net:HtmlOk*0)+(Net:UnsafeHtmlOk*0),,,'editAuditDatesBrowse',loc:abbreviate,'more'))

where editAuditDatesBrowse is the name of the browse procedure.

I haven't managed to find anything in the docs.  There is a mention in the May 3, 2018 user group webinar.  But when you ran an example for Don it didn't seem to work.

Does this actually work?  What is it supposed to do when one clicks the link?  If I'm reading netweb.clw correctly, it looks as if the second parameter should be the URL??

Thanks.

Jane


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: What is more?
« Reply #1 on: October 19, 2022, 12:00:05 AM »
I'm not sure if this works anymore Jane - I'd have to check.

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: What is more?
« Reply #2 on: October 19, 2022, 03:37:34 AM »
It hasn't worked for me in a very long time Jane.

It's supposed to create a "shortened" browse row with a "more" link.

When you press "more", the row is expanded to allow viewing of the full browse row.
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

Jane

  • Sr. Member
  • ****
  • Posts: 372
  • Expert on nothing with opinions on everything.
    • View Profile
    • Email
Re: What is more?
« Reply #3 on: October 19, 2022, 09:02:53 AM »
Thanks for the confirmation, Don.

@Bruce - not important.  I'm just using StringTheory's abbreviate on the fields now.  Might be better, though, to remove the template option if it doesn't work?

Cheers,

Jane