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 - Devon Austen

Pages: 1 ... 3 4 [5] 6 7 ... 19
61
Programming / Re: Error 13 on [tcp] connection with secure
« on: July 29, 2022, 11:37:01 AM »
On the [TCP] open specify the "TLS1.2" option to force pxplus to use TLS1.2 which is the newest protocol it supports and the most likely to be accepted. Without specifying that the server may be detecting that PxPlus supports a older unsupported protocol and rejecting it.

62
Programming / Re: *web/sftp directory delimiters
« on: July 21, 2022, 02:52:41 PM »
To better help you I would need to see the type of call you are making to *web/sftp. Make sure not to include any actual private info when posting the example i.e usernames and passwords.

What error are you getting and why do you think the delimiter is being stripped?

As far as I know the *web/sftp program does not strip any trailing delimiters off. In fact we often add a trailing delimiter if missing in the code. Our tool uses curl and it is possible it may be doing something but I have not seen any issues before.

63
Programming / Re: *web/sftp
« on: July 12, 2022, 08:28:11 AM »
Hi Peter,

If you can sometimes download the file and other times you can't that would possibly indicate the issue is on the sftp server. Likely sometimes the file is locked by a program updating it for example. The best you can do in that situation is to handle errors like that by trying again a few times before giving up.

Another probably less likely possibility is that sometimes your current directory is different so maybe using a absolute path would help /HOME/USERNAME/PO/OUT

64
ODBC / Re: Error while update mssql Database via ODBC
« on: July 06, 2022, 12:37:06 PM »
From the doc: https://manual.pvxplus.com/?PxPlus%20User%20Guide/Data%20Integration/Introduction%20to%20SQL/Using%20SQL%20Directly%20Within%20PxPlus.htm

I think you need to add a ! to the beginning of your SQL statements i.e. KEY="!"+SEL_STRG$

65
Programming / Re: Create Excel Spreadsheet from PvxPlus
« on: June 02, 2022, 09:09:49 AM »
In the doc for the Excel object there is an example program at the bottom that demonstrates a lot of the functionality. It shows opening a workbook and setting the active worksheet and reading and writing to it. https://manual.pvxplus.com/?PxPlus%20User%20Guide/External%20Components/PxPlus%20COM%20Support/Excel%20Object.htm

Creating a sheet is easy just use the CreateWorksheet method.

x'CreateWorksheet("My New Sheet")

this will create a new sheet that is inserted before the active sheet.

Another option is you can enable the right click menu for the Grid which has a export to excel option. Then a user just has to right click and select the option to export to excel and you don't have to write the code. The listbox/grid right click menu is controlled via %list_popup (https://manual.pvxplus.com/?NOMADS%20Graphical%20Application/Creating%20Panel%20Controls/Popup%20Menu/List%20Box%20and%20Grid%20System%20Popup%20Menu.htm).


66
Nomads / Re: Accented characters in nomads
« on: May 25, 2022, 08:56:54 AM »
Using version 18.20 I created a simple panel with several controls all with the text from your first post with the accents. It displays fine for me I don't even need 'U8' set as those accents don't require UTF-8.

Could you be using a font that does not have those characters in it?

Check the font you used in 11.50 and check the font you are using now make sure they are the same.

67
Nomads / Re: Accented characters in nomads
« on: May 24, 2022, 01:40:05 PM »
I think you just need to set the 'U8' system parameter (https://manual.pvxplus.com/?parameters/u8.htm).

68
Language / Re: "*web/ftp;send"
« on: May 16, 2022, 05:00:12 PM »
Yes single quotes are unnecessary as we pass the username and password to curl surrounded in double quotes already.

curl -u "username:password"

I am surprised that a $ needed to be escaped since we do pass it in the double quotes. We will have to look into what characters are special and escape them automatically if possible. 

69
Language / Re: "*web/ftp;send"
« on: May 16, 2022, 04:19:23 PM »
Try putting a backslash before the $ i.e. \$.
Does that work?

70
Programming / Re: Converting HTML to PDF
« on: April 26, 2022, 09:44:38 AM »
You can use a INVOKE and a simple free tool like this: https://wkhtmltopdf.org/.

71
Programming / Re: Converting HTML to PDF
« on: April 26, 2022, 09:31:14 AM »
Hi Jeff,

You can use *Browser to manually print to a PDF but there is nor current built in functionality to print to a PDF programmatically.

If you load the HTML into a *Browser control you can then right click on the rendered web page and then select print, then select print to PDF.

Instead of right click you can also use the code:

myBrowser'window'print()

where myBrowser is the *Browser handle.

This code will programmatically trigger the print dialog. The user will still have to select the print to PDF printer.

We can look at possibly adding this feature to *Browser for a future release.

72
ODBC / Re: Mnemonic to show generated SQL
« on: March 28, 2022, 02:01:57 PM »
The parameter is '!Q'

SET_PARAM '!Q'

73
Programming / Re: Keyed load failure
« on: March 14, 2022, 08:09:42 AM »
See the forum post here: https://forum1.pvxplus.com/index.php?topic=39.0

It gives a description of what keyed load does and what an error means. It also provides a link to the fixvlr program (actually fixvlr2 which is newer) and describes what it does.

Effectively you may have some lost data but fixvlr2 will get out what it can from the file.

74
Wish List / Re: query version of ODBC-driver
« on: March 04, 2022, 08:35:23 AM »
The SQLGetInfo call is a Windows API call and not a SQL query. Usually the application that implements a ODBC interface will use the SQLGetInfo call to get information about the ODBC driver to present to the user.

If you are writing your own ODBC client application you can use SQLGetInfo. If you are using an existing ODBC client application like SQL Server or Excel etc, you have to look if they provide you the driver version information (which it would get from our driver via the SQLGetInfo call).

What application are you using to access ODBC?

75
Wish List / Re: query version of ODBC-driver
« on: March 03, 2022, 10:57:55 AM »
Using the pxpsql command line client with --version will return the version.

pxpsql --version

You can also run the PxPlus Sql Server with a --version to get it's version

pxpsqlsvr --version

If on Windows you can hover over the pxpsqlodbc.dll or pxpsqlsvr.exe file to see the version. In this case it will look like 7.0.3.0 for 7.00.0003

On Windows you can also see the ODBC driver version in the Data Source Administrator window. Open a PxPlus ODBC DSN and go to the about tab. Before you create a DSN the ODBC version will appear beside the name of the driver as well.

For the PxPlus SQL Server you can open the pxpsconf.exe config app and go to about to see the version as well.

The version in these programs appears as 7.00.0003.

An ODBC client application can also query the version number using a SQLGetInfo call with the SQL_DBMS_VER property.

Does any of that get you what you want or are you looking for something different?

Pages: 1 ... 3 4 [5] 6 7 ... 19