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
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

2
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

3
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

4
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

5
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

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

7
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


8
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

9
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

10
Web Server - Ask For Help / Re: How to adjust font size NT Variable
« on: May 04, 2025, 02:13:38 AM »
HI Jane,
THANKS for all the useful information.  It is sometimes hard to get information on the nuts and bolts of NT.
Especially, I did not think that you could overwrite the variables and their values ( I still have lots and lots of this css stuff to learn...)
Ron

11
Web Server - Ask For Help / How to adjust font size NT Variable
« on: May 03, 2025, 02:45:13 AM »
Hi All,
NT 14.21  and C11
I am using base theme for my app.  The base theme has the line: --font-size: 12pt;
base.css has this value for variable  --font-size: 12pt;  :

root {
  --icon-size: 32px;
  --icons-light: url("/icons/nt-icons-light.svg");
.....
  --icons-error-scale: 1.75;
  --icons-error-transform: scale(var(--icons-error-scale));
  --font-family: "Open Sans","Segoe UI",Tahoma, Verdana, Arial, Helvetica, sans-serif;
  --font-size: 12pt;     <<<<<<<<<<=================  If I change it here, it still does not affect the font - I change it to 8 pt but when I look in inspector, the value is still 12.

How can I change the overall font size for the entire app?
Am I in the right place?
I did gzipall after changing it to 8 pt but the inspector still says 12 pt.
Do I need to clear the cache?
TIA,
Ron

12
Web Server - Ask For Help / Re: Modify the lookup procedure?
« on: March 20, 2025, 01:00:48 PM »
HI Jeff,
You will need to run a debugger program to see the TRACE statements. 
When I am not wanting to run a debugger, and I am lazy, I just put in a message statement with a display of the variable field and its value. My message windows are set to time out after 3 seconds so they will auto close and the program will keep running.
Yes, I always get the ruler smashed across the knuckles but this is sometimes a quick way to get an answer to a simple problem!
Ron

13
Web Server - Ask For Help / Re: Modify the lookup procedure?
« on: March 19, 2025, 04:25:17 PM »
HI Jeff,
sometimes the Display field drives me nuts.  I would put a p_Web.Trace(' calculated value:' & loc:DateInterval ) when the calculation is done.  I suspect that the calculation is done on the Server side when the second date is entered. That is where I would put the trace.  If you get the correct value in the trace, then your math is correct - it is simply a display issue.  Some of these forms go in and out of scope so many times, I find it is easier to place the value in p_web.SSV('loc:DateInterval' , loc:DateInterval ).  I would then repeat the trace with p_Web.Trace(' calculated value:' & p_web.GSV('loc:DateInterval') ).  If you are getting the correct value then try displaying the Session value for  loc:DateInterval.  That would be my suggestion as to how to see what is going on.  Trace really helps sort these things out.
Ron

14
Web Server - Ask For Help / Re: Modify the lookup procedure?
« on: March 18, 2025, 03:26:27 PM »
HI Jeff,
What you are trying to do is very unclear!  However, under the Client-Side tab for the field you when refresh Prompt, value and comment.  Also, When the field is accepted, You cn send new value to server and underneath that is a list of Objects to be RESET.  So, if you have calculated your value but not reset the object, then it won't display. 
Ron

15
Web Server - Ask For Help / Re: web26 example File Upload
« on: March 17, 2025, 03:18:53 PM »
Hi Richard,
I tested out example 26.  I had to delete the MEDIa vIEW FROM THE server as this threw two eerrors for unknown procedure...
It is not clear how this is supposed to work from just looking at it.  I did not get anywhere with the client.  I looked at the server app and tried to upload a mailbox picture.  Did not work.
I have not spent a lot of time with this example.
FWIW
Ron

Pages: [1] 2 3 ... 25