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 ... 3 4 [5] 6 7 ... 21
61
Hi,
Basic question which I am having problems solving.  NT14.16, C11.0.136.
SendEMail procedure has:
  Prototype:  (EmailParametersGroup pEmail),long,proc
  Parameters:  (EmailParametersGroup pEmail)


THis works correctly ( on same thread):
  If SendEmail(parms) = 0
    .....
   end

However, i want to send E mail on its own thread:
START(SendEmail,35000,parms) gives "No Matching Prototype error"

What am I missing?
Thanks,
Ron

62
Web Server - Ask For Help / Logic to force user to change initial password
« on: February 12, 2024, 03:06:50 AM »
Hi,
NT 14.16
Clarion 11.0.13630
My kiosk users are going to be given an initial password.  I want them to set their own password when they first log into the program ( for security ).  How can i accomplish this?  Should I re-direct them to another login reset page or do it directly in code in the login page for the site?  Other suggestions on how to handle this?
Thanks,
ROn

63
Web Server - Ask For Help / Limit number of login attempts
« on: February 11, 2024, 03:21:05 AM »
Hi
NT 14.16
Clarion 11.0.136
Want to give the user 5 tries to get password correct then get them OUT of the Login procedure back to index page.
I have set  p_web.SSV('Tries', tries) and increment each time the "SAVE button is pressed.  I tried to set loc:formaction = 'IndexPage'  when they have exceeded the number of tries but does not do anything.
What is proper way to get back to Index page?
TIA,
Ron

64
Web Server - Ask For Help / Re: Help with NT 14.13 API
« on: February 06, 2024, 10:55:48 AM »
Jeff,
GREAT!  Let us know if you want us to try and break it.
Ron :)

65
Web Server - Ask For Help / Re: Help with NT 14.13 API
« on: February 06, 2024, 08:53:47 AM »
HI Jeff,
I have found that looking at code in Embeditor Source is the best way to look at what is going on.  Also, at times I have gone to the NetTalk source clw files to chase down what it is doing....
I would think that there would be an api "action" setting - e.g. = Insert, Read (get), Delete.  I might attempt to Hijack a "READ" type API and manually do my checks and inserting and return a value.
In my thinking, I would not worry about sending and error message to an Institution which is NOT IN MY TABLES.  I would send a verification message about a "Valid Insert"
Ron

66
Web Server - Ask For Help / Re: NT browse CELL Border
« on: February 06, 2024, 05:32:17 AM »
Solved!
I unchecked the "Apply to Whole Cell"  on teh CSS for the column
and CHECKED the "APPLY to CONTENTS"
Now I get my border around the cell!
Ron

67
Web Server - Ask For Help / Re: Help with NT 14.13 API
« on: February 06, 2024, 03:28:11 AM »
HI Jeff,
I can't see all of your code.  However, it sounds like you are using 'built in'  action models.  i.e. You are calling for a record insert so that the system does attempt to do that.  You then test the condition later down the tree and if the patient is there - fine.  If not, you have an orphan record hanging around - sounds like that.

I have not played with the API yet _ but I am going to be getting very friendly with it later this week as it is on my schedule!  I would maybe HIJACK the code BEFORE the system does the requested INSERT ( Bruce usually leaves embeds around these things) and run your code first.  If no instituion then then you jump out BEFORE the actual insert and return them a message that it could not be completed.

My second thought is if the system has already primed I would consider something like:
IF SELF.Request = InsertRecord AND SELF.Response = RequestCancelled
   Access:MyFile.CancelAutoInc
END
This would "Undo" the Primed Inserted record.
Ron

68
Web Server - Ask For Help / Re: Help with NT 14.13 API
« on: February 05, 2024, 04:30:51 PM »
Jeff,
Something doesn't seem quite right here - something seems missing. You should be able to have your study record inserted and be able to get the values BEFORE returning a result.
When I am manually adding to a table I use the following code:
If Access:File.PrimeAutoInc() = Level:Benign
 Do stuff.
  !  needs an INSERT() to save the record here
.
The Primed fields (autonumbered) are available in the "Do stuff." section of the code BEFORE the Insert is called.
Not sure of exactly what you are trying to do but this might help you get in the right direction.
Ron

69
Web Server - Ask For Help / NT browse CELL Border
« on: February 05, 2024, 05:01:52 AM »
Hi,
NT 14.16
C11.0.136
I am trying to put a border on the cells in one column.  I have set the background and foreground colors using the css property for the field in the CSS tab.
However, I am using the ' Additonal CSS Properties:'  (which I used to set colors)
I ticked "Apply to Whole Cell'
CSS property:  other
Property: 'border-style'
Value: 'dashed'

This really has no effect on border.
What is recommended action to get a border on the cells of one column?
Thanks,
Ron

70
Web Server - Ask For Help / Re: Antimalware Service Executable
« on: January 30, 2024, 01:53:26 PM »
HI Richard,
What I have found on my Windows 11 PRO machine, when my machine gets "bogged down" I open Task Manager and immediately the background tasks settle down.  So, now I keep Task Manager open all the time in a small window and that has kept the background tasks at bay.  Secondly, I am not sure if you can get the PID (process ID) for antimalware service - you might be able to lower its priority setting. 
Ron

71
Web Server - Ask For Help / WebCam criteria for reading barcodes
« on: January 29, 2024, 07:04:10 AM »
HI,
NT 14.16
Clarion 11.0.136
I have 3 webcams - 1 is on old Logitec with autofocus, and 2 are generic web cams.  Only the Logitec will identify and read barcodes.  It seems like AUTOFOCUS is the key piece.  Is that correct?
What cameras are folks having high reliability in reading barcodes and QR codes with NT?
Thanks,
Ron

72
Hi All,
After lots of reading, I think that the solution is to Have a NT Server assign a port to each kiosk and it will send and listen on the assigned port for that kiosk.  On the kiosk side, I can write python code to talk to and listen on a specific port.  This way, the NT server and each kiosk can send messages back and forth ( not a frequent occurrance but necessary for operation) to get the job done.  I have to do more reading but his seems to be a solution.
Will let you all know when I try to implement it.
Ron

73
Hi All,
Again, I am not sure what to ask but here is the scenario.  I am looking at running a Kiosk with Raspberry PI.  I will have a browser in the kiosk which will connect to the NT server.  It will most likely be Chromium or Firefox for Raspberry Pi.  The kiosk is going to have a number of storage boxes.  At some point when the customer validates information on the NT server, the server will need to send a command to the kiosk ( it will know which kiosk to send the command to - and the kiosk browser will be connected to the NT Server). The command will be something like "unlock drawer #3".  At that point, the browser in the kiosk will send a notice to the onboard serial lock controller to unlock #3.   I just don't know enough about this browser stuff to get a handle on sending information to the remote (non NT browser client and having the non NT client browser act on it.  Seems like something for javascript in the client browser?  I am starting this project with Windows Computer in kiosk so will exchange values with a a NT client running on a web socket and channel.  SO, If I go to Raspberry Pi, how can my NT server send a command to the Browser running on the kiosk?  I am not sure if I can use javascript to program the Raspberry Pi browser to watch a socket or if I need to do an API query from the kiosk browser to NT server on a regular basis?
Any thoughts and insight would be helpful.
TIA,
Ron

74
Web Server - Ask For Help / NT Paths - trying to sort this out
« on: January 22, 2024, 07:08:34 AM »
Hi All,
NT 14.13  C 11.0.136
I am trying to get a handle on PATHS for a web server.   Right now,  I am working only with the WebServer.AppPath .  All my files are in the same directory as my Web Server exe.
I am going to have a different folder for each user. i.e.  User 1 will have folder: C:\User1  and User 2 will have the folder C:\User2. 
I was going to use the SETPATH() once each user logs in and I know their specific folder.  e.g. SeTPATH('C:\User1')  or SetPath('C:\User2').  In this way, they will only see their data.  I know that the NT training book uses Variable file names but I would like to use the Setpath() to get to each data set.
Questions: 1. Is using SetPath() a valid approach to do this?
                2. If  User1 is in C:\User1 directory and UPLOADS a file to the server.   Where will it go?   WIll it go to .web\uploads relative to where the App EXE is running or will User 1 have an UpLoads directory in C:\User1

I have the option of making USER 1 and USER 2 folders beneath the web folder so I am not all over the disk - is that preferable?   
Thanks for any insight.
Ron

75
Web Server - Ask For Help / Saving an image to the \web\images folder
« on: January 20, 2024, 06:56:40 AM »
Hi,
NT 14.13  C11.0.136
I am trying to save an image to the folders beneath the folder from which the web server is running.  I want to save an image to \web\images  folder.
My code saves the image to the folder from which the web server is running (not the desired subdirectory).

            st5.SetValue(imgref)
            SaveFileName = 'IN_' &   p_web.GSV('JSRV:GUID') & '.png'  ! this is the actual dropoff guid as file name
            RelativeFileName = p_web.MakeWebRelative(SaveFileName)
            ER# =    st5.SaveFile(RelativeFileName)  ! for direct save  1 = success, 0 = fail

I thought that p_web.MakeWebRelative(SaveFileName)  would set the save directory to \web\images but that is NOT the case.
How can I get the pictures to the \web\images folder so that the server can find them and display them later?
TIA,
Ron

Pages: 1 ... 3 4 [5] 6 7 ... 21