PxPlus User Forum

Twitter Twitter Twitter

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.

Messages - Mike King

Pages: [1] 2 3 ... 58
Web Services / Re: *plus/web/request with Proxy server
« on: January 27, 2023, 01:33:13 PM »
For Windows you can often simply replace the call to *plus/web/request with a call to *wininet. 
The calling parameters a basically the same:

   url$, postdata$, response$, header$, mimetype$, extraheaders$

It will use the Windows proxy settings.

Programming / Re: Drag and Drop
« on: January 25, 2023, 10:05:25 AM »

PxPlus doesn't have the ability to directly provide a list box that you drag files out of, however what you can do is if the files you want to drag can be placed in a directory you can create a Shell.Explorer control on your PxPlus panel pointing to that directory.  Then the user can drag the files out to external applications.

For example:

def object h,@(10,10,30,10)="Shell.Explorer"

This will create you a window where the directory will be listed and the user can drag the files out of.

One trick you can use if you have a large selection of files in a common directory but only want to allow the user to select specific files is to create a dummy directory then using the Windows mklink command create links to just the files you want the user to have access to.

Wish List / Re: Open Directory +INFO
« on: January 23, 2023, 10:25:01 AM »
Are you looking for a link in the Windows CHM or on the web site manual.pvxplus.com?

If your want this on the CHM, simply find and display the page you want then in the left edge pane select Favorites.  At the bottom of the left pane you will find a "Add to Favorites" which will add the page currently displayed to the list of favorites.  Once added you can right click the entry on the favorites list and rename it to whatever you want.

If you are looking for a link to the Online manual, simply create a bookmark in your browser to:


You can find and create links directly to any page in manual.pvxplus.com by locating the entry you want in the left edge pane of manual.pvxplus.com and select 'Copy Link'.  The link that gets copied will display just the page (no left/right panes), but if you want the normal display with the two panes simply changes the /PXPLUS/ in the link to /?/

Programming / Re: list_box with line borders or alternate colors?
« on: January 18, 2023, 10:13:31 AM »
If you are using Nomads you can set the Highlight1 (and 2) colors for the specific list box in the control properties -- (Font/Color tab).

Also if using a Report view style of list box you can enable grid lines which will provide 'borders' between each line (and potentially each column) in the list box -- (Attributes tab).

Language / Re: TCP/IP address
« on: January 16, 2023, 05:16:14 PM »
For telnet we really only have a logical connection to the pseudo /dev device and as such the IP address is not known.
For a raw TCP server (i.e. OPEN(nn) "[TCP];port") once the user is connected you can get its IP address from KEY(nn)).

However it should be mentioned that the IP address you will see will vary based on your network setup.  For example if my home PC connects to a machine at our office the IP address returned will be the same for my PC or any PC in my home that connects will come from the same Internet address.  Same for VPN access or any number of other network steups.

Language / Re: Detecting a CALL
« on: January 12, 2023, 11:05:21 AM »
There is no way to determine the difference between a direct CALL versus a PERFORM/RUN.  Internally the only difference is that the variable table is not passed in on a CALL whereas the variable table is passed in on a PERFORM. 

Programming / Re: Apache HTTP Interface
« on: January 09, 2023, 09:48:12 AM »
Just to confirm what St├ęphane posted, you can use IIS or pretty much any web server to launch PxPlus using CGI.

Make sure you add the PxPlus web program prefix to IIS as shown in the attached image

ODBC / Re: ODBC 4.21 send me error not capable
« on: January 09, 2023, 09:32:18 AM »
MAS90 (now sold as Sage 100) comes with its own ODBC driver included.  While the PxPlus ODBC driver can generally access their database you should use the interface provided with MAS90 to avoid potential problems.  Also the application installation will generally setup the ODBC.

As a general rue of thumb, most business applications do not want their database updated external of their application as incorrect updates can cause support problems as there is no guarantee that the updates fully adhere to the needs of the application logic.

Programming / Re: Invoking an Android command
« on: January 09, 2023, 09:19:40 AM »
There are a number of telnet/ssh products for Android.  Perhaps one of the products mentioned on this page would provide you what you want:

Nomads / Re: Pass an argument to a grid cell query
« on: December 15, 2022, 06:37:12 PM »
The easiest way is by using global variables, but a lot depends on exactly what you are trying to do.  If you are looking to pass additional information from other grid cells to the Query you might want to create a query program that can pull the data from the other cells in the grid and transfer that to the query which it could call.

Nomads / Re: Change colour of Titlebar
« on: December 08, 2022, 04:32:17 PM »
Try PREINPUT -1105 which is the resize event.  This may cause the redraw logic to kick in.

Language / Re: Key function - Key Generate
« on: December 06, 2022, 10:21:31 AM »
The reason the padding is not done in order to assure the key provided will position you to the first record that has the specified key. 

Padding will vary based on if the segment is descending or numeric and as such you need to provide the segment value if you want to get the key that can be used to position to that segment. 

You cannot safely use STP to strip trailing segments as the value for the first key could be $FFFF$ or $0000$ depending if the field is descending -- and for numeric segments the value should be a large negative value or large positive value if descending.

Webster Plus / Re: Event within grid not triggering
« on: December 01, 2022, 09:32:26 AM »
For others following along this thread.  We forwarded a minor change to the binding logic that addressed this loss of focus issue on buttons/links that reload the grid they are part of.  The change will included in our next update.

Webster Plus / Re: Event within grid not triggering
« on: November 29, 2022, 01:42:20 PM »
Are you changing the cell with focus to a button/link or changing another cell on the same row?

Also how are you changing the cell type?  If you are simply hiding one control in the cell and then making another visible, then the system would have no idea as to where to send focus since the control with focus still exists -- its just hidden.

The logic is designed such that if the control with focus gets deleted and re-created we put focus back on the control.  But if the control still exists and is hidden, then the system will try to put focus back on it.  So if you hide an input field in a grid cell and create (or make visible) a button to replace it, the system has no way to know where to send focus.

Webster Plus / Re: Event within grid not triggering
« on: November 28, 2022, 02:15:52 PM »
We made a small change to the webster JavaScript on our server.  Please refresh your browser (CTRL-F5) and see if that resolves your focus issue.

Pages: [1] 2 3 ... 58