I have an action button in a view that does the following:
lookup1:=@DbLookup(“”:“NoCache”;“”;“Management Template”;name;4);
sum1:=@Sum(lookup1);
lookup2:=@DbLookup(“”:“NoCache”;“”;“Management Template”;name;5);
sum2:=@Sum(lookup2);
diff1:=svb-ub;
diff2:=ssb-ub_1;
@SetField(“ub”;sum1);@SetField(“ub_1”;sum2);
@SetField(“rb”;diff1);@SetField(“rb_1”;diff2)
I have to click it twice for it to work. Why? It works fine after the second click.
Thanks!