NetTalk Central

Recent Posts

Pages: 1 2 [3] 4 5 ... 10
21
Web Server - Ask For Help / Re: NetRefresh
« Last post by rjolda on November 01, 2025, 12:31:16 PM »
HI Jane,
I added the line to SetTableValue to my table and MAGICALLY - it worked!!!
Better than having polling every 2 seconds!
Thanks,
Ron
22
Web Server - Ask For Help / Re: NetRefresh
« Last post by rjolda on October 31, 2025, 01:09:01 PM »
Hi Jane,
Thanks for that.  I saw that but the templates seem to suggest that they will write that code to trigger refresh when you identify the File for Refresh. I will give that manual entry a try.
Ron
23
Web Server - Ask For Help / Re: NetRefresh
« Last post by Jane on October 31, 2025, 12:07:23 PM »
First thing would be to verify that you've got all the pieces of netrefresh working.

You could temporarily make a field on your browse EIP.  When you update the field, it should show on another browser.

Once that's working, read the section of the docs on triggering a refresh from the webserver (i.e., in handcode)  https://www.capesoft.com/docs/NetTalk14/NetTalkWebBasic.htm#NetRefresh

For example, for a browse using my umDischargeManagement table, after doing some processing I have

Code: [Select]
p_web.SetTableValue('umDischargeManagement',today() & '-' &clock())
24
Web Server - Ask For Help / NetClient.Send error??
« Last post by rjolda on October 31, 2025, 02:36:56 AM »
HI
NT 14.36  C11.
I added NetRefresh to my NT app.  Now when I Save an Update to a record, I get the following error message:
A nettalk network communication error has occurred.
Error = Anerror occurred while attempting to send a packet from service.
The error number was -12 which means you are trying to send data to someone who is not in the receivers (servers) list.
Error occurred in function (parent) NetClient.Send
ServiceName =  (blank)
Can anyone shed some light on this?  My NetRefresh is not working correctly and maybe this has something to do with it?
Thanks,
Ron
25
Web Server - Ask For Help / NetRefresh
« Last post by rjolda on October 31, 2025, 01:47:14 AM »
HI
BT14.36  C11 ABC
I am starting to play with NetRefresh.  I have a case where user B is watching a NT BROWSE on table called  J_SRVREQ.  This Browse is set in NetRefresh Local Extension to Refresh table J_SRVREQ and sending J_SRVREQ.   
I have a client who INSERTS a record into table J_SRVREQ.  The client is set to Refresh J_SRVREQ.  Insert is done using the UPDATE for this table but it is called in code and not from the Browse.
I would think that anyone then watching J_SRVREQ with a NTBrowse which is open (user B) would see that a record was added and NetRefresh would kick in and REFRESH the NTBrowse on J_SRVREQ for any user that has this table open and is using NetRefresh.
However, after client creates a new record for J_SRVREQ, the NTBROWSE on J_SRVREQ is NOT UPDATING - I have to do a manual refresh to see the new inserted record.
What am I missing to tell the user B that the Browse needs to be refreshed when a record is added?

Thanks,
Ron
26
Web Server - Ask For Help / Re: Use DRAW to Create QR Code in NT app?
« Last post by rjolda on October 30, 2025, 01:30:02 PM »
Hi, got the answer from NT User Group.  Short answer - you need an image field for QR to work its magic.
I created a window and added the QRCODE template ( that put an image on the window for QR Gen to use.  I am passing p_web to the procedure so I pass in my QRTEXT and QRSaveFileName and call the QR_Window, generate the QR CODE, Display it and save it and close the widow and save it and return to my NT procedure.  works great.
I will have to try the method Osquiabro described.
Thanks Osquiabro and Don,
Ron
27
Web Server - Ask For Help / Re: Use DRAW to Create QR Code in NT app?
« Last post by DonRidley on October 30, 2025, 08:25:15 AM »
Nice!
28
Web Server - Ask For Help / How to use webfonts, etc. on web app button?
« Last post by jking on October 30, 2025, 08:20:05 AM »
Hello all,

     I'm trying to improve the icons/images on a NT 14.30 web app.  In the template, Button tab, there are fields for Icon and Image. I have successfully used a few image files, in the image field, such as 'images/search.png'.  However, I tried to use 'calendar large' and 'calendar xlarge' in the icon field, to use a Webfont icon.  Both are the same size and very difficult to see.  Any suggestions?  Other font sets I might add that work better?

Thanks,

Jeff King
29
Web Server - Ask For Help / Re: Use DRAW to Create QR Code in NT app?
« Last post by osquiabro on October 30, 2025, 08:17:14 AM »
Hi Don, with QrCode.dll the resolution is perfect a generate small image, very fast and less code
30
Web Server - Ask For Help / Re: Use DRAW to Create QR Code in NT app?
« Last post by DonRidley on October 30, 2025, 04:20:53 AM »
Good day Ron,

If you take a look at the NetTalk webserver Insight Graphing example's WebGraphSize procedure you will find:

Code: [Select]
If not p_Web &= NULL
  loc:silent = p_web.GetValue('_Silent')
  p_web.DivHeader('WebGraphSize_2','nt-left')
  If loc:Silent = 0
Window{prop:hide} = 1
ThisGraph2.Reset()
ThisGraph2.DrawGraph()
ans = 'images\@@@' & format(random(1,99999),@n05) &'.png'
ThisGraph2.SaveAs(clip(p_web.site.WebFolderPath) & '\' & Ans)
Window{prop:pixels} = 1
packet.append(p_web.CreateImage(ans,ThisGraph2.Width,ThisGraph2.Height,ThisGraph2.HeaderName))
  End
  p_web.ParseHTML(packet,1,0,NET:NoHeader)
  packet.SetValue('')
  p_web.DivFooter()
  Return(Level:Notify)
End

The important parts are:

Code: [Select]
ans = 'images\@@@' & format(random(1,99999),@n05) &'.png'       !<<--- Path string to an image file is create
ThisGraph2.SaveAs(clip(p_web.site.WebFolderPath) & '\' & Ans)   !<<--- Actual image file is saved to the path
packet.append(p_web.CreateImage(ans,ThisGraph2.Width,ThisGraph2.Height,ThisGraph2.HeaderName))  !<<--- HTML for the image is generated

ThisGraph2.SaveAs:

Code: [Select]
InsightRoot.SaveAs   Procedure  (string FileName)
f            string(255)
  code
  if self.thisDraw &= null then return .      ! ghnn
  f = filename
  if instring('.',lower(f),1,1) = 0
    f = clip(f) & '.png'
  end
  if instring('.wmf',lower(f),1,1)
  elsif instring('.bmp',lower(f),1,1)
    Self.ThisDraw.Writebmp(f)
  elsif instring('.png',lower(f),1,1)
    Self.ThisDraw.WritePng(f)
  end

SaveAs uses draw to create the image that is eventually displayed using p_web.CreateImage.

Now, this is one way to approach this.  You could use this method to generate a QR code image and display it but you're going to run into the main problem I have with Insight graphs in a web app...resolution.

If you want a higher resolution image with this approach you'll need to make the container Window larger and the image control larger which creates a larger image.  The larger the image file then the slower the HTML page loads.

So, this is a long winded way of saying that I suggest you use a JavaScript approach using jQuery.

Here's a link to a jQuery plugin for QR codes:

https://github.com/jeromeetienne/jquery-qrcode

I think this would be a better way.  Generate the QR code client side.

That's my humble opinion.
Pages: 1 2 [3] 4 5 ... 10