Main Board > Programming

Providex Plus Button return to Nomads panel after CALL directive.

(1/2) > >>

bmohrhardt:
Hello Forum :

      We have a Nomads panel with several buttons. As shown in the attached Button Properties, the button makes a CALL to a program that generates a .pdf of a Packing Slip. When we click on the button, the pdf does get created, but when the program hits the EXIT directive, it does not return to the original panel. Is there a better method to execute a program, and return focus to the original panel?

       Thanks,
       Bill.

Mike King:
Bill

Where does it return to after the CALL is executed?
How does the CALLed program exit when done (EXIT, END, QUIT, ...)?

bmohrhardt:
Hello Mike :

      It does return to the main window, where the PROCESS "CST-MAINT","SUCU.en" command was executed, from a Windx prompt 1}. If we Ctrl-C out at that point, it is at a TCB(13)=2, in program /0/pxp15/lib/_winproc. We are on PxPlus 15.10 running on CentOS Linux, and the client stations are Ubuntu 14.04 & Ubuntu 16.04 running Windx via Wine.

      The other buttons on the panel return to the panel after closing them out.

       Bill.

Mike King:
Is it possible the program issues a BEGIN or CLEAR which would close the current session work files (ones opened by Nomads)?
Also these may (depending on your settings) close the current window.

Basically, what does the call program do?

bmohrhardt:
Hello again Mike :

      The program is passed a Sales Order #, and it reads several files, all of which are OPENed with UNT, and closed before EXIT. The CALLed program does not have any BEGIN or CLEAR statements. There are other CALLs that are made, each having their own EXIT. Ultimately, the program generates a pdf file of a Packing Slip. We put several ESCAPE statements in, to prove that it was executing each of the programs. One other button on the same panel calls a character-based program, the old _mwin.utl, and prompts for <Enter> to exit window. Pressing <Enter> clears the window, and returns focus to the
original panel, as shown in the attachment.

        BTW, we are really starting to get pumped up about moving our character-based programs over to Nomads!

        Bill.

Navigation

[0] Message Index

[#] Next page

Go to full version