Change Resource Group ID for Open Jobs

It doesn’t seem to be changing anything. This is my messagebox.

Updated <myCount/> records!
callcontext: <callContextBpmData.ShortChar01/>
var: <NewResGrpID/>
action id: <actionID/>

You can see myCount is increased as the first line in the foreach of ttResults.

When I run in BAQ I get “Updated x records!” But in the dash view it says “Updated 0 records!”

I can’t point to form elements from a BPM custom code widget, right? I know that my epiUltraGridC1 called “V_ChangeOpenJobResGrpIDs_1View” contains the results of my BAQ. Can I somehow point to that instead of ttResults?