# Copy Ticket tag to Ticket note

**URL:** <https://forum.sambapos.com/t/copy-ticket-tag-to-ticket-note/21676>\
**Category:** V5 Question\
**Created:** [February 20, 2020, 6:31pm UTC](https://forum.sambapos.com/t/copy-ticket-tag-to-ticket-note/21676 "2020-02-20T18:31:27Z")\
**Posts on this page:** 11\
**Page:** 2

<div class="post-metadata">

**Author:** ![JTRTech](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jtrtech/32/21270_2.png) [@JTRTech](https://forum.sambapos.com/u/JTRTech)\
**Post date:** [February 24, 2020, 8:16pm UTC](https://forum.sambapos.com/t/copy-ticket-tag-to-ticket-note/21676/21 "2020-02-24T20:16:39Z")

</div>

I am away without pc.  
You can add columns to ticket explorer, what are the available options?  
If you have you looks at maybe using ticket lister widget on an entity screen?

---

<div class="post-metadata">

**Author:** ![DAYVDMN](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/d/c6cbf5/32.png) [@DAYVDMN](https://forum.sambapos.com/u/DAYVDMN)\
**Post date:** [February 25, 2020, 5:50am UTC](https://forum.sambapos.com/t/copy-ticket-tag-to-ticket-note/21676/22 "2020-02-25T05:50:11Z")

</div>

when youre back,any leads will be of great help.let me try create a custom entity screen for now while i wait on you. 🙂

---

<div class="post-metadata">

**Author:** ![Bob\_be](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/b/e480ec/32.png) [@Bob\_be](https://forum.sambapos.com/u/Bob_be)\
**Post date:** [February 25, 2020, 3:22pm UTC](https://forum.sambapos.com/t/copy-ticket-tag-to-ticket-note/21676/23 "2020-02-25T15:22:24Z")

</div>

I did a quick mock up of an Entity screen using reports. (Ticket Lister would work as well). Using reports will give an option to search with-in report results. It behaves a little different than the default Ticket Explorer.

 ![W5HyUDoXj4](https://forum.sambapos.com/uploads/default/original/3X/3/2/322c91358a7d8bc8f1935a082326f2659ffe5b30.png)

In your dream custom ticket explorer, what fields would you like to see?

---

<div class="post-metadata">

**Author:** ![DAYVDMN](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/d/c6cbf5/32.png) [@DAYVDMN](https://forum.sambapos.com/u/DAYVDMN)\
**Post date:** [February 25, 2020, 8:46pm UTC](https://forum.sambapos.com/t/copy-ticket-tag-to-ticket-note/21676/24 "2020-02-25T20:46:23Z")

</div>

Wow…This is really cool.this perfectly  
meets my dream…my only last wish is a search panel and id be sorted.Thanks

---

<div class="post-metadata">

**Author:** ![Bob\_be](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/b/e480ec/32.png) [@Bob\_be](https://forum.sambapos.com/u/Bob_be)\
**Post date:** [February 25, 2020, 11:09pm UTC](https://forum.sambapos.com/t/copy-ticket-tag-to-ticket-note/21676/25 "2020-02-25T23:09:37Z")

</div>

I’m no genie, but I think I can grant you the wishes. 🤣 …we kinda, Ticket ID does nothing visually, we just need it to load the ticket. We can hide that column. The search I’ll show you when it’s done.

I don’t have much time tonight to show you everything. I can show you a few things to get you started.

Here is the Report needed:

 ![irwcUlKVfo](https://forum.sambapos.com/uploads/default/original/3X/c/a/cad641a3506449140f9dce37ae14a072f7cf8ef9.png)  
You may have to adjust the page size of the report to fit your screen. That can be done later.

Report

> [#Ticket Explorer:1,2,1,2,1,1,1,1,1]  
> \>Ticket No/Qty x Items|Ticket Type|Date|User|Total|CC Type|Last 4|Customer|Ticket ID  
> @{REPORT TICKET DETAILS:T.TicketNumber.asc::,}  
> {REPORT TICKET DETAILS:T.TicketNumber,T.TicketType,T.Date,T.User,T.TotalAmount,TT.CC Type,TT.CC Last 4 Digits,EC.Customers.First Name,T.Id:T.TicketNumber=“$1”:{0}|{1}|{2}|{3}|{4}|{5}|{6}|{7}|{8}}  
> {REPORT ORDER DETAILS:O.Quantity,O.MenuItemName,T.Id:T.TicketNumber=“$1”: {0} x {1}||||||||{2}}

Create an Entity Screen:

 ![2MwGmC7qXe](https://forum.sambapos.com/uploads/default/original/3X/0/a/0aa5c1767ddd1194d65907e64d8afd1c6f871182.png)  
Name: `Custom Ticket Explorer`  
Button Header: `Custom Ticket Explorer` (different from picture)  
Color: (your choice)  
View Mode: `Custom`

Automation Command:

 ![HwiQD3wGVS](https://forum.sambapos.com/uploads/default/original/3X/c/2/c2d5a3d1a13c9a55aa49fec052b5ea1e90b7236e.png)  
Navigation Settings:  
 ![ECaMHWvXtN](https://forum.sambapos.com/uploads/default/original/3X/f/2/f205a5dcf4d132c8f3e51c40a5fd5484ffd9ea26.png)  
Mappings:  
 ![d9wrBE8dcF](https://forum.sambapos.com/uploads/default/original/3X/a/5/a5483eaf1073212b35d9b7c7303f5c019ca08cf4.png)  
This will put a tile on the Main Menu screen.

From here you can add:

- Report Widget: Report: `Custom Ticket Explorer`
- Editor Widget with the “Local setting name”: `CTEStartDate`
- Editor Widget with the “Local setting Name”: `CTEEndDate`
- Label Widget, Text field: `Start Date:`
- Label Widget, Text field: `End Date:`  
(Right click on the widget after creating, go to “Settings” on the popup.

That’s all the time I have tonight to help you. I can finish tomorrow. This should get you started and familiar with a few things. Place & size the widgets where you would like them. If you wouldn’t mind, post some screen shots.

If anybody has some improvements that I missed, I welcome them!

---

<div class="post-metadata">

**Author:** ![Bob\_be](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/b/e480ec/32.png) [@Bob\_be](https://forum.sambapos.com/u/Bob_be)\
**Post date:** [February 26, 2020, 9:03pm UTC](https://forum.sambapos.com/t/copy-ticket-tag-to-ticket-note/21676/26 "2020-02-26T21:03:11Z")

</div>

I have more time today. I see I made a few mistakes in the previous post. Sorry. I’ll start over using the same screenshots.

**Report:**

 ![irwcUlKVfo](https://forum.sambapos.com/uploads/default/original/3X/c/a/cad641a3506449140f9dce37ae14a072f7cf8ef9.png)  
You may have to adjust the page size of the report to fit your screen. That can be done later.

Report:

> [#Ticket Explorer:1,2,1,2,1,1,1,1,1]  
> \>Ticket No/Qty x Items|Ticket Type|Date|User|Total|CC Type|Last 4|Customer|Ticket ID  
> @{REPORT TICKET DETAILS:T.TicketNumber::,}  
> {REPORT TICKET DETAILS:T.TicketNumber,T.TicketType,T.Date,T.User,T.TotalAmount,TT.CC Type,TT.CC Last 4 Digits,EC.Customers.First Name,T.Id:T.TicketNumber=“$1”:{0}|{1}|{2}|{3}|{4}|{5}|{6}|{7}|{8}}  
> {REPORT ORDER DETAILS:O.Quantity,O.MenuItemName,T.Id:T.TicketNumber=“$1”: {0} x {1}||||||||{2}}

(note) - Your Customers field may be different. If you want to used the primary field change `EC.Customers.First Name` to `EN.Customers`  
I dropped the `.asc` off the `T.TicketNumber field of the `@` line

**Entity Screen:**  
Manage-\>Entities-\>Entity Screens-\>Add Entity Screen (right side)

 ![2MwGmC7qXe](https://forum.sambapos.com/uploads/default/original/3X/0/a/0aa5c1767ddd1194d65907e64d8afd1c6f871182.png)  
Name: `Custom Ticket Explorer`  
Button Header: `Custom Ticket Explorer` (different from picture)  
View Mode: `Custom`

**Automation Command:**  
Manage-\>Automation-\>Automation Commands-\>Add Automation Command (right side)  
(General Settings:)

 ![HwiQD3wGVS](https://forum.sambapos.com/uploads/default/original/3X/c/2/c2d5a3d1a13c9a55aa49fec052b5ea1e90b7236e.png)

(Navigation Settings:)

 ![ECaMHWvXtN](https://forum.sambapos.com/uploads/default/original/3X/f/2/f205a5dcf4d132c8f3e51c40a5fd5484ffd9ea26.png)  
Navigation Module: `Entity`  
Navigation Module Parameter: `Custom Ticket Explorer`

(Mappings:)

 ![d9wrBE8dcF](https://forum.sambapos.com/uploads/default/original/3X/a/5/a5483eaf1073212b35d9b7c7303f5c019ca08cf4.png)  
Click “Add”, change last column under Visibility to: `Display on Navigation`  
This will put a tile on the Main Menu screen.

**Entity screen widgets:**  
Navigating to new Custom Ticket Explorer (Main Menu-\>Custom Ticket Explorer)  
Right click any blank area. Select `Design Mode`  
You will know you are in design mode with a red line around the screen and also if you right click there will be a check mark next to `Design Mode`  
 ![oQKurHfE2i](https://forum.sambapos.com/uploads/default/original/3X/d/e/de04c6e3c2f7664417e606d764e9ac8554a0384b.png)

From here you can add widget, position after creating :

- 1 - Report Widget
- 2 - Editor Widgets
- 2 - Label Widgets
- 2 - Automation Command Button

Left click on each widget, then right click select Setting [`<widget name>`]  
Report Widget:  
 ![AOxfCqLeuV](https://forum.sambapos.com/uploads/default/original/3X/9/b/9b24c83a966eb5e806406d4b7d049aa4a3f06aad.png)  
Report Widget: Report: `Custom Ticket Explorer`  
Parameters: (blank)  
Setting mappings: `CTETicketNo=Ticket Explorer.9`  
Refreshing widgets: `CTELoadTicket`  
click `OK`  
— Additional step: Right click again. Select `Property [Custom Ticket Explorer]`  
 ![BJN1wrcWoi](https://forum.sambapos.com/uploads/default/original/3X/c/f/cf404f77789568d59b416f00dd2ae9119372442f.png)  
Id: (leave as is)  
Name: `CTEReport`  
click OK

Editor Widgets:

 ![joBMKy1Ew5](https://forum.sambapos.com/uploads/default/original/3X/c/2/c238e461c3cc93edf738639392fe26627ef47806.png)  
Editor Widget with the “Local setting name”: `CTEStartDate`  
Editor Type: `Date Edit`  
Edit Mask: `MM\/dd\/yyyy`

Editor Widget with the “Local setting Name”: `CTEEndDate`  
Editor Type: `Date Edit`  
Edit Mask: `MM\/dd\/yyyy`

Label Widget:

 ![3UJhpiQ5Qb](https://forum.sambapos.com/uploads/default/original/3X/f/a/fafb996c5ed3ad263a48066e8bf94cfa9f5ed672.png)  
Label Widget, Text field: `Start Date:`  
Font Size: `16`  
Alignment: `Right`

Label Widget, Text field: `End Date:`  
Font Size: `16`  
Alignment: `Right`  
(click OK to close)

Automation Command Buttons:

 ![2qpiRipP3S](https://forum.sambapos.com/uploads/default/original/3X/b/2/b2291d0e8ddfa2976fb493d247ef6b2b6c7e8cbb.png)  
Command Name: `CTE Display Ticket`  
Value: `{LOCAL SETTING:CTETicketNo}`  
Caption: `Load Ticket`  
Button Color: (your choice)

Command Name: `CTE Report Refresh`  
Value: (blank)  
Caption: `<bold>Refresh</bold>`  
Font Size: `16`

Right click on screen, Select “Design Mode” to exit out of design mode.

**Actions**

 ![KsfwmMvVmo](https://forum.sambapos.com/uploads/default/original/3X/4/0/40c069dfde9807f5c1c359a8d08055819a522095.png)  
Action Name: `CTE Custom Ticket Explorer Report Refresh`  
Action Type: `Refresh Custom Report Widget`  
Widget Name: `CETReport`  
Report Name: `Custom Ticket Explorer`  
Report Parameters: `[:report parameters]`  
Date Filter: `[:date filter]`  
Reset Cache: `[:Reset Cache T/F]’

**Rules (1 of 2)**

 ![nUoeIYUBob](https://forum.sambapos.com/uploads/default/original/3X/d/5/d5f7742c6a13f31f6a0b297f649871862f4a243e.png)  
Rule Name: `CTE Report Refresh`  
Event: `Automation Command Executed`  
Constraints: `Automation Command Name **Equals** CTE Report Refresh`  
Action: `CTE Custom Ticket Explorer Report Refresh`  
report parameters: (blank)  
date filter: `{LOCAL SETTING:CTEStartDate} <> {LOCAL SETTING:CTEEndDate}`  
Reset Cache T/F: `True`

**Rule (2 of 2)**

 ![qUS3moomKm](https://forum.sambapos.com/uploads/default/original/3X/a/0/a015b5b84e7472685cc69d78370947d77d49cfd2.png)  
Rule Name: `CTE Display Ticket`  
Event Name: `Automation Command Executed`  
Constraints: `Automation Command Name` **`Equals`** `CTE Display Ticket`  
`Command Value` **`Is Not Null`** (blank)  
Action: `Display Ticket` (this should be an existing action)  
Ticket ID: `[:CommandValue]`

**Hiding the Ticket ID Column:**

 ![fD5i1d2mlv](https://forum.sambapos.com/uploads/default/original/3X/d/6/d64b0138bea0824cc7af37f35b563d118faa1695.png)  
Right click anywhere on the Column Headers. A popup will appear. Select `Show Column Chooser` (blue outline box).

A small popup window will appear.

 ![PrvdVQR9Vi](https://forum.sambapos.com/uploads/default/original/3X/a/a/aad56d921a80b7c049e18c3acb0fc5d29583e363.png)  
Click and hold the Ticket ID column and drag it into the small window. Close the window.

**Search**

 ![ZUUeX8DHdS](https://forum.sambapos.com/uploads/default/original/3X/b/5/b59b22cb23c27af2d53d99a081ff4b475f8ce3c7.png)  
Right click again in the Column Header bar. Select Show Search Panel (green box in the above picture)  
Type any info you want to search for in the box.

**Column Adjustment**  
Right Click on the column header bar again, Select `Best Fit (all columns)`

**Saving Settings**  
Right Click anywhere in the report body. Select `Save Changes`. Exit and restart SambaPOS.

To Use:

- Type or select from the drop down boxes the dates. Click Refresh to run the report. (there may be a pause while it loads, depending how big the report is)
- Highlight any row, then click Load Ticket to view the ticket.

**A few limitation of this explorer**

- You can sort by column, however the Orders row line(s) will not maintain their position with respect to the Ticket row information line. To get back to the default view, log out then back into SambaPOS.
- Closing the ticket after viewing it will not bring you back to the custom ticket explorer. You will have to navigate back to it.

If anybody has some improvements that I missed, I welcome them!

---

<div class="post-metadata">

**Author:** ![DAYVDMN](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/d/c6cbf5/32.png) [@DAYVDMN](https://forum.sambapos.com/u/DAYVDMN)\
**Post date:** [February 29, 2020, 3:19pm UTC](https://forum.sambapos.com/t/copy-ticket-tag-to-ticket-note/21676/27 "2020-02-29T15:19:13Z")

</div>

![SAMBA4](https://forum.sambapos.com/uploads/default/original/3X/9/6/9649b49fd8dc5f0c402a4301a12a3a0be7d3c3b6.jpeg) Hello there, when i paste the report format it gives that error.am wondering tho i may be wrong…is this line @{REPORT TICKET DETAILS:T.TicketNumber::,} calling a script that i dont have?  
i have changed to the names of the tags am using.see below:

[#Ticket Explorer:1,2,1,2,1,1,1,1,1]

> Ticket No/Qty x Items|Ticket Type|Date|User|Total|CC Type|Last 4|Customer|Ticket ID  
> @{REPORT TICKET DETAILS:T.TicketNumber::,}  
> {REPORT TICKET DETAILS:T.TicketNumber,T.TicketType,T.Date,T.User,T.TotalAmount,TT.CCtype,TT.CCdigits,EN.Customers,T.Id:T.TicketNumber=“$1”:{0}|{1}|{2}|{3}|{4}|{5}|{6}|{7}|{8}}  
> {REPORT ORDER DETAILS:O.Quantity,O.MenuItemName,T.Id:T.TicketNumber=“$1”: {0} x {1}||||||||{2}}

---

<div class="post-metadata">

**Author:** ![Bob\_be](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/b/e480ec/32.png) [@Bob\_be](https://forum.sambapos.com/u/Bob_be)\
**Post date:** [February 29, 2020, 5:02pm UTC](https://forum.sambapos.com/t/copy-ticket-tag-to-ticket-note/21676/28 "2020-02-29T17:02:02Z")

</div>

Save the report. Then reopen it to see if it works. The reason it needs to be saved is because of the `#` before the report name. It gets treated different than a normal report.

The `@{REPORT TICKET DETAILS:T.TicketNumber::,}` is building a list of Ticket Numbers. That list then is ran through the other reports everywhere there is a `$1` (it will replace the `$1` with every Ticket Number from the list). If we were running just the ticket report we wouldn’t necessary need to use the @ & $1. But because we also have an Orders report, the @ & $1 will keep both reports results grouped together.

If you want to see what the list looks like, just copy the report info after the @ and paste it a new report. It’s a good idea to do when building reports to make sure the list you get is the list you want.

---

<div class="post-metadata">

**Author:** ![DAYVDMN](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/d/c6cbf5/32.png) [@DAYVDMN](https://forum.sambapos.com/u/DAYVDMN)\
**Post date:** [February 29, 2020, 7:51pm UTC](https://forum.sambapos.com/t/copy-ticket-tag-to-ticket-note/21676/29 "2020-02-29T19:51:06Z")

</div>

Awesome.it worksThanks.now lemmi work on the Screen.

---

<div class="post-metadata">

**Author:** ![DAYVDMN](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/d/c6cbf5/32.png) [@DAYVDMN](https://forum.sambapos.com/u/DAYVDMN)\
**Post date:** [March 1, 2020, 4:25pm UTC](https://forum.sambapos.com/t/copy-ticket-tag-to-ticket-note/21676/30 "2020-03-01T16:25:21Z")

</div>

![samba5](https://forum.sambapos.com/uploads/default/original/3X/2/b/2b6ec2db7eeb6ec8d6c93a8d151644b66ae899b0.jpeg) It worked like charm! Thanks a lot everyone.  
@Bob_be…Special Thanks

---

<div class="post-metadata">

**Author:** ![Bob\_be](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/b/e480ec/32.png) [@Bob\_be](https://forum.sambapos.com/u/Bob_be)\
**Post date:** [March 2, 2020, 9:56pm UTC](https://forum.sambapos.com/t/copy-ticket-tag-to-ticket-note/21676/31 "2020-03-02T21:56:11Z")

</div>

👍 Glad you got it working! 👍

> [@DAYVDMN](#):
>
> i have changed to the names of the tags am using.see below:

I missed this on Sat. Great Job! That’s exactly what you were suppose to do!

[Previous page](https://forum.sambapos.com/t/copy-ticket-tag-to-ticket-note/21676.md?page=1)
