Adding String values in Spreadsheet View

Hello,
I’d like to add some string values in the Spreadsheet view via programmable filter.
I tried the following:
input = inputs[0]
stringTest = “test”
output.PointData.append(stringTest, “sTest”)

Unfortunately, this doesnt work and the Spreadsheet View stays the same.
Is it possible to add strings in general?

Thank you in advance.

You need to create and add a StringArray.

Do I have to create a vtkStringArray then? I tried it out with string = [], then added the string values, but this didn’t work either.

Here is a working example for FieldData.

arr = vtk.vtkStringArray()
arr.Resize(1)
arr.SetName("Strings")
arr.InsertNextValue("Test")

output.VTKObject.GetFieldData().AddArray(arr)

Thank you!