hexagon logo

Script Request

Haven't programmed since Basic on my Atari 400.

I'm looking to create a basic script for two operator inputs, like Employee # and Shop #, at the beginning of a program. Then use that input on the report.

Any help or pointers?
  • I realize you can use Comment/input, which will do exactly this but since the offshifts run in Operator mode PCDMIS will not save this info once the program is closed. I'm hoping running a script will solve that.
  • We could write a script, but what about combining Comment/Input with Comment/Rept and then pass a variable between them into the COmment/Rept, which would place that text into the report window?
  • The Comment/Input can be used to display on the Report, but the problem is it doesn't save in Operator mode. So if someone on 1st inputs their # it will save (Unprotected Mode), but every time the 2nd or 3rd shift operator runs it they have to keep putting their # back in (Protected Mode). If you don't close the program it will keep, but we run a dozen or more part numbers every day. Its not that big of a deal, just a convenience thing. I'm not even sure a script would save in Operator mode.
  • I wonder if the problem is not Operator mode itself, but the setting that controls that Comment input. Do your 1st, 2nd, 3rd shifts use different logins to access PC-DMIS?

    Look in the Edit - Preferences - Setup dialog and the General tab. In the middle of the dialog is a list of settings that you can toggle on and off. Near the bottom of that list is one called "Clear Input on Execution". If that is checked, it will not remember the setting regardless of whether you are Operator mode or full administrator.
  • Yes, the offshift has a different login. That login does not have Admin rights.

    The "Clear input on execution" is not checked.

    I feel it might not be possible because of Protected mode. If I use my login, or the offshift login with Protected mode off, I can edit the size of an analyses view as it appears on the report. But as soon as I return it to Protected mode it defaults back to the original size.