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.
91
The Rest - Ask For Help / NetAuto error on Google Cloud
« on: August 13, 2018, 12:51:26 AM »
For about 16 years (!) I've been using NT to limit the number of concurrent users in one of my apps using a NetClient object. It works by counting the number of clients attaching themselves to a service queue and comparing that number to a file holding the number of seats allowed. Rock solid, the code hasn't been touched for all these years.
Now one customer has moved the app to Google Cloud and upon starting the program they're getting this error:
Any clue as to what is happening here? Is this because NetAuto only works on a LAN?
I do have SecWin but I'd rather not have to go thru the hazzle of re-writing my license check function, if possible.
Peter
Now one customer has moved the app to Google Cloud and upon starting the program they're getting this error:
Quote
-3 Too many NetTalk NetAuto Instances on one machine.
Error occured in function (Parent)NetServer.Init
Any clue as to what is happening here? Is this because NetAuto only works on a LAN?
I do have SecWin but I'd rather not have to go thru the hazzle of re-writing my license check function, if possible.
Peter
92
Web Server - Ask For Help / Re: The Cards Example
« on: August 07, 2018, 10:28:01 PM »
Out of curiousity: has anyone else tried this - with the expected (demonstrated) behaviour? And if so, what did you do to make it work?
Peter
Peter
93
Web Server - Ask For Help / Re: The Cards Example
« on: August 03, 2018, 04:12:59 AM »
Hi Bruce,
It sure helps! At least it takes care of the line breaks within the cells.
But there are other things like width and wrapping that are not behaving like in your demo. It's almost as if you've got a different set of css-files in play.
Anyway, I'm going to play some more with the css and see what I can get out of it.
Peter
It sure helps! At least it takes care of the line breaks within the cells.
But there are other things like width and wrapping that are not behaving like in your demo. It's almost as if you've got a different set of css-files in play.
Anyway, I'm going to play some more with the css and see what I can get out of it.
Peter
94
Web Server - Ask For Help / The Cards Example
« on: August 01, 2018, 09:01:04 PM »
Hi Bruce,
I'm trying out the cards example that you demonstrated in webinar #196 but I'm getting some weird results.
In your demo each field displays on a separate line inside the cell whereas I get what appears to be random line breaks.
I'm also having some problems with the number of cards being displayed on each 'row'. Even though I've set the cell width like you demo'ed I sometimes get 8 cards per 'row' and sometimes only two thus making the cards width different.
Could this be because I'm using the 'ShoeStrap2' theme rather than 'base'?
On a side note the same class name is generated twice into the browse row:
Peter
I'm trying out the cards example that you demonstrated in webinar #196 but I'm getting some weird results.
In your demo each field displays on a separate line inside the cell whereas I get what appears to be random line breaks.
I'm also having some problems with the number of cards being displayed on each 'row'. Even though I've set the cell width like you demo'ed I sometimes get 8 cards per 'row' and sometimes only two thus making the cards width different.
Could this be because I'm using the 'ShoeStrap2' theme rather than 'base'?
On a side note the same class name is generated twice into the browse row:
Quote
<div class="nt-browse-grid-row nt-browse-grid-row nt-browse-row-data browsecatalog-row-data" data-elem="browse-row" data-do="dc">
Peter
95
Web Server - Ask For Help / Re: Re: NT 10.27 Issues
« on: July 28, 2018, 12:24:30 PM »
Not quite. If you've got one or more web service procedures you'll get in trouble if not using the latest build of xFiles. But otherwise, yes.
Peter
Peter
96
Web Server - Ask For Help / Re: NT 10.27 Issues
« on: July 28, 2018, 04:24:43 AM »
Hi Brian,
There are other problems as well; for example when starting a server the program just hangs before the window is completely drawn and the file appname.serversettings.xml.tmp continues to grow. So not quite ready for production yet :-)
Peter
There are other problems as well; for example when starting a server the program just hangs before the window is completely drawn and the file appname.serversettings.xml.tmp continues to grow. So not quite ready for production yet :-)
Peter
97
Web Server - Ask For Help / Re: Intermittent ERROR: 10048 Unable to Listen on TCP Port 4550
« on: July 26, 2018, 09:57:35 PM »
Hi Alan,
Just a long shot: are you by any chance trying to UPDATE a field that's defined as a BLOB in the dict?
I'm having problems with that and the symptoms are similar to what you describe.
Peter
Just a long shot: are you by any chance trying to UPDATE a field that's defined as a BLOB in the dict?
I'm having problems with that and the symptoms are similar to what you describe.
Peter
98
Web Server - Ask For Help / Re: LE certificates problem
« on: July 17, 2018, 07:31:49 AM »
I have experienced that as well - twice in fact.
I've reported it to Bruce a while back and he'll look into it.
Peter
I've reported it to Bruce a while back and he'll look into it.
Peter
99
Web Server - Ask For Help / Securing a 'secret' web server
« on: June 14, 2018, 09:16:28 AM »
Several years ago I added a web server to a desktop app thereby allowing users to access certain parts of the app functionality from a tablet and this has worked fine all along.
The tablet reach the app by using ip address and a port number that was opened in the firewall. Neither the ip or the port no are 'officially published' (but they may/will of course be found by bots etc.)
Now the customer wants a secured connection to the web server (thanks to GDPR!).
So my question is: can I use the built-in LE support for this since there's no registered domain and since they're using an 'odd' port number? Or is the right solution simply to set up a real web server for this purpose? (I suspect the latter).
Peter
The tablet reach the app by using ip address and a port number that was opened in the firewall. Neither the ip or the port no are 'officially published' (but they may/will of course be found by bots etc.)
Now the customer wants a secured connection to the web server (thanks to GDPR!).
So my question is: can I use the built-in LE support for this since there's no registered domain and since they're using an 'odd' port number? Or is the right solution simply to set up a real web server for this purpose? (I suspect the latter).
Peter
100
Web Server - Ask For Help / Re: Page to display after user logs in
« on: May 31, 2018, 08:16:23 PM »
Here's what I do in one of my apps:
Login form is a memory form with default form action set to Change. URL on Save is set to 'IndexPage' which is the default page after login for most users (but that could be blank and be handled in the code as well).
There's code in validateUpdate to check if the user is logging in for the first time in which case he's being sent to a different page using: p_web.script('location.href="firsttime"'). FirstTime is the name of a procedure. This idea could be expanded to any number of different pages.
I'm sure there are other ways to do this but it works nicely.
Peter
Login form is a memory form with default form action set to Change. URL on Save is set to 'IndexPage' which is the default page after login for most users (but that could be blank and be handled in the code as well).
There's code in validateUpdate to check if the user is logging in for the first time in which case he's being sent to a different page using: p_web.script('location.href="firsttime"'). FirstTime is the name of a procedure. This idea could be expanded to any number of different pages.
I'm sure there are other ways to do this but it works nicely.
Peter
101
Web Server - Ask For Help / Update a BLOB field (SQL)?
« on: April 26, 2018, 04:59:39 AM »
Has anyone here ever successfully UPDATED a record with a BLOB field in it using NT and MSSQL?
Over the years I've stored thousands of documents and pictures in BLOBs but now I need to UPDATE a record with a BLOB field and NT just dies on me.
If I remove the BLOB field from the dictionary then everything works great! But since I want the users to be able to take a selfie and upload it I need this field. Could be they had a new hairdo or something which would make them want to update their pic
I can do this in a desktop program so I think it's somehow related to NT.
If somebody know how to deal with this I'm all ears!
TIA
Peter
Over the years I've stored thousands of documents and pictures in BLOBs but now I need to UPDATE a record with a BLOB field and NT just dies on me.
If I remove the BLOB field from the dictionary then everything works great! But since I want the users to be able to take a selfie and upload it I need this field. Could be they had a new hairdo or something which would make them want to update their pic
I can do this in a desktop program so I think it's somehow related to NT.
If somebody know how to deal with this I'm all ears!
TIA
Peter
102
Web Server - Ask For Help / Re: Multi Language APP
« on: April 02, 2018, 01:39:12 AM »
Hi Niels,
The Translate Method in the Web Handler is supposed to catch all strings. Is this where you try it? And what exactly is it you want to translate in a Browse Procedure?
Peter
The Translate Method in the Web Handler is supposed to catch all strings. Is this where you try it? And what exactly is it you want to translate in a Browse Procedure?
Peter
103
Web Server - Ask For Help / Re: Take a photo
« on: March 02, 2018, 07:44:54 AM »
After doing some test:
It kind of works on my Android phone, but I can only use the front camera ('selfie-mode').
It doesn't work on my iPhone. No asking for permission to use camera and no action when I press 'Take Photo'-button.
Peter
It kind of works on my Android phone, but I can only use the front camera ('selfie-mode').
It doesn't work on my iPhone. No asking for permission to use camera and no action when I press 'Take Photo'-button.
Peter
104
Web Server - Ask For Help / Re: Text field only shows first character
« on: February 27, 2018, 09:33:57 AM »
Glad it worked!
Maybe Bruce can tell us what's going on when that happens. There doesn't seem to be any pattern and I have absolutely no idea about what causes it. Except that something maybe gets saved wrongly.
Peter
Maybe Bruce can tell us what's going on when that happens. There doesn't seem to be any pattern and I have absolutely no idea about what causes it. Except that something maybe gets saved wrongly.
Peter
105
Web Server - Ask For Help / Re: Take a photo
« on: February 27, 2018, 06:27:18 AM »
Win10 for a start - so in desk top mode. I'll try the mobile ones later today.
Peter
Peter