I’m helping set up a new web server with Pan 6 files that have been converted to Pan X. It’s gone well and everything is up and working.
Oddly though, the main database on the server always opens and displays the datasheet. I can’t find any reason for it and even went so far as to build a replacement from scratch in case something carried over from Pan 6. I created all the fields, then imported the data. The procedures were copied from old to new using the View Organizer - and the datasheet continues to open.
It’s a dedicated web server so it’s not any sort of disaster if it has to be that way. But I don’t know if it means something ain’t right that matters.
Possibly you have both PanoramaX.app and PanoramaX Server.app running on this computer. Is the data sheet appearing on the regular PanoramaX.app, or the server app?
If the latter, that is very weird. I would have said that it was impossible. The server code is set up so that it is not possible to open any window. So if you did manage to open a window, that is very weird. I wouldn’t know how to make that happen if I wanted to (which means I also don’t know how to make it not happen).
You say this is a web server - so that means that your code is running on the server. Again, I thought it was impossible, but maybe you have code that is opening this window? When does it open - immediately when the server launches? After a particular web procedure runs?
Hmm, looking at the code - maybe if there is an opensheet statement in a web procedure that would open the data sheet? If so, I would definitely remove that. The server is not designed to work with visible windows.
If it is running on a copy of PanoramaX.app, then that doesn’t seem like a big deal.
It was defintely Panorama X Server and happened with the file set to open on startup as well as if set for open as needed.
I did a search for OpenSheet based on your notes and found that in InitializeServer, a local was being loaded with the file name, then other files were being opened before it went back to the original file using OpenFile.
I changed that to OpenServerFile and the window no longer appears.
OpenFile LocalVar
changed to OpenServerFile (LocalVar)