Upgrade program setting by entity screen

I would do this:
a screen entity would add a numeric keypad and a button as in the attached picture.

when I select a number from the keypad and then I press the button, I should update the number of a parameter in program setting.
you can do this?
thank you

I think you can use a Task Editor Widget with a Custom Keyboard on an Entity Screen to achieve this.

@Jesse, you have done something in this manner, correct?

yes it is!
now how do I switch from the dial pad to a field programm setting?

Yes I used it with my Time Clock. Let me get you more information on it. Just insert the keyboard widget and a task editor and the task editor will automatically take input from it. When you press enter it executes a command.

Put the command name in the first box of the task editor widget settings.
Be sure to check Dont create task history.

Obviously the rest of the setup is up to you. But whatever you put into the Task create commands box will be the automation command that is triggered when you press enter on the keypad. The numbers you entered become the Command Value.

Failed to mention you also need to create a Task via Manage > Settings > Task Types as you can see in the screenshot you select that Task in the widget from the Task type name value drop down box.

So for illustration I have a Task Type named Time Clock. I set that Task Type inside the widget and then I created an Automation Command called Time Punch so now when a user enters a number on the keypad and presses enter it executes Time Punch Automation Command with the Command Value of what they typed in.

2 Likes

maybe I explained badly.
I should update the numerator of invoices through tyastierino numeric.
I program in practice in setting a numeric field that concerns the bills,
when I enter a number on the keypad, via a button I should update this numerator.

I followed this guide to create the numerator,
now using a keypad on a screen would change the number of the numerator

http://forum2.sambapos.org/index.php/topic,97.msg671.html#msg671

@Jesse shows you what you want @spanky. He shows how to get input from the keypad, and put the entered number in the Task Editor Widget.

When you hit Enter, it executes an Automation Command (Time Punch) which carries the value of the Task Editor Widget to the Command as a [:CommandValue].

So now you set up a Rule for Automation Command Executed
Set the the Rule Constraint to Automation Command Name Equals Time Punch
Add an Action to the Rule for Update Program Setting and use [:CommandValue] as the value to set in the Program Setting.



1 Like

thanks QMcKay,
are successful in!
I also thank the community forum, always available.

1 Like