# Adding String values in Spreadsheet View

**URL:** https://discourse.paraview.org/t/adding-string-values-in-spreadsheet-view/7776
**Category:** ParaView Support
**Created:** [August 6, 2021, 8:18am UTC](https://discourse.paraview.org/t/adding-string-values-in-spreadsheet-view/7776 "2021-08-06T08:18:23Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![gizem](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/7ea924/32.png) [@gizem](https://discourse.paraview.org/u/gizem)
#### Post date: [August 6, 2021, 8:18am UTC](https://discourse.paraview.org/t/adding-string-values-in-spreadsheet-view/7776/1 "2021-08-06T08:18:23Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [August 6, 2021, 8:27am UTC](https://discourse.paraview.org/t/adding-string-values-in-spreadsheet-view/7776/2 "2021-08-06T08:27:13Z")

</div>

You need to create and add a StringArray.

---

<div class="post-metadata">

### Author: ![gizem](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/7ea924/32.png) [@gizem](https://discourse.paraview.org/u/gizem)
#### Post date: [August 6, 2021, 9:00am UTC](https://discourse.paraview.org/t/adding-string-values-in-spreadsheet-view/7776/3 "2021-08-06T09:00:19Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [August 6, 2021, 10:20am UTC](https://discourse.paraview.org/t/adding-string-values-in-spreadsheet-view/7776/4 "2021-08-06T10:20:05Z")

</div>

Here is a working example for FieldData.

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

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

```

---

<div class="post-metadata">

### Author: ![gizem](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/7ea924/32.png) [@gizem](https://discourse.paraview.org/u/gizem)
#### Post date: [August 6, 2021, 11:19am UTC](https://discourse.paraview.org/t/adding-string-values-in-spreadsheet-view/7776/5 "2021-08-06T11:19:58Z")

</div>

Thank you!
