Forum Discussion

Rob's avatar
Rob
New Contributor
4 years ago

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 d...
  • ChristianW's avatar
    4 years ago

    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.

  • Rob's avatar
    4 years ago

    Thanks Christian, tested this and works as expected.