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 ... 25
1
Web Server - Ask For Help / Re: WebServer Logging to Disk issue
« on: June 14, 2025, 03:25:13 AM »
Hi Kurt,
FWIW, I have a separate table of LOGINS.  It is a TPS file.  I am able to use this to record each VALID login to the system.  I write a record to it after I validate each login.  That may be a better solution for you if you are trying to track valid logins.  BTW, make sure that the additional table is OPENED when you write to it - either have the procedure open and close it or you must do it yourself.
Ron

2
Web Server - Ask For Help / Re: WebServer Logging to Disk issue
« on: June 12, 2025, 08:09:30 AM »
Hi Kurt,
I have not played with the Save to Disk function for logs and I am on the road. I have found that many things in NT get solved by snooping around and trying to make sense of the stuff around what you are trying to do.
First, I believe it is an ASCII file.   Is there a RETURN added at the end of each line?  I am not sure if it is added automatically but if there isn't any and the line length is BIG - it may appear to have only one record?
The logins are apparently recorded in a queue.  I would look at the queue and see what is there and make sure that you have the correct item to write to your file.  eg -  I am not sure if it takes each addition to the queue and runs the record from this routine or if this routine needs to fetch the last queue record to have it to write to disk.
I might use and ADD(record) as opposed to Insert record as it is an AScII file.
Poking around with some messages or trace statements will help you sort this out.
Sorry I don't have an answer but I find that with some information and direction, the answer can often be sorted out.
Ron

3
Web Server - Ask For Help / sending SMS via GSM Modem
« on: June 09, 2025, 07:03:17 AM »
Hi,
NT 14.21, C11
Can Net Talk send SMS messages directly through SMS modem? This would be for multiple carriers in the United States. 
I don't want to send via an Email address to specific carrier but to their cell phone number directly.  I don't have a lot of text messages so I don't want to set up a Twilio account or TextGrid account.
THanks,
Ron

4
Thanks,
I will give that a try!  But - where do you put the css?  You have to be putting it in the app and not the custom.css file.  Does it go into css for the field itself?
Ron

5
Hi
Using  NT 14.21 and C11
Can CSS capture a value change - e.g. when the Total Amount goes form $10.00 TO -$5.00 ( minus value)?
If it can, can you give some code or hints?
If it can't it probably will take javascript?
Thanks,
Ron

6
Web Server - Ask For Help / Re: Refresh NWB Header
« on: May 28, 2025, 12:47:58 PM »
Hi,
If your Memory Form IS the Update itself, then there probably won't be any GotFocusBack since it will still be in focus (never lost focus).  I might attempt a memory form with the variable and GP TO ANOTHER PROCEDURE which actually does the insert the form.  WHen the form is completed and the record inserted, "the program" returns to the Memory Form itself -  then the GotFocusBack should trigger and you can update your variable. 
Ron

7
HI
With Bruce's help I found out that the TakePicture button is dedicated to javascript which runs and WILL NOT SEND a value to the server. 
By putting the hide condition and then the refresh fields in the WEBCAM field!  That was the trick.
Ron

8
Web Server - Ask For Help / Re: Hide Webcam after photo is taken
« on: May 22, 2025, 02:06:17 AM »
Hi Bruce,
My Webcam field (equate AON:ThisPicture) has the following hide statement:
Hide if Clarion:  p_web.GSV('PhotoDone') ='YES'

I have the AON:ThisPicture value in the Reset box for TakePhoto button.  The Take Photo button also sets: p_web.SSV('PhotoDone') ='YES')

Ron

9
Web Server - Ask For Help / Re: Hide Webcam after photo is taken
« on: May 21, 2025, 03:08:06 PM »
Yes, I am refreshing it.
Ron

10
Web Server - Ask For Help / Hide Webcam after photo is taken
« on: May 21, 2025, 12:46:25 PM »
Hi all,
Using NT14.21 , Clarion11.
I have a form with a Display Field - DisplayPhoto which displays the photo when the picture is taken. 
On the same screen I have a TakePhoto button and a Webcam field which uses the environment Camera to take a photo (AON:ThisPicture)  and display it in the DisplayPhoto field.
My TakePhoto Button has the embed:
  p_web.SSV('PhotoDone', 'YES') ! we use this to display buttons - 1= we have taken picture -display ?Crop Photo button
 this button is set to Reset the valued of AON:ThisPicture ( which is the field equate that stores the picture)

My Webcam field (equate AON:ThisPicture) has the following hide statement:   p_web.GSV('PhotoDone') ='YES'

What I am finding is that the photo is taken and displays, the webcam display is gone and then the screen flickers and the webcam is back on display as if the webcam is set to ALWAYS display no matter what the programmer (like me) is trying to do.

Anyone with insights on this?
THanks,
Ron

11
Web Server - Ask For Help / Re: Call a related table update form
« on: May 16, 2025, 10:18:17 AM »
Hi Poul,
Are you going to use a Button to call Table B Update?
On the Button Code - "On CLick" - you can call the Update PROCEDURE for Table B here.  You can set any Parameters to pass to Table B on the next line.  Lastly the last check box "Include Action" you can check and set the action to Insert, Change as appropriate.  That is where I would start.
Ron

12
Hi,
That code looks like it will do just exactly what I need it to do.
Will check it out.
Thanks,
Ron

13
Hi All,
NT 14.21, C11
I am having the users take a photo of a document (e.g. drivers license) on a black background.  Thanks to Charles Edmund and ImageEx, he gave me a routine to remove the background and crop the picture so that I have only the document.  It is all code.  When the user takes a photo, I want to be able to snag it either before display in the NT webcam picture or I could give them a button to "modify it" and display it in another NT webcam picture.  I can save the camera image to disk and manipulate the saved file BUT, I want to grab the image in memory and manipulate it.   The take photo and display it appear to be javascript functions in all.js.
I have not played with javascript so I don't have a clue as to how to go about doing this in Javascript in an elegant fashion.  Basically, ImageEx can import the photo from a Handle of the Global Memory BLock holding the image or from a URL ( or a file on disk). 
So, anyone have any ideas about how to snag this image in memory and send it to Clarion Source code and return it to image in memory for display in the NT webcam field? 
The javascript code seems to be:
                  case 1:  //Take Pic   
            $('#' + id).on('click',function(e){_this.takeSnapshot(e)});
            break;   
and
// Load canvas
$.fn.getCanvasImage = function(type) {
   if (!this[0].toDataURL) {return null;}
   if (type === undefined) {
      type = 'image/png';
   } else {
      type = type
         .replace(/^([a-z]+)$/gi, 'image/$1')
         .replace(/jpg/gi, 'jpeg');
   }
   return this[0].toDataURL(type);
};

Anyone with good javascript skills who can shed some insight and maybe some code to manipulate the image?
Thanks,
Ron


14
Hi
NT 14.21,  C 11
I am running a NT app on browser and also in browser on mobile device ( Android - chrome).
I can change the font size on browsers EXCEPT FOR MOBILE DEVICES (Phone)
Using:

:root{
   --font-family:"Open Sans","Segoe UI",Tahoma, Verdana, Arial, Helvetica, sans-serif;
   --font-size:8pt;
   }

I can change the font size for apps running on desktop  - I can make the font very small.  HOWEVER,
The font size does not get smaller on Mobile Device (phone).  That is my issue, I want to make it smaller - so that the user can make it bigger if they want.  BUt that is NOT happening.
I don't see any settings for font specific to @media screen and (max-width: 600px).
Indeed, if I put a specific font size in that section like this:
@media screen and (max-width: 600px) {
          body{
         font-size:8px;}
   }
It does not make the font smaller.   Seems like something else is setting font minimum size on mobile phone?  Maybe mobile browser settings?
Any insights?
THanks,
Ron

15
Web Server - Ask For Help / Re: How to adjust font size NT Variable
« on: May 05, 2025, 07:02:43 AM »
HI Jane,
Yes, I realized that NT used variables to set the overall information for the site.  However, I had no clue how to change the variables.
Your information was very helpful.  I actually got it implemented in my custom.css and got it Working!
Thanks,
ROn

Pages: [1] 2 3 ... 25