NetTalk Central

Recent Posts

Pages: [1] 2 3 ... 10
1
Web Server - Ask For Help / locator not appearing on a numeric field
« Last post by MikeR on Today at 09:06:10 AM »
I have a netwebbrowse
all the fields in the browse show a locator exempt the field that is a long type in the database
it is defined as a string in the browse
i have tried default, position,search as locator type
it is also the unique key
what do i do to make the locator appear ?
2
Web Server - Ask For Help / Re: API
« Last post by Djordje Radovanovic on Today at 06:12:30 AM »
Use View as return type.  >:(

Regards,
Djole
3
Web Server - Ask For Help / Browse on memory form does not update the form.
« Last post by Niels Larsen on October 19, 2018, 11:48:46 PM »
Hi Bruce

I have a basic memory form with a basic browse. I would like to update a field on the form each time a row in the browse is clicked. But can't make it work.
Do I overlook something?
NT 10.35
See the attached example.

4
Web Server - Ask For Help / API
« Last post by Djordje Radovanovic on October 19, 2018, 09:07:20 PM »
I want to create api server. I need NetWebServiceMethod to return either whole dataset or subset from view of records but I do not know how to do that.
Database is ODBC.

Any help?

Regards,
Djordje Radovanovic
5
Web Server - Ask For Help / Re: Close All Session and Threads??
« Last post by osquiabro on October 19, 2018, 01:30:10 PM »
work awesome !!

Thanks Jane..
6
Web Server - Ask For Help / Re: Close All Session and Threads??
« Last post by Jane on October 19, 2018, 07:14:12 AM »
If you really need to do this, you might try

1. Create a new Source procedure called Main.
2. Set Main as your startup procedure.
3. Create a global BYTE variable called CERRAR
4. In Main, have some code like
   CERRAR = 0
   LOOP
      WebServer
      if CERRAR
          BREAK
      END
   END
5. Decide how you're going to determine it's time to do this (timer, some kind of flag, whatever)
6. When it's time, do
      post(event:accepted,?GracefulCloseButton)
      ! That should close the web server.  The loop in MAIN will restart it
7. When you really need to shutdown, set CERRAR = 1
7
Web Server - Ask For Help / Re: Close All Session and Threads??
« Last post by osquiabro on October 19, 2018, 05:00:04 AM »
hi, bruce the problem exists because when server is quiet not all session and threads is closed, you can see my performance on site in  http://www.crimpr.net:88/performance at midnigth in Puerto Rico time.

>>> Threads absolutely close - they close long before the user decides to leave the app. If you look at the thread count, that should return to 0 regularly whenever the server is quiet. The typical time for a thread is well less than a second. If your thread count does not return to zero then you are leaking threads

how can detect this problem? and my original request is possible to kill all session a threads via code?

Thanks..
8
Web Server - Ask For Help / Re: Scroll to rounded tab automatically
« Last post by CaseyR on October 18, 2018, 04:23:44 PM »
As you suggested in the user group this morning, I add the scripts to an example app and got the same scrollIntoView unrecognized function error.

Here is the revised web2.app (Basic with Menu).   I changed the MailControlBrowse to call the MailControlForm as a page rather than a popup and added some Display text at the bottom of the AutoResponder tab.  I have included two sets of script code:

1)  In the Javascript on Generate field of the demo Display there is document.getElementById("tab_mailboxesformcontrol2_div") and document.scrollIntoView() ;

2)  In the Value embed for the demo Display there is p_web.jQuery('#tab_mailboxesformcontrol2_div','scrollIntoView','')

Both generate what looks like good script code in the page source view, but the Developer Console shows the same error for both.

Thanks.
9
Web Server - Ask For Help / Re: Close All Session and Threads??
« Last post by Bruce on October 18, 2018, 04:17:47 PM »
Hi Osa,

you have got completely the wrong approach here.

>> well, don't why session and threads not closing automatically after user abandon a page.

Threads absolutely close - they close long before the user decides to leave the app. If you look at the thread count, that should return to 0 regularly whenever the server is quiet. The typical time for a thread is well less than a second. If your thread count does not return to zero then you are leaking threads - which is a very different problem.

>> after user abandon a page.

the browser does not notify the server when a person leaves your app. It also does not notify you if they close the browser, or just turn off the computer. Thus the server cannot end a session because of that, because it simply does not know when that happens.

What it does do is monitor activity for the session. When a session is inactive for a period of time it is cleaned up. the amount of time is determined by you in the WebServer procedure, Advanced tab. Default value is 15 minutes. Of course if you have reasonably steady traffic then your number of sessions and session data will remain more or less the same.

In short, you are trying to fix a problem that does not exist. I suggest you leave it alone.

cheers
Bruce
10
Web Server - Ask For Help / Re: Close All Session and Threads??
« Last post by osquiabro on October 18, 2018, 08:19:08 AM »
well, don't why session and threads not closing automatically after user abandon a page.

in performance page i see when nothing is connected to a page the sessions and threads is very high and never closed, so i need to force close all before the site is hanging. My idea is that at midnight all sessions and threads are automatically closed
Pages: [1] 2 3 ... 10