NetTalk Central

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - rjolda

Pages: [1] 2 3 ... 28
1
Web Server - Ask For Help / Re: NetRefresh
« 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

2
Web Server - Ask For Help / NetClient.Send error??
« 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

3
Web Server - Ask For Help / NetRefresh
« 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

4
Web Server - Ask For Help / Re: Use DRAW to Create QR Code in NT app?
« 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

5
Web Server - Ask For Help / Use DRAW to Create QR Code in NT app?
« on: October 29, 2025, 12:19:02 PM »
Hi,
NT 14.36  C11.0136
I want to generate a QR code with DRAW.  I am currently doing it with ezCam but if I can do it with DRAW it will be much cleaner.
PROBLEM.  DRAW requires an Image.  I have tried creating QR without the Image on a window and it does NOT work.
If I place an IMAGE on the window, I have to DISPLAY the image and then I can write it to a PNG file.
The documents state that displaying the image is optional- however, If I don't display the image, it will not save ( save writes a black square ).
Anyone with insight?
Do I have to try to write it to an Image file in NT first?
Thanks,
Ron

6
Web Server - Ask For Help / Re: Uploading files loc:AcceptTypes
« on: October 19, 2025, 12:43:10 PM »
Solved,
'application/jpg,application/png,application/pdf'  is the syntax.  However, this will limit the files to pick from to those file types.
The user can use "All files' and upload something else.  So, they can get around it. 
This is where the code above from Osquiabro comes in.  If someone overrides the suggested file types and actually uploads something like a BMP file, then his code will intercept it and delete it with a message.
Ron

7
SLow JPG image printing - solved.
I got some insights from folks on discord.
While I used imageEx to shrink original JPG file from 4 MB to 200KB it still printed very slowly.
The answer was to actually change the size of the picture.  It was 4080px x 3072 px.  I shrunk it down to 408 x 300 and it was the RIGHT size and printed Normally!  So the answer for me was taking the original picture and shrinking it to 10% and compressing it with JPG compression to 20 %.  Just right!
Ron

8
Web Server - Ask For Help / Re: Uploading files loc:AcceptTypes
« on: October 13, 2025, 03:19:02 PM »
Ahhh,
I see how you are doing this.
Thanks,
Ron

9
Web Server - Ask For Help / Re: Uploading files loc:AcceptTypes
« on: October 13, 2025, 06:57:37 AM »
Hi,
Found it below - just have to uncheck Images and use the "Custom" field.  Just have to figure out syntax now!
Ron

10
Web Server - Ask For Help / Uploading files loc:AcceptTypes
« on: October 13, 2025, 02:20:50 AM »
Hi
C11
NT14.31

I want to limit the file types that get up loaded in the entry type fileupload  to jpg, pdf and bmp.
 
There is a local variable whichi is :     loc:AcceptTypes = 'image/*'
This is set in the template if I check allow images to be uploaded.

How and where can I limit them to uploading ONLY  jpg, pdf and bmp files?
THanks,
ROn


BTW it is embedded in here so I do not have a chance to edit it:
 If Not (1=0)  ! SecFieldHideStateRtn
    ! --- FILE UPLOAD ---
    loc:readonly = Choose(loc:viewonly,'readonly','')
    loc:javascript = ''  ! MakeFormJavaScript
    loc:capture = net:Environment
    loc:AcceptTypes = 'image/*'
    loc:UseHTML5Uploader = 1
    If loc:UseHTML5Uploader = 0 and loc:viewonly = 0
      packet.append(p_web.CreateInput('File','JSRV:Envelope_photoname',p_web.GetSessionValueFormat('JSRV:Envelope_photoname'),loc:fieldclass,loc:readonly,loc:extra,,loc:javascript,p_web.PicLength('@s199'),'Press to select or take a picture of keys or envelope to upload','dropPhoto',,'',,,,'SM_UpdateJ_SRVREQ_SMALL_SCREEN',loc:AcceptTypes,loc:Capture,'')  & p_web.CRLF)
    ElsIf loc:viewonly = 0
      loc:fieldclass = p_web.combine(loc:fieldclass,' nt-fileinput')

11
Hi,
Charles of Lansrad suggested that I use the Bitmap Class of ImageEx and compress it down - indeed, I can compress it from 3.4M to 300K with little loss in quality for my purposes.  Prints faster!
Ron

12
Web Server - Ask For Help / Re: Need to Trap CLOSE of MEMFORM
« on: October 10, 2025, 12:24:18 PM »
Ahhh,
That is the answer.  I won't rely on the close button of the Form, but I can create my own close button and do exactly what I want.
Thanks,
Ron

13
Web Server - Ask For Help / Need to Trap CLOSE of MEMFORM
« on: October 10, 2025, 04:01:36 AM »
Hi
C11
NT 14.31
I have a MEMFORM. Generate form tag is Checked ON. The button which calls this form sets the action to CHANGE.
On the form, I turn on a light over the selected BIN.   
I have a Button which the user presses to confirm that they have placed an item in the lit up bin.  This turns OFF the bin light.
However, If the user decides to NOT do the operation - and press the CLOSE button, I need to trap that and turn off that bin light.
SO far, I have not been able to trap any events or stages in the web form.
Do I need to trap the ajax for the CLOSE button and use that to check the bin light status?
If so, how and where would I do that?
Other suggestions?
Thanks,
Ron

14
Hi,
Clarion C11
NT 14.36
I have a report which prints to PDF using Net Talk Extension to report procedure with SV PDF Generator.
When I do not include a picture on the report it is blazing fast.
When I DO include a picture on the report it bogs down and takes about 4 seconds.... but it does print correctly.
Picture is 3.4 Mb ( from phone camera).  It is full color - however, I don't need to print color as most places will probably print b/w.

So any way to speed up the printing with the photo?
Should I use a different PDF generator??

I did some digging and PDF can be printed as an image and a few other things.  However, I don't see any settings for PDF print.

Any insight or suggestions appreciated. 
Thanks,
Ron

15
HI,
Used the FileUpload field and managed to get it correct and working.
Ron

Pages: [1] 2 3 ... 28