Menu

Show posts

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.

Show posts Menu

Messages - Mike King

#1
There are any number of ways to do this using the PxPlus charting facility. You simply need to define the data set you want charted using the Nomads Query system and the type of chart and settings.  The system will do the rest. 

The charting utility can create charts in a couple of formats such as a fixed image (JPG/PNG) which you can embed in your web page, or it can create a HTML page that you can use in an iframe or directly copy into your pages.

If using Webster+ you can also use the [chart] short code to automatically embed a chart.  (ref: https://manual.pvxplus.com/PXPLUS/Webster/Short%20Codes.htm#chart)

Using Webster+ you can also assign events to the chart so that the user can use it to drill down to the underlying data.

You could also use the *OBJ/CHART routine to create the chart directly from your code and then embed/use the output (JPG, PNG or HTML)
#2
Web Services / Re: PxPlus pipe issue on Windows with curl
September 21, 2025, 02:13:13 PM
The issue might be a missing end of line terminator in the data.

Using RCD the system assumes the input contains a proper end of line terminator which is 0A on Linux, but 0D 0A on Windows.  If there is no terminator an error may be generated since the pipe will return EOF status and the record will be considered incomplete.

Try using a read record with a SIZ= small TIM= value to see what CURL is actually returning.
#3
Web Services / Re: Unexpected Response in an HTTP Request
September 21, 2025, 02:07:49 PM
If running on Windows, instead of using *plus/web/request try calling *wininet which is a Windows only alternative that uses the Windows internet DLL (wininet.dll).

The calling sequence is the same as *plus/web/request.
#4
The extra information that Explorer shows generally comes from reading the physical file.  It extracts various pieces of information based on file type. Attributes such as address and subject are simply being determined based on the contents of the file and are not truly physical file attributes.

Explorer uses the file suffix and contents to determine how to extract the information based on known file types.

You could replicate that functionality however that would require to know how to parse each of the file types you encounter.
#5
Hi Phil,

Since retiring from PVX Plus Technologies I have been offering my services to assist people with PxPlus application development.  While I am not looking for full time work, I'm available to assist both developers using PxPlus or with other software development issues.

I don't know exactly how long I will continue to offer my services but I'm not in any hurry to put software development/consulting completely behind me.  I still enjoy a good challenge.

#6
Nomads / Re: Grid Images
May 20, 2025, 05:07:44 PM
Here is a simple program you can use to copy an image to the clipboard.  Simply set this program as the 'popup' processor for the grid cells for which you have the bitmap$ attribute set.

! Utility to copy image from Grid cell to clipboard
! Set the "popup" attribute of the image cell to perform this program
  local file$
  file$=pth(id'bitmap$,err=*next)
  if file$="" \
   then msgbox "Cannot copy";
        exit
  popup_menu "[Copy image=1001]",x
  if x<>1001 \
   then exit
  open (hfn)"|powershell.exe"
  x$="Add-Type -AssemblyName System.Windows.Forms;"
  x$+="Add-Type -AssemblyName System.Drawing;"
  x$+="[Windows.Forms.Clipboard]::SetImage($([System.Drawing.Image]::Fromfile("+quo+file$+quo+")));exit;"
  open (hfn)">powershell.exe"
  print (lfo)x$
  close (lfo)

NOTE: You would need to tweak the code a bit to work under WindX.  Basically you would need to copy the file from the server to a scratch file on the workstation and pass that workfile name to powershell.
#7
Nomads / Re: Grid Images
May 07, 2025, 12:53:37 PM
Not directly but you should be able to detect/process the right click yourself and use a utility such as nircmd to copy the image file to the clipboard.  You can also use a powershell script to copy the image.
#8
Nomads / Re: Standard List Boxes
May 01, 2025, 02:47:27 PM
If you are using a formatted list box there is a option of setting full line highlight in Nomads on the list box.  This will highlight the whole line in the list box as opposed to just the text in the item.

Also, while I don't remember which release it was added but there is a way to change the background color for all formatted list boxes when they don't have focus using the 'OPTION' mnemonic.

PRINT 'OPTION'("LvuSelBackClrNoFocus", ColorDescriptor),

Where ColorDescriptor could be any color specification in PxPlus such as "RED", "RGB: 100,200,200", "#Orange".

You can actually tweak a number of system colors using the 'OPTION' mnemonic.
#9
Nomads / Re: Grid Images
May 01, 2025, 02:16:06 PM
Jeff

Do you want to copy the image or the text of product option?

#10
Wish List / Re: SELECT DIRECTIVE OUTPUT
April 28, 2025, 01:53:52 PM
You can do something similar by defining a query that has the fields you need then open the query using *query* ; panel ; library.

While it doesn't create actual files, it does provide a logical file that you can read and the data can come from multiple data sources using file links in the query definition.
#11
Nomads / Re: Standard List Boxes
April 24, 2025, 10:49:43 AM
Is the light gray the background colour or the text (foreground) colour?

Also what version PxPlus and Windows?
#12
Thin Client/WindX / Re: WindX on Linux
March 19, 2025, 11:54:49 AM
Its been a long time since I did this but if my memory serves me right I created a .BAT file for windows that set the  environment variable then launched pxplus.
#13
Webster Plus / Re: Webster+ Help
January 17, 2025, 08:22:28 PM
Davinder

Did you open port 8080 on the Ubuntu firewall? 

Ubuntu, and to be honest almost ALL Linux distributions come with all ports blocked by some form of firewall.  The challenge is knowing how to unblock the port since not all Linux versions use the same firewall program/methodology.

What I generally find is the easiest is to run something like the following on the server to make sure the port is open and accessible:

OPEN (1) "[tcp];8080"
WHILE 1
READ RECORD (1,END=*BREAK) R$
PRINT R$
WEND

Then I go to an external workstation and issue:

OPEN (1) "[tcp]serverIP;8080"
WRITE RECORD (1) "Hello World"
WRITE RECORD (1) "Kilroy was here"
CLOSE (1)

On the server you should see the data written.

Should the OPEN fail you can generally assume the port is blocked (or you have the wrong IP address).

This approach will help identify if the port is open and accessible.
#14
Webster Plus / Re: Webster+ Help
January 17, 2025, 01:41:29 PM
Davinder,

Your image indicates the system thinks you are running iNomads and not Webster+.  For Webster+ you need three arguments; the port, the PEM file (if running secure mode else ""), and the root directory for Webster.

So your .sh file should be something like;

 /pxp/pxplus '*ezweb/server' -arg 8080 '' /var/www/sitename/docroot

#15
Webster Plus / Re: Webster+ Help
January 17, 2025, 11:35:17 AM
That likely means the pxp.cgi file is not being found or used. 

Generally the Apache configuration directs the system that any file request ending in .pxp will be handled by the pxp.cgi script.  This is done by the "Action pxplus-srvr /cgi-bin/pxp.cgi" and "AddHandler pxplus-srvr .pxp .pvp" directives.

Its possible your pxp.cgi file is not in the correct directory.  Generally it is in the document root cgi-bin subdirectory based on the site configuration.  For example if your site document root is /var/www/mysite then the pxp.cgi normally would be in /var/www/mysite/cgi-bin.