NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Jane on October 11, 2022, 05:14:46 PM

Title: Display field using file tag?
Post by: Jane on October 11, 2022, 05:14:46 PM
Question (12.46)

NetWebForm template.
Creating a Display field.
On the Display tab, there's a droplist at the top cunningly called Display.
One of the options in the list is "File Tag <!--Net:f"

If I choose that and put into the Text field:
'<!-- Net:f:/staticText/textNewAudit1.htm -->'

it goes through NetWebServerWorkerBase.LoadTagFile and looks for a file with that name.  And none of my files are named Net:f:whatever.

If instead I enter:
'/staticText/textNewAudit1.htm'
it works fine.

As does:
'staticText\textNewAudit1.htm'

Is this the expected behavior?  I just found the "File Tag <!--Net:f" placeholder confusing.

Cheers,

Jane
Title: Re: Display field using file tag?
Post by: Bruce on October 12, 2022, 12:48:57 AM
yeah, it's working as designed. The Net:f is done for you.

Cheers
Bruce
Title: Re: Display field using file tag?
Post by: Jane on October 12, 2022, 03:18:43 PM
Thanks, Bruce.  Good to know.  I looked through the docs here (https://www.capesoft.com/docs/NetTalk12/NetTalkWebFunctionality.htm#FormTypeDisplay) and didn't find anything.

Cheers,

Jane