NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Jane on October 17, 2022, 07:33:38 PM

Title: What is more?
Post by: Jane 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

Title: Re: What is more?
Post by: Bruce on October 19, 2022, 12:00:05 AM
I'm not sure if this works anymore Jane - I'd have to check.
Title: Re: What is more?
Post by: DonRidley 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.
Title: Re: What is more?
Post by: Jane 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