NetTalk Central

Recent Posts

Pages: [1] 2 3 ... 10
1
Web Server - Ask For Help / Re: Uploading files loc:AcceptTypes
« Last post by rjolda on October 13, 2025, 03:19:02 PM »
Ahhh,
I see how you are doing this.
Thanks,
Ron
2
Web Server - Ask For Help / Re: Uploading files loc:AcceptTypes
« Last post by osquiabro on October 13, 2025, 02:07:03 PM »
for me  work in embeded  6 add Late Server Side this code

Mem:FotoExtension =  upper(st.ExtensionOnly(p_web.GSV('Loc:Path')))
IF NOT INLIST(Mem:FotoExtension,'JPG','GIF','TIFF','PNG') OR p_web.GSV('Loc:Path')=''   
    loc:invalid = 'Loc:Path'
    loc:Alert = 'FOTO INVALIDA SOLO SE ACEPTAN: JPG,GIF,TIFF,PNG'
    p_web.Script('ntAlert("Invalid Document Type.","ALERT");') 
    remove(p_web.GSV('Loc:Path'))
    p_web.ssv(Loc:Path,'')
    CLEAR(Loc:Path)
    CLEAR(Mem:FotoExtension)
    EXIT
END
3
Web Server - Ask For Help / Re: Uploading files loc:AcceptTypes
« Last post by rjolda 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
4
Web Server - Ask For Help / Uploading files loc:AcceptTypes
« Last post by rjolda 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')
5
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
6
Web Server - Ask For Help / Re: Need to Trap CLOSE of MEMFORM
« Last post by rjolda 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
7
Web Server - Ask For Help / Re: Need to Trap CLOSE of MEMFORM
« Last post by osquiabro on October 10, 2025, 12:06:23 PM »
create your own button for close.
8
Web Server - Ask For Help / Need to Trap CLOSE of MEMFORM
« Last post by rjolda 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
9
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
10
Web Server - Ask For Help / Re: Uploading a picture file from mobile device
« Last post by rjolda on October 05, 2025, 03:32:12 AM »
HI,
Used the FileUpload field and managed to get it correct and working.
Ron
Pages: [1] 2 3 ... 10