PxPlus User Forum

Twitter Twitter Twitter

Recent Posts

Pages: [1] 2 3 ... 10
1
Programming / Re: Signature capture
« Last post by joe on July 23, 2021, 10:30:59 AM »
Thanks for hanging in there with me. I got the signature capture box and capture button working with your help. I think I can add the other buttons also.

The only other issue I have now is the stylus does not mark/draw in the signature box. I can draw with the mouse in the box, but that is not ideal. I tested the stylus using MS paint and it is functioning well. The stylus also appears to be somewhat acknowledged in the box. When I approach the screen with it a target dot appears.
2
Programming / Re: Signature capture
« Last post by Devon Austen on July 23, 2021, 08:23:31 AM »
Yes that logic should be on the "When Button Pressed" logic and you should select "Execute" as when the button is pressed you want to just run that code you specify in the input field.

For details about what the different options in the logic drop down menu do see here: https://manual.pvxplus.com/?NOMADS%20Graphical%20Application/Program%20Interaction/Events%20Logic/Actions%20and%20Parameters.htm
3
Programming / Re: Signature capture
« Last post by joe on July 22, 2021, 04:59:49 PM »
The documentation states

The Capture button retrieves the signature as a png image and saves it to a file. The OnChange logic looks like this:

     sigcap.ctl'saveImageFile("sigtest.png")

Does this reffer to the button control? I could not find ONCHANGE. Should it be when button pressed? What should I select from the drop down, perform, execute? Not sure.
4
Programming / Re: Signature capture
« Last post by joe on July 21, 2021, 12:43:34 PM »
Thanks for the reply. I guess a read the documentation wrong. It sounded like it automatically adds the buttons. I will try again.
I am trying this on a MS surface. It has a stylus to allow the user to write on the screen
5
Programming / Re: Signature capture
« Last post by Devon Austen on July 21, 2021, 12:08:42 PM »
In the documentation the 4 buttons have been added to the panel manually. The example in the documentation describes the logic added to the buttons.

Not to sure what you mean by stylus not working.

The logic for the capture button is how you would save the signature as a image for later use.
6
Programming / Signature capture
« Last post by joe on July 21, 2021, 11:43:08 AM »
I have installed the latest version of providex. Version 18 I believe. I am trying to use the signature capture control in nomads trying to follow the documentation. Here are some issue I have encountered
1) the Signature box appears but the the 4 buttons do not.
2) I can draw in the box but the stylus does not work.
3) not sure how to grab and store the image for use latter.

As Monty Python once said any help would be helpful.
7
Web Services / Re: Error 400 - Bad Request
« Last post by Mike King on July 20, 2021, 04:50:48 PM »
Have you compared the requests that work vs those that don't?

Perhaps a difference in the header options?
8
Web Services / Error 400 - Bad Request
« Last post by cwellis67 on July 20, 2021, 04:35:46 PM »
I am getting an error 400 (Requested URL is not properly formed) returned from the Webserver when an external program is sending a POST message to it. Is there a way to see the actual and full request the Webserver is getting? I'm totally guessing that the improperly formed URL is actually part of the body of the message, but I'm not sure of that. When I use Postman to send the request, the Webserver handles it fine, but when this external program (Infor OS) is trying to send a POST it fails. It succeeds on regular GET commands, though, and I'm trying to figure out what is failing.   

Here is what is in the request.log:
<Request>
POST /ims/v2/multipartMessage HTTP/1.1
host: usalvwfacts2k16
x-forwarded-for: 52.3.40.242
x-forwarded-proto: https
x-forwarded-port: 443
x-amzn-trace-id: Root=1-60f5e322-2762508921d698154b7ac999
content-type: text/plain
authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IkluZm9yQWNjZXNzVG9rZW5TaWduaW5nQ2VydGlmaWNhdGUtMTU2NjgwNDQzOSJ9.eyJzY29wZSI6IiIsImNsaWVudF9pZCI6IkZBQ1RTREVWX0RFVn4tUVUzcW9JM09aR1NKYldrN3pYTmd3VWxsUlF5dmx4LUpfQS1CNkFqMjFRIiwiaXNzIjoiaHR0cHM6Ly9xYWMtc3NvLnFhYy5hd3NkZXYuaW5mb3IuY29tIiwiYXVkIjoiaHR0cHM6Ly9xYWMtaW9uYXBpLnFhYy5hd3NkZXYuaW5mb3IuY29tIiwianRpIjoiQm4xdjdKdG9TOHh4UjZ2M083dXlQUHB1NU5KUTZ5czd1MDJBIiwiU2VydmljZUFjY291bnQiOiJGQUNUU0RFVl9ERVYjMFdMZUN2ckVHTHd2TzV3NERobUxvLUNwb2NiSXlVN3hRZGQzZjNpQzUtTFR3SXFCMGY0MUZqb2lGTmdIcjVTenZSemJJM29hbndoeDRQN1QwMEV4LVEiLCJJZGVudGl0eTIiOiJlMmE0OTUyZi0yYWQ3LTQ5OGItYWU4NS0xZDBlMGFlNWM1MDQiLCJUZW5hbnQiOiJGQUNUU0RFVl9ERVYiLCJFbmZvcmNlU2NvcGVzRm9yQ2xpZW50IjoiMCIsImV4cCI6MTYyNjczMDY2M30.NmjpfDpU8ieWlNcVmPldb6Rdv6FGSf_DRSZCfV1OLvr_owUW1kqSWrOCfHMkmtX2EyIYfMT8vdPhhI2ynFQPzL2cJn8cpOKbuYGd9S4L-5xKNZTMSXnCYvW9nMJ-8BzvwPMlox-5HPPSwwylbr99VXSOCWTl7yMXhA1L6rjb6tqkB3ejkyWvrZIfkTn9y5H8-2PIs8OBe6-UEp_eOtXrH2M0G0qxC7nshsi1GhXkeu5EfXSVj_TBlUfpxu7g8UIdikoN4I2TGJiRNqSDTlQMQ4rFrhVnR2_sbgEmV7hu2mQnFCYjfOwsWHuP0eY1r_y_SrAKTG_PHdG5aERrJBSQcQ
accept: application/json
x-tenantid: FACTSDEV_DEV
user-agent: Apache-HttpClient/4.5.12 (Java/1.8.0_282)
accept-encoding: gzip,deflate
x-request-id: 0496213e-29e8-97d4-b439-adbaea0682d2
x-b3-traceid: 0f5eaf078eb01f24
x-b3-spanid: 0f5eaf078eb01f24
x-b3-sampled: 1
Content-Length: 0
Connection: Keep-Alive


<Response>
HTTP/1.0 400 Bad Request
Allow: GET, POST, HEAD
Server: PxPlus-WebServer/1.3.18
Date: Mon, 19 Jul 2021 20:40:02 GMT
Content-Length: 256
Content-Type: text/html
Connection: close

<html>
   <head>
      <title>400 Bad Request</title>
   </head>
   <body>
      <h1>400 Bad Request</h1>
      <hr>
      <p>The Requested URL is not properly formed.<br>
Method: POST  URI:/ims/v2/multipartMessage  ARGS:</p>
   </body>
</html>
9
Language / Re: Open Excel File Just To View In Text Base PVX17
« Last post by Mike King on July 20, 2021, 04:04:55 PM »
First off I assume that Excel is installed on the workstation.

If so you should be able to copy the spreadsheet file to the workstation then use SYSTEM_HELP to open the file.  If you only want them to access a single excel file at a time, you might be able to use a consistent file pathname on the workstation.

Alternatively, you could mount the directory containing the excel files so that the windows system can directly access the files using a UNC pathname == something like \\server\excelfiles\xxxxx.xlsx -- then execute a SYSTEM_HELP UNC$ where UNC$ has the UNC string.  If you do this make sure the UNC is read only.
10
Language / Re: Open Excel File Just To View In Text Base PVX17
« Last post by Skip.Dahl on July 20, 2021, 03:53:31 PM »
Yes, the end user is running WindX.    The program I have running in their shipping dept is a text based app,
so when a part is entered for packing (ex. 12-422-6) I will have the program look on the Linux server
in a specific directory for an Excel spreadsheet for that part (12-422-6.xlsx) it will notify
the user if found that a spreadsheet for part exist, during the prompt if the user selects to view, I would like
within ProvideX to open the spreadsheet into an Excel window so that he could scroll thru and then close out
of the Excel window when done.
Pages: [1] 2 3 ... 10