Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
This is my problem today:
I created an app with an action in a button that does a selection based on the value of a variable.
Let's say the variable is "Age" and the field is "Employee". In an input-box, the user enters any value for "Age" and then the button selects all employees where "employee_age" is below "Age".
Now we have selected a group of employees to start from. Of course the user can change this selection manually.
Now the point:
How can I show the user that his selection differs from the original selection, made via the button?
Note that my original app is significantly more complex. I just want to avoid that the user thinks the optimized selection is still used while for some reason, it has changed. Unfortunately it is not just the number of selections or a sum, but the exact list of selections in a field, which may be in the range of some 10k distinct values.
Any ideas?
Hi,
You could try the attached.
Basically 2 macros accessing a variable, one triggered with the button and one on any selection change. The one on the button resets the counter. The text box the shows 'Button Selection'/'Selection Changed' depending on the variable;
Sub Reset() ActiveDocument.Variables("vFilterState").SetContent 0, true End Sub Sub Increment() lFilterState=ActiveDocument.Variables("vFilterState").GetContent.String+1 ActiveDocument.Variables("vFilterState").SetContent lFilterState, true End Sub
Probably needs some tweaking & the variable reset on opening, but may help.
Cheers,
Chris.