Re: Printing an existing PDF file with 4D silently.
Hi Kirk, I use launch external process and the "lpr" command on both Mac and Windows. For Mac it is built in. On windows you need to go to the control panel (win7 and up) or settings (win10) and look for "LPR Port Monitor" in the "turn windows features on or off" section. (If you have windows pro, it's not an option for Windows Home) Depending on the network you could just make sure the lpr command line is installed on the server and have all the printers setup on the server. Then either have the client / web interface choose a printer or have a default based on the machine requesting the PDF to be printed. Something like this should work right out of the box on Mac. Windows it changes only slightly based on the path of the PDF. You can get the a $printerName to use from the command PRINTERS LIST. LAUNCH EXTERNAL PROCESS("lpr -P "+$printerName+" "+Replace string(Convert path system to POSIX($pathToPDF);" ";"\\ ")) - Matt -- Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: Socket Communication
Hi everyone, Just wanted to followup and let you know that I am on the schedule for the next 4DMethod webinar session on March 13th where I will present my component and go through the "why" and especially the "how" with examples and benefits. https://4dmethod.com/schedule/ Thanks Brent for organizing the 4DMethod blog and creating this platform for the 4D community to share! - Matt -- Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: Socket Communication
Hi Steve, I have been working with WebSockets on a component I wrote for 4D. I love web sockets over long-polling. I designed and created a component that can just be dropped into any database. I am planning on demo-ing the component with examples on 4DMethod but figuring out the right date. As soon as it's confirmed with Brent, I will let you know if you want to tune in for that presentation. I use web sockets for a number of things... like syncing data easily between many web views and for keeping track of some iPads that should be always on. As soon as they get powered off, the 4D Server instantly knows and sends a message to the employees affected. I also use them in a mobile app I designed to skip Apple Push Notifications and Google Firebase Notifications if the app is open. If it's open I can push a message directly to the app and skip the middle man. I also wrote an app that pops up a camera from a zoneminder when motion is detected, works pretty well for my employer's need. - Matt -- Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: Apple Push Notification Servers (APNS)
Hi Tom, That is currently correct that 4D requests don't currently support http/2 request. But there is a curl plugin by Miyako that supports curl calls with http/2 right from 4D. https://github.com/miyako/4d-plugin-curl-http Scroll down to the very bottom of the readme and you will see an example of a http/2 request. - Matt -- Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: How to get a the hidden array of a listbox?
Hi Kirk, Use: LISTBOX GET ARRAYS (plural) and then loop through the parameter "arrColsVisible" boolean array to find the hidden arrays. http://doc.4d.com/4Dv15/4D/15.4/LISTBOX-GET-ARRAYS.301-3274660.en.html - Matt -- Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **