# Terminal Events

**URL:** <https://forum.sambapos.com/t/terminal-events/1302>\
**Category:** V4 Question\
**Created:** [May 16, 2014, 1:33pm UTC](https://forum.sambapos.com/t/terminal-events/1302 "2014-05-16T13:33:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Isaac](https://forum.sambapos.com/user_avatar/forum.sambapos.com/isaac/32/65380_2.png) [@Isaac](https://forum.sambapos.com/u/Isaac)\
**Post date:** [May 16, 2014, 1:33pm UTC](https://forum.sambapos.com/t/terminal-events/1302/1 "2014-05-16T13:33:15Z")

</div>

In the V2 database structure we had a table called Terminal Events where we can track terminal events such as date and time the NO SALE button was used.

How can I in V4:  
Track `No Sale` Automation Command for the hours it has been operated.

---

<div class="post-metadata">

**Author:** ![JohnS](https://forum.sambapos.com/user_avatar/forum.sambapos.com/johns/32/24916_2.png) [@JohnS](https://forum.sambapos.com/u/JohnS)\
**Post date:** [May 16, 2014, 10:20pm UTC](https://forum.sambapos.com/t/terminal-events/1302/2 "2014-05-16T22:20:08Z")

</div>

There is an Action to write data to a text file and it can use printer tags.

I’m not near my computer so I can’t give specifics.

---

<div class="post-metadata">

**Author:** ![Isaac](https://forum.sambapos.com/user_avatar/forum.sambapos.com/isaac/32/65380_2.png) [@Isaac](https://forum.sambapos.com/u/Isaac)\
**Post date:** [May 18, 2014, 9:06am UTC](https://forum.sambapos.com/t/terminal-events/1302/3 "2014-05-18T09:06:37Z")

</div>

Had no luck trying to configure this. Any guidance @JohnS or @emre

---

<div class="post-metadata">

**Author:** ![JohnS](https://forum.sambapos.com/user_avatar/forum.sambapos.com/johns/32/24916_2.png) [@JohnS](https://forum.sambapos.com/u/JohnS)\
**Post date:** [May 19, 2014, 12:21am UTC](https://forum.sambapos.com/t/terminal-events/1302/4 "2014-05-19T00:21:15Z")

</div>

Create Action `Add to Log File`. Set the path and name of the file.

 ![](https://forum.sambapos.com/uploads/default/original/3X/0/c/0cc5c53c079679e773282a79bfabdf12c781202a.png)

Set UserName variable at User Login - needed as [:UserName] is not available when using Automation Command Rules.

 ![](https://forum.sambapos.com/uploads/default/original/3X/6/4/6445f0a6dcf89a0f70bd6bf8a772c926d920af95.png)

Create a new Rule (or add to existing) for Open Cash Drawer (No Sale).

 ![](https://forum.sambapos.com/uploads/default/original/3X/a/4/a43021261bc86a6ec721e1c8fc11e73572d9fcc1.png)

---

<div class="post-metadata">

**Author:** ![Isaac](https://forum.sambapos.com/user_avatar/forum.sambapos.com/isaac/32/65380_2.png) [@Isaac](https://forum.sambapos.com/u/Isaac)\
**Post date:** [May 19, 2014, 8:45am UTC](https://forum.sambapos.com/t/terminal-events/1302/5 "2014-05-19T08:45:05Z")

</div>

@JohnS

Your a legend. Worked a treat.
