Let's imagine I have a global like this:
^Users(12, "SETTINGS", "IsAllowed") = 1
^Users(41, "SETTINGS", "IsAllowed") = 0
^Users(52, "SETTINGS", "IsAllowed") = 1
Now I would like to check for each user whether they are allowed, therefore I'd need to iterate through the Global. How to do that? It seems that I can't use $Order here like such:
S FF = ""
For {
S FF=$O(^Users(FF,"SETTINGS","isAllowed"))
Q:$L(FF)
W "User ",FF," is allowed",!
}
Is there any other way of doing this?