NetTalk Central

Recent Posts

Pages: [1] 2 3 ... 10
1
Web Server - Ask For Help / form refreshes and shows from the top
« Last post by MikeR on August 08, 2026, 11:39:57 PM »
I have a netwebform , that has many other memory forms inside it. (ie. to big for all fields on the table)
when I make a change to a field in another  form (not the primary one) The screen resets to the top of the page (ie if the form is long)
How can I stop this from happening.
2
Web Server - Ask For Help / Get name of parent procedure calling child update
« Last post by rjolda on August 08, 2026, 12:18:36 PM »
Hi,
I have a MemForm with 2 Tabs.
Tab1 has a Browse on Auto File and calls Child procedure ?See Keys? based on AUTO:GUID as a Filter.
Tab2 Has a Browse on JoinedAuto File and calls the same Child procedure ?See Keys? based on a different filter - JOINAUTO:GUID.

So, both browses call the same ?See Keys? procedure but with different filters.
My problem is that when I call the procedure to Update_SeeKeys - I want to know if it was called from ?AutoFile? as a parent OR ?JoinedAuto? as a parent as they will populate the form with slightly different values.

I have tried finding Parent settings in browse and child and update and loc:parent and loc;filter. However, I have not been able to key in on something that will tell me which the original calling procedure was. Anyone with any insight or tricks? Maybe have to set a Server Value based on which Tab is active?
THanks,
Ron
3
Web Server - Ask For Help / Re: Global MEMORY file
« Last post by JohanR on August 06, 2026, 08:08:39 PM »
Hi Sean

Yes thanks,
I am using the In-Memory file driver for the 'global memory' file.

Queues are only used as a local data structure in the procedure that builds the HTML output.

My concern was where to do this best, and where and how to control the updating of the file.
and if there were any specific points to keep it safe and bulletproof.

Each subsequent session or thread will only read the data

thanks

Johan


4
Web Server - Ask For Help / Re: Global MEMORY file
« Last post by seanh on August 06, 2026, 03:38:00 PM »
The Inmemory db driver should also be able to do this.
5
Web Server - Ask For Help / Re: Global MEMORY file
« Last post by Jane on August 05, 2026, 04:36:17 PM »
Johan,

I've never used the multi-host for a real app; just played with the example.

I would not start from the webhandler.

Many of my web servers actually have a source procedure as the first procedure in the app tree. 
This is example code from one that looks at the commandline, does some initialization, starts a timer window, and then runs the web server.

Code: [Select]
    GlobalInit()
    IF COMMAND('/setup')
      SetupWindow()
      RETURN
    END ! IF         

    if GLO:LogMaxRecords = 0
      GLO:LogMaxRecords = 500
    end ! if     
       
    GLO:RunningAsService = gSelfService.AmService
    GLO:SuppressUI = GLO:RunningAsService
       
    GLO:DataServiceThread = start(timerwindow,25000)

    if GLO:RunningAsService
      AddErrorLog('ADIS started as service.')
    ELSE
      AddErrorLog('ADIS started manually.')
    end ! i
       
    GLO:ServerStartDate = today()
    GLO:ServerStartTime = clock()

    WebServer()




6
Web Server - Ask For Help / Re: Global MEMORY file
« Last post by JohanR on August 05, 2026, 04:48:24 AM »
Hi Jane

Thanks for the detailed reply,
I like the STARTED procedure with the timer running.
This way if I want to add other similar procedures they will be kept separate and organization will be clean.

Multi-host?
Would this be checked and started from the webserver or webhandler, just thinking about multihost situation.

thanks

Johan

7
Web Server - Ask For Help / Re: Global MEMORY file
« Last post by Jane on August 04, 2026, 11:37:11 AM »
For something small like that, you might also consider Capesoft MaxQueue.

As for loading the queue (or file), is the data pre-staged (in which case the load would be almost instantaneous) or does it have to be gathered?

I have some webservers that need the underlying data refreshed periodically.  Perhaps I overcomplicate things, but my flow is:

1. When the app starts, START a window that has a timer.  Capture the thread returned by the START command into a global variable (I use GLO:DataServiceThread).
2. I declare an equate   
Code: [Select]
eqMyClose           equate(event:user + 4) 3. In the window that has a timer, in ThisWindow.TakeWindowEvent before the parent
Code: [Select]
        of eqMyClose
            ! any other cleanup code here
            post(event:closewindow) 
4. In the webserver procedure, at the beginning of thisWindow.Kill
Code: [Select]
    if GLO:DataServiceThread <> 0
      post(eqMyClose,,GLO:DataServiceThread)
    end ! if
5. Timer in window triggers refresh of data.
6. You might want to wrap the actual reloading of your data inside a critical section to restrict access while the refresh is taking place.  Don't know whether that is needed with MaxQueue.
8
Web Server - Ask For Help / Global MEMORY file
« Last post by JohanR on August 03, 2026, 11:11:57 PM »
Hi,

I need a global MEMORY file with about 200 records that should be available to all sessions.
Data in the MEMORY file would be loaded/refreshed once a day

Sessions would read this data and use it in Netwebsource procedures to build HTML using local queues.

What is best practise and best place to load the data for safest and optimal performance.



thanks

Johan
9
Web Server - Ask For Help / Re: Nettalk and PassKey!
« Last post by Jane on August 03, 2026, 10:26:42 AM »
.
Pages: [1] 2 3 ... 10