Rob
4 years agoNew Contributor
Clear data on Origin Forms
Does anyone have a piece of code to clear data on the origin Forms member for just a few accounts? The api.data.clearcalculateddata is not possible (data is not calculated) and api.data.setdatacell doesn't work. Thanks.
You can combine calculate with clearcalculateddate like this:
Dim script as string = pov api.data.calculate($"{script} = 0 * {script}") api.data.clearcalculateddata(script)
The first row will make it calculated, the second row will delete it, because now it is calculated.
Thanks Christian, tested this and works as expected.