Uhh just rebooted a remote till

and ive been waiting for it to come online for like 1 hour…

Uhh, guess ill be taking a drive in the morning before they open…

uhh uhh fml…

All I wanna do is get this new system up for them so they cant BREAK anything, and I end up doing just that

and its 2am lol

1 Like

and were finished.

All working with a love letter waiting for them when they come in in the morning lol

oh god, that reminded me of the time when i had finally finished setting up a client system which included 3 tablets, 4 printers and 2 tills, only to have it screw up on me last second and the following day was there official open day!!!

i recall staying onsite till 4:30am making everything from scratch again coz the database file got corrupted when i was transferring the file over to my backup hdd. and i had to be at work at 7 the same day!

well done :smiley:

1 Like

It was about 4am when i finally finished.

Left them a love note… and using the add user, i restricted all their access… now they cannot break ANYTHING HAHAHAHAHA!!!


1 Like

evvillllll i shud do that with all of my clients too haha

Plan is now to not allow them into the main menu area at all and have a manager functions button.

How are you doing it?
My plan origionaly when weighing up going big time with reselling tills with samba was a ‘management’ entity screen(s). To create a full feature system with the management screen being used to turn features on and off and do all the on site admin protecting the automation for everything… Would be so much easier if had more control over user roll and management sections access.

Now you’re relating this to the other Topic about creating Users. The original post and topic-name indicates that we want more control over who can access what in terms of the Management section.

For example, when we click “Manage”, it takes us into Management…

But we have more power now. We can lockout Management Sections individually. So what if we make that gear button take us here instead:

That is a (mockup of a) Custom Entity Screen with Automation Command Button Widgets on it. Each button has Settings something like this:

We have this Action:

And we have a Rule (or many Rules depending on how you want to set it up) that looks something like this:

Note that you could also constrain the Rule in the Rule Mappings, to limiti acces to User Role and Terminal.

You could also be more granular on your Action Constraints using {:CURRENTUSER} instead of {:CURRENTUSERROLE}.

1 Like

You can constrain the Screen too.

Or the Button/Tile …

Or the Automation Command within the Entity Screen …

1 Like

@emre, any chance there is a trick to opening up an entire section, for example if we wanted to specify access to all of Automation, maybe accept syntax like Automation:* ?

It turns out we need to be more granular in our Management Module specification. We currently need to specify Section and Module as sectionName:moduleName

Users:User List
Users:Role List

Automation:Automation Commands



Products:Product List
Products:Menu List

Inventory:Inventory Items
Inventory:End of day Records

... etc ...

Really? I didnt try yet as thought it was just section name in the value… Didnt realize we already had ‘module’ level…

The sub-section is required. Without it, all of Management becomes opened up. So if you just use something like “Inventory” as the section with no :module after it, then it opens up like you have full admin rights to all sections.

So, our custom screen starts to look like this, which is a bit of a pain, but still not too bad …

1 Like

Hmmm, might rethink that plan and have a go them if that is the case :slight_smile:
So the button takes you into that section, what about getting back? Menu button in bottom right? Going back to nav screen?

Yes. Straight to the section specified, with all others locked out / disabled. Main Menu button is there in the bottom-right as usual, which takes you to main Nav Screen.

Hmmmm, perhaps if posible the ability to specify multiple modules in a list would allow an equivilent to the user roll level restriction via a single nav button.
Would mean allot less navigation to go between sections.
Creating equivilent manage buttons with values relative to the level of access.

I was just gonna use ask question to do it… and have each button as an AMC to different allowed areas?


Ps I’m bloody hanging why do I do this to myself. Lol

A button for them to press

And a popup with things theyre allowed to touch

1 Like

a massive MAHOOSIVE long shot…

ill open a new topic if it could be done, as I’m no sql master.

Add Product gives a input method the same as Add Employee but gives Product Name, Price, Category.

It then inputs it into the database in both tables Product and Menu (Puts the product in the Category which I have all the same for both Products and Menu)

it then takes the colour used for the button and adds it automatically… 1 button, 2 jobs.

It should check that the category exists in both otherwise it will return an error message.


1 Like

I rekon I could give this a shot myself


gave it a shot, but where it looks for MenuItemId isnt created until after product made, so itll not be possible I don’t think…

function createProduct(p,r,u) {
  // can get Product fed via function or 
  //use Data.Get to retrieve Program Settings
  var prd = (typeof p === 'undefined' || p=='' ? Data.Get("Product") : p);
  var prc = (typeof r === 'undefined' || r=='' ? Data.Get("Price") : r);
  var ctg = (typeof c === 'undefined' || c=='' ? Data.Get("Category") : c);

  var q="SELECT [ButtonColor] FROM [ScreenMenuItems] WHERE [ScreenMenuCategoryId]='" + ctg + "'";
  var grp = sql.Query(q).First;

  // more validation
  prd = (typeof prd === 'undefined' ? '' : prd);
  prc = (typeof prc === 'undefined' ? '' : prc);
  ctg = (typeof ctg === 'undefined' ? '' : ctg);
  //check for existing user with that name
  var q="SELECT COUNT([Name]) AS [COUNT] FROM [MenuItems] WHERE [Name]='" + prd + "'";
  var productCount = sql.Query(q).First;

  if (prd!='' && prc!='' && ctg!='' && productCount==0) {
    // run SQL to create the User
    q = "INSERT INTO [MenuItems] ([GroupCode], [Name]) VALUES ('" + ctg + "', '" + prd + "')";
    q = "INSERT INTO [xxxxxxx] ([xxxxxxxx],) VALUES ('" + ctg + "')";
    q = "INSERT INTO [xxxxxxx] ([xxxxxxxx],) VALUES ('" + ctg + "')";
    var r = sql.ExecSql(q);
  } else {
    dlg.AskQuestion('Product with that name already in use.','OK');


no more breaking the till moahahaha!!

Close Workperiod=Close Workperiod:Red;Blue,Add Employee=Add Employee:Green;Blue,Reports=Reports:Orange;Blue,[=('{REPORT TICKET COUNT:(TS.Status=Unpaid)}'<='0' ? '0' : '{REPORT TICKET COUNT:(TS.Status=Unpaid)}')] Open Tickets=[=('{REPORT TICKET COUNT:(TS.Status=Unpaid)}'<='0' ? '0' : '{REPORT TICKET COUNT:(TS.Status=Unpaid)}')] Open Tickets:Yellow;Blue,Add Product=Add Product:Blue;Blue,Add Product to Menu=Add Product to Menu:Brown;Blue,Cancel

That’s my buttons on the Generic Question action

I especially like the bit (and impressed I managed to work it out) the

,[=('{REPORT TICKET COUNT:(TS.Status=Unpaid)}'<='0' ? '0' : '{REPORT TICKET COUNT:(TS.Status=Unpaid)}')] Open Tickets=[=('{REPORT TICKET COUNT:(TS.Status=Unpaid)}'<='0' ? '0' : '{REPORT TICKET COUNT:(TS.Status=Unpaid)}')] Open Tickets:Yellow;Blue

bit lol

The button doesn’t work when there are 0 open orders… but that don’t matter anyway as you cant do anything even if u did get to the ticket lister

1 Like