Checks column 1 (sorted) in the VUE_0003 view and if it finds the number it keeps going until it does not find a number then sets the num field to that number value.
Does it have to be numeric? My suggestion would be to use @Unique to generate a unique alpha-numeric string…This way, there will be no need for a DbLookup to be performed…
I thought @unique worked only on string, like this: @Unique(“red”:“green”:“blue”:“red”) = red,green,blue. I still need to go through all the documents.