PxPlus User Forum

Twitter Twitter Twitter

Recent Posts

Pages: 1 2 [3] 4 5 ... 10
21
Nomads / Re: Panel Startup Timing
« Last post by James Zukowski on April 05, 2024, 03:14:03 PM »
I thought SPAWNing would take more time, too. I ran a brief test on our test server, and the first time I ran the panel, it came up in about 2 seconds. Exiting back to the menu and starting again took about 8 seconds, which remained consistent in subsequent runs. So...why would the first run launch so quickly and the others not? It doesn't make sense to me.

If we scrapped the show(-1) method, what would be the 'best' method to hide the menu? Move it WAAY off the screen, and move it back later? Something else? It seems like with Win 11 (or earlier), we've lost the ability to right-click an icon on the taskbar and move the window with the arrow keys, so shifting off-screen is a concern.
22
Nomads / Re: Panel Startup Timing
« Last post by Mike King on April 05, 2024, 02:08:48 PM »
A PROCESS directive should take less time than spawning.   Perhaps the SHOW(-1) is causing a issue?
23
Webster Plus / Re: Webster 101: Web for dummies
« Last post by Mike King on April 05, 2024, 01:58:28 PM »
Jean,

I'm away at the moment, but I will contact you next week with some tips/ideas on how to get started.
24
Nomads / Re: Panel Startup Timing
« Last post by James Zukowski on April 05, 2024, 01:51:37 PM »
(Un)Fortunately, there are only about 30-40 left to remove the SPAWNing from, and we're developing all new panels without it; they're directly PROCESSed. They also seem to take a fair amount of launch time.

Is there anything I could look into?
25
Nomads / Re: Panel Startup Timing
« Last post by Mike King on April 05, 2024, 01:33:36 PM »
The easiest solution might be to just dynamically define unique FID values for every process.  You can then use the SETFID directive to set the session FID value.

FID(0) values can be up to 12 characters long -- assuming your code will accept that length. 

There are any number of ways you could generate the FID values perhaps using a specific range for each workstation and a control file where you can lock records to assure uniqueness of FID.

In theory you might be able use the process ID as a FID(0) value which would assure uniqueness.
26
Nomads / Panel Startup Timing
« Last post by James Zukowski on April 05, 2024, 11:19:45 AM »
Until I started here a couple of years ago, the NOMADS panels that were being used were being SPAWNed as separate processes off our menus. Since that would allow for multiple 'sessions' using the same FID(0), it also led to occasional file conflict problems. We've been working to remove the SPAWNing part of the sequence and just have the menu PROCESS the panel directly after hiding itself ['show'(-1)]. With a little work to undo some of the added 'hooks' for the SPAWNing, this works pretty well.
The problem we're running into is timing. When the panel was SPAWNed, it loaded and displayed VERY quickly. However, directly PROCESSing the panel generally takes quite a bit longer, sometimes 6-8 seconds or more compared to the 0-2 seconds previously. And it doesn't necessarily correlate with the number of controls on the panel. Perhaps it can sometimes be chalked up to server utilization, but it seems to be a pretty consistent differential.
We're running RHEL 7.9 (64-bit) with PxPlus v15.1 and WindX via VPN. Most of the client PCs have been upgraded from Win 10 to Win 11.
After the latest wave of updates, we're starting to get some clear complaints about this. Any suggestions would be greatly appreciated.
Thanks, all!
27
Language / Re: ERROR 302 file not found
« Last post by edjack on April 05, 2024, 11:01:03 AM »
that worked... thanks.
28
Webster Plus / Webster 101: Web for dummies
« Last post by jhendrickx00 on April 04, 2024, 10:09:05 AM »
  Hi, I'm trying to approach to the dark side of web computing  :P ... and Webster looks like the ideal tool, I already saw the videos, the manual entries, the CATS Demo; also I tryied to create a Sidelink menu and integrate a FileMaint panel with it... but I didn't get any possitive results (besides a HUGE headache  :-[ )... In the 'regular' world of Client-Server I define some Tables, define the filemaint and query panels, another panel to 'gather' the other panels (aka a MENU) and voila! I can mix those easily, but in Webster I am NOT ABLE to figure how to start, how to begin a simple menu (1.- Data Entry, 2.- Bye) and link the NOMADS generated FileMaint HTML to option 1

  Again sorry for my obtuse mind, I dunno if the chemicals are ruining my brain or just 'An old dog not learn new tricks" ...

  Any ideas?
  Jean H//
29
Programming / Re: *web\request
« Last post by HendersonS on April 01, 2024, 09:57:37 PM »
Jeffrey Ferreira,
I'm working on something similar, how did you create the boundary?
30
Programming / Re: JSON from Array with numeric and string
« Last post by Mike King on March 28, 2024, 12:28:19 PM »
Another simple solution, which will work when using older PxPlus, is to predefine the JSON structure then load the values:

For example, we can preload the numeric JSON elements with zero values.  Only the numeric values need be declared.

->x$="{'Balance':0}"
->dim load json$=x$


The above will create the array json$ with add the element Balance marked as numeric.  Now you can define the various values you need.

->json$["Name"]="Mike King"
->json$["Addr"]="123 Main St"
->json$["Balance"]="123.45"
->json$["Email"]="mike.king@bbsysco.com"


When the Array is converted back to JSON the Numeric indicator for Balance is remembered.

->print dim(list edit json$)
{
  "Addr":"123 Main St",
  "Balance":123.45,
  "Email":"mike.king@bbsysco.com",
  "Name":"Mike King"
}




Pages: 1 2 [3] 4 5 ... 10