Any way to clear Editor Widget Local Settings in one Go?

These Editor Widgets all have an assigned Local Program Setting (held in Memory, not DB) as part of each Widget config. What I want to do is clear them all when I Start a Workperiod. But I don’t want to clear other Local Program Settings necessarily, just Editor Widget Settings.

Any way we might be able to do this?

Maybe have an Action that allows clearing Editor Widget Local Settings, with a Parameter for the Entity Screen?

P.S. there are approximately 25 of these little buggers on one screen. :stuck_out_tongue_winking_eye:

How did you named these local settings?

They are named in the Widget Settings as USD100, USD50, USD20, USD10, USD5, USD1, etc.

Using a value looper may simplify clearing these settings a bit.

Right, well, I thought of that.

Settings to be Cleared:

HNL500,HNL100,HNL50,HNL20,HNL10,HNL5,HNL1
USD100,USD50,USD20,USD10,USD5,USD1
CCHNLAMEX,CCHNLDISC,CCHNLMAST,CCHNLVISA,CCHNLOTHR,CCHNLDEVO,CCHNLTIPS
CCUSDAMEX,CCUSDDISC,CCUSDMAST,CCUSDVISA,CCUSDOTHR,CCUSDDEVO,CCUSDTIPS

@emre, what are these parameters in the Loop Values Action? How are they used?

You can display a progress window to operator if it will take a lot of time. For example it might be useful if you’ll load 20 tickets and settle them. Display Progress For Items parameter lets you to define when progress window will appear. For example when set to 5 progress window will appear if value count is more than 5. Progress title is the value that appears to user. {Value} tag replaces with current value, {Progress} tag replaces with the index number of the value being looped and {Count} value for the total number of Values.

So I use them like this?

Clearing {Progress}/{Count} : {Value}

@emre, SambaPOS keeps crashing when I start the loops using the above settings. No error logged.

Do I need to put those Tags in the Action itself instead of as a [:progressTitle] parameter?

EDIT: that seems to have done the trick… no more crash.

Of course, they loop and complete so fast that I just see a few flickers on the screen for the 4 Loopers.

#Setup

##Actions


##Rule 1

This Rule starts looping Values for 4 Loopers having the names:

COloopCashHNL
COloopCashUSD
COloopCardHNL
COloopCardUSD

Each Looper has a different value-list that it loops through, which are the names of Local Program Settings assigned to Editor Widgets.


##Rule 2

This Rule is triggered when one of the above Loopers loops a value from it’s value-list. Since we named all the Loopers to start with the word COloop, we can have a “Contains” or “Starts” constraint on the Name so that this Rule will fire for any of the 4 Loopers.

In the Action, we use the [:LoopValue] from the Looper value-list. For example, for the Looper named COloopCashUSD, the [:LoopValue] will be one of USD100, USD50, USD20, etc. which is the name of the Local Setting of the Editor Widgets. So the Local Setting will be cleared (emptied).

Another mystery unlocked by the great @QMcKay - thank you. Always wondered the best way to clear common values and how to use that LOOPER :grinning:

It look complicate at first but it is actually quite simple. You should try it. I converted my loop trick to use Loop Value instead.

Yea, probably a great suggestion but I am “not the type of guy to fix what is not broken…” lol. Just really due to time constraints only…