# New Ticket Lister formats

**URL:** <https://forum.sambapos.com/t/new-ticket-lister-formats/4427>\
**Category:** V5 Question\
**Created:** [March 1, 2015, 1:27am UTC](https://forum.sambapos.com/t/new-ticket-lister-formats/4427 "2015-03-01T01:27:39Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [March 1, 2015, 1:27am UTC](https://forum.sambapos.com/t/new-ticket-lister-formats/4427/1 "2015-03-01T01:27:39Z")

</div>

@emre I love this btw. I am going to tweak the heck out of this and play around with it but man thats great.

 ![](https://forum.sambapos.com/uploads/default/original/3X/d/f/df2ed1616c9d08db4f050380ff6e21b93d00b1ef.png) 

Love how it shows duration of order. I am working on the scripting for it to change colors if X duration has passed.

> [@On another topic](https://forum.sambapos.com/t/3524/648):
>
> Now I’m thinking we can simply pass minutes to a JS (via CALL) and let it return a \<color red\>13\</color\> value according to value.

Is this possible now? I mean I think I have the script ready and I want to play with it.I will try in a few minutes but I assume insert the CALL into the template area of settings?

---

<div class="post-metadata">

**Author:** ![RickH](https://forum.sambapos.com/user_avatar/forum.sambapos.com/rickh/32/51960_2.png) [@RickH](https://forum.sambapos.com/u/RickH)\
**Post date:** [March 1, 2015, 1:41am UTC](https://forum.sambapos.com/t/new-ticket-lister-formats/4427/2 "2015-03-01T01:41:54Z")

</div>

is that formatting just on custom entity screen, i take it it cant be used on default ticket list screen when using actions and rules to display ticket list?

---

<div class="post-metadata">

**Author:** ![emre](https://forum.sambapos.com/user_avatar/forum.sambapos.com/emre/32/39073_2.png) [@emre](https://forum.sambapos.com/u/emre)\
**Post date:** [March 1, 2015, 2:08am UTC](https://forum.sambapos.com/t/new-ticket-lister-formats/4427/3 "2015-03-01T02:08:49Z")

</div>

> [@Jesse](#):
>
> but I assume insert the CALL into the template area of settings?

Yes that should work.

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [March 1, 2015, 3:19am UTC](https://forum.sambapos.com/t/new-ticket-lister-formats/4427/4 "2015-03-01T03:19:11Z")

</div>

That is ticket list screen. It is a Ticket Lister template. New options with v5 😛

```
<J><block 30><color #AA00FF00>{TICKET NO} </color></block>
<L><size 12><block 10>
{ORDERS}
<L></block></size>
<R><block>{TICKET STATE MINUTES:Status} min.</block>

[ORDERS]
<J>{QUANTITY} {NAME} | {PRICE}<br/>

```

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

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [March 1, 2015, 3:31am UTC](https://forum.sambapos.com/t/new-ticket-lister-formats/4427/5 "2015-03-01T03:31:12Z")

</div>

> [@RickH](#):
>
> is that formatting just on custom entity screen, i take it it cant be used on default ticket list screen when using actions and rules to display ticket list?

Yes its custom. @RickH you have much to learn yet young padawan lol. You can use actions and rules to switch directly to any screen now. Look at Navigate Module action. To switch to Entity Screen use Entity as the Module Name and then use the name of your screen for Paremeter. So for example if you have a Custom Entity Screen called To Go Orders you would put Entity for Module Name and To Go Orders for Paremeter. You can then use any rule event for automation to switch directly to that screen.

No more using Change Entity tricks etc.

EDIT: Additionally if you want to switch to lets say your Suppliers Accounting screen you can put Accounts as module and Suppliers as your parameter and it will go directly to your Suppliers accounting screen. I know you requested this while back… now you have it.

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [March 1, 2015, 4:17am UTC](https://forum.sambapos.com/t/new-ticket-lister-formats/4427/6 "2015-03-01T04:17:57Z")

</div>

Hmm I cant get CALL to work inside the template. I am trying just a very basic jscript to ensure its working.

```
<J><block 30><color #AA00FF00>{TICKET NO} </color></block>
<L><size 12><block 10>
{ORDERS}
<L></block></size>
<R><block>{CALL:weather.minutes('ENTITY STATE MINUTES')} min.</block>

[ORDERS]
<J>{QUANTITY} {NAME} | {PRICE}<br/>

```

* * *

```
function minutes(minutes)

(

  var test = 'Test'+minutes;

  

  return test;

  }

```

Should return TestEntityStateMinutes but it returns nothing.

BTW before you ask yes I have it inside the weather handler I am just quickly trying to test it.

 ![](https://forum.sambapos.com/uploads/default/original/3X/e/6/e63f3b35ff67e9636796abc044526ca735e61831.png)

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [March 1, 2015, 4:29am UTC](https://forum.sambapos.com/t/new-ticket-lister-formats/4427/7 "2015-03-01T04:29:38Z")

</div>

Just tried this with no luck as well:

```
<J><block 30><color #AA00FF00>{TICKET NO} </color></block>
<L><size 12><block 10>
{ORDERS}
<L></block></size>
{CALL:weather.minutes('ENTITY STATE MINUTES')} 

[ORDERS]
<J>{QUANTITY} {NAME} | {PRICE}<br/>

```

* * *

```
function minutes(minutes)

(

  var test = '<R><block>Test'+minutes+' .min </block>';

  

  return test;

  }
```

---

<div class="post-metadata">

**Author:** ![emre](https://forum.sambapos.com/user_avatar/forum.sambapos.com/emre/32/39073_2.png) [@emre](https://forum.sambapos.com/u/emre)\
**Post date:** [March 1, 2015, 6:37am UTC](https://forum.sambapos.com/t/new-ticket-lister-formats/4427/8 "2015-03-01T06:37:07Z")

</div>

Can you try replacing 3rd line bracket with curly bracket?

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [March 1, 2015, 6:39am UTC](https://forum.sambapos.com/t/new-ticket-lister-formats/4427/9 "2015-03-01T06:39:38Z")

</div>

LOL omg I must have missed that let me try. Ok that worked I am pretty tired cant believe I missed that. At least I know it works so im gonna sleep before I implement the color changing.

---

<div class="post-metadata">

**Author:** ![emre](https://forum.sambapos.com/user_avatar/forum.sambapos.com/emre/32/39073_2.png) [@emre](https://forum.sambapos.com/u/emre)\
**Post date:** [March 1, 2015, 6:44am UTC](https://forum.sambapos.com/t/new-ticket-lister-formats/4427/10 "2015-03-01T06:44:29Z")

</div>

lol generally you find our syntax errors. You must be really tired…

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [March 1, 2015, 7:25am UTC](https://forum.sambapos.com/t/new-ticket-lister-formats/4427/11 "2015-03-01T07:25:29Z")

</div>

@emre I couldnt let it go. I got it working but it seems to ignore `<block>`  
Its also eating memory like its no tomorow.

EDIT: Actually it may be ignoring `<R>`  
EDIT: Ok memory issue is solved. Had to do with me trying to insert `<block>` into the jscript instead of template.

 ![](https://forum.sambapos.com/uploads/default/original/3X/e/8/e85794acc8df0f548bd3e1028d05495d9954911e.png)

```
function min(minutes)

{
   
  var test = minutes;

  if (test>15){
   
  return tag.Color('red',test);

  }

return test;

  }

```

* * *

```
<J><block 30><color #AA00FF00>{TICKET NO} </color></block>
<L><size 12><block 10>
{ORDERS}
<L></block></size>
<R><block>{CALL:weather.min('{TICKET STATE MINUTES:Status}')} min.</block>

[ORDERS]
<J>{QUANTITY} {NAME} | {PRICE}<br/>
```

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [March 1, 2015, 4:26pm UTC](https://forum.sambapos.com/t/new-ticket-lister-formats/4427/12 "2015-03-01T16:26:40Z")

</div>

Fresh morning and I tried just about everything and still can not get it to justify to right correctly. I can take block off and it will put the red numbers in middle but no right justification yet. @emre I guess I need help to sort this out. Is there a tag or tag structure I am missing?

---

<div class="post-metadata">

**Author:** ![QMcKay](https://forum.sambapos.com/user_avatar/forum.sambapos.com/qmckay/32/27925_2.png) [@QMcKay](https://forum.sambapos.com/u/QMcKay)\
**Post date:** [March 1, 2015, 5:21pm UTC](https://forum.sambapos.com/t/new-ticket-lister-formats/4427/13 "2015-03-01T17:21:39Z")

</div>

> [@Jesse](#):
>
> if you want to switch to lets say your Suppliers Accounting screen you can put Accounts as module and Suppliers as your parameter and it will go directly to your Suppliers accounting screen

I have tried this and cannot get it work.

Module Name: Accounts  
Parameter: Customer Accounts

It still brings me to the “General” Account Screen.

Edit: wait please stand by. My Rule is not firing. Must be a default Automation.

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [March 1, 2015, 5:30pm UTC](https://forum.sambapos.com/t/new-ticket-lister-formats/4427/14 "2015-03-01T17:30:05Z")

</div>

Oh yeah he changed something. Before if you had custom template it would negate automatic automation. Now you have to check the **Execute Command** box. If your using the reserved name for command that is like **Accounts**.

I noticed that last night. So if your tile is named Accounts and you want it to run a different command you have to check the box now even if you put a template in.

 ![](https://forum.sambapos.com/uploads/default/original/3X/9/1/911f3db7e55167460a3e43b10efc455a33ed85f1.png)

---

<div class="post-metadata">

**Author:** ![QMcKay](https://forum.sambapos.com/user_avatar/forum.sambapos.com/qmckay/32/27925_2.png) [@QMcKay](https://forum.sambapos.com/u/QMcKay)\
**Post date:** [March 1, 2015, 5:40pm UTC](https://forum.sambapos.com/t/new-ticket-lister-formats/4427/15 "2015-03-01T17:40:11Z")

</div>

Yup, that was it. It was doing the Default Navigation Automation, so the Rule wasn’t firing.

I checked Execute Command, and now the Rule fires and takes me to the Account Screen that I want.

Good catch @kendash… thanks!

EDIT: I see that it hides the screen header buttons when does this way as well. Neat feature.

 ![](https://forum.sambapos.com/uploads/default/original/3X/0/2/020d851f5594edd4cf76c0512d740277d380ad87.png)

---

<div class="post-metadata">

**Author:** ![RickH](https://forum.sambapos.com/user_avatar/forum.sambapos.com/rickh/32/51960_2.png) [@RickH](https://forum.sambapos.com/u/RickH)\
**Post date:** [March 1, 2015, 10:20pm UTC](https://forum.sambapos.com/t/new-ticket-lister-formats/4427/16 "2015-03-01T22:20:43Z")

</div>

@Jesse im struggling to setup the custom ticket lister screen. I have done all the automation with new navigation module and setup entity screen. automation works and custom entity screen is loaded, ive added ticket lister template in design mode but i cant get it to display my suspended sale (ive renamed my parked sales setup to suspended sales)

So i want it to display all suspended sales, when they suspended sale is created the ticket state changes to Suspended Sale, i just cant seem to get the settings right to actually display them in the ticket lister widget. then i can play with the formatting like you are 🙂

Any chance you could quickly show me the correct way to setup the entity screen and ticket lister setting to display tickets with state Suspended Sale?

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [March 1, 2015, 10:45pm UTC](https://forum.sambapos.com/t/new-ticket-lister-formats/4427/17 "2015-03-01T22:45:44Z")

</div>

Pull up one of those tickets while its in suspended state and let us see a screenshot of it. Show us your Ticket Lister widget settings screen as well please.

---

<div class="post-metadata">

**Author:** ![RickH](https://forum.sambapos.com/user_avatar/forum.sambapos.com/rickh/32/51960_2.png) [@RickH](https://forum.sambapos.com/u/RickH)\
**Post date:** [March 1, 2015, 10:59pm UTC](https://forum.sambapos.com/t/new-ticket-lister-formats/4427/18 "2015-03-01T22:59:54Z")

</div>

![](https://forum.sambapos.com/uploads/default/original/3X/5/7/575a0f285b2a141ae18599fd33268bbeebc03930.png) 

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

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [March 1, 2015, 11:01pm UTC](https://forum.sambapos.com/t/new-ticket-lister-formats/4427/19 "2015-03-01T23:01:00Z")

</div>

Try making it Suspended Sale instead of Suspended Sales If you want to filter by Ticket Tag then you could put this inside Filter:

```
[t:Suspended Sales] is "Test"

```

However instead of using Suspended Sale for ticket state why not just make the state Suspended?

---

<div class="post-metadata">

**Author:** ![RickH](https://forum.sambapos.com/user_avatar/forum.sambapos.com/rickh/32/51960_2.png) [@RickH](https://forum.sambapos.com/u/RickH)\
**Post date:** [March 1, 2015, 11:04pm UTC](https://forum.sambapos.com/t/new-ticket-lister-formats/4427/20 "2015-03-01T23:04:33Z")

</div>

changed that and changed Unpaid to Submitted as i noticed order state was submitted so it now shows this

 ![](https://forum.sambapos.com/uploads/default/original/3X/8/2/82bffc13fc5f408f15c9d1e70d6c062673253535.png) 

Which i can no play with formatting on, however it i click it instead of opening ticket it shows this screen, which i then have to click the order again to open it??

 ![](https://forum.sambapos.com/uploads/default/original/3X/5/9/59d6947ef3d76d68a606b5da3e6e81024dc99256.png)

how to i make it just open the ticket when i click it, instead of opening another ticket lister screen?

[Next page](https://forum.sambapos.com/t/new-ticket-lister-formats/4427.md?page=2)
