Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ClockIn SIM Event

Status
Not open for further replies.

RitwickGupta

Programmer
Aug 21, 2014
96
CA
I want to display an info message and do some other things when someone Clocks in. Where do I put the code for Event ClockIn? I mean in which ISL File? I can trigger an interface by using touchscreen from POS Configurator, but what about ClockIn?
 
I would create a new SIM script. Name it pms*.isl where the star is an isl file that is used yet. Then you have to link it up through interface tab in POS Config. The interface number needs to be the same as the *. Generally I would put the "event clockin" after the after the declared variables. You can put whatever you would like between the "event clockin" and "endevent" and everything in between will happen every clock in. Here is a very basic example that displays the message "Remember to card your guests" every time somebody clocks in.

event clockin

Infomessage "Remember to card your guests"

endevent
 
Hey,

Thanks for reply.

I created the pms file accordingly and everything. The issue is, I can only assign an interface to a touchscreen designer to a button which is of PMS?Interface category in POS configurator. The Clock-in button I have is of type Function: Numeric. So I cant associate it with an interface and hence with a PMS file. Please see the attached images to understand what I mean. The button to Clock in is "ENTER". You press your emp code and press enter

Link

Link
 
It's looking for the "clockin" event. It doesn't need to be assigned to any button. It just waits till somebody clock's in and then fires. You could also change it to a "signin" event and then anytime anyone signs in it what fire the message.
 
So I just create an Interface with number "XYZ" and put my code in pmsXYZ.isl with a clockin function and it should work? I believe I tried that before but nothing happened.
 
That should do it. The clockin and clockout events work like final_tender. When one of those events happen OPS scans the SIM scripts and looks for any handlers. You can have clockin events in multiple scripts and they'll all fire as long as they don't interfere with each other.
 
Yes that is correct. I would check the setting in the poscfg>devices>interfaces. The network node needs to be the server, sim interface checked, and interface type as TCP. Then under the interface tab, the server name/ip address/127.0.0.1 needs to be in there and then a port number like 5004.
 
tried it just now. didn't work.

Created an interface XYZD number 198. created pms198.isl and put a infomessage clockin function into it. Clocked in, didn't show anything.
 
Does the code inside your event work if you put it into a numbered inquire and call it using a touchscreen button?

 
Yes. the Clockin/Clockout button is a PMS/Inquire button. When I assigned it to an interface and then ran it, it worked.
 
event clockin

Infomessage "Remember to card your guests"

endevent
 
the problem isn't in the code, it's in the settings somewhere
 
I don't know what's wrong. I just set up a new interface as number 198, pasted your code into a text file and saved it as Pms198.isl in the etc\ folder and it works correctly.

Settings:
number: 198
name: tester
Outgoing message: tester
Network Node: Micros server
Timeout: 30
ID Digits: 9
SIM Interface: checked
Interface Type: TCP
TCP Server: 127.0.0.1
TCP Port: 5009

Are you testing this on the server or on a workstation?
 
That is weird. I have everything same as your except Network Mode. It's a demo machine so I dont have the option Micro Server. I am using M1 - Demo.

What is the difference between a server and a workstation?
 
You are most likely running it on the server. The workstation would be the separate device that is used to run MICROS ops (Server's ring in items on these.) These reason for asking, is that the isl file needs to be copied to the CAL>Ect folder in order for it to get to the workstations.
 
I copied the isl file in all of the folders below

D:\MICROS\Res\Pos\Etc
D:\MICROS\Res\CAL\WS5A\Files\CF\Micros\ETC
D:\MICROS\Res\CAL\WS5\Files\CF\Micros\ETC
D:\MICROS\Res\CAL\WS4\Files\CF\Micros\ETC
D:\MICROS\Res\CAL\WS4LX\Files\CF\Micros\ETC
D:\MICROS\Res\CAL\Win32\Files\Micros\Res\Pos\Etc

Still no luck.
 
Also, for the code I posted, the "Clock In/Out" button needs to be set to

Category: "Function: Non-sales"
Function: Clock In/Out

Not a "SIM/PMS Inquire
 
Do signin events work?

event signin

Infomessage "blah blah blah"

endevent
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top