# How to set StringVectorProperty from a PropertyGroup panel\_widget

**URL:** https://discourse.paraview.org/t/how-to-set-stringvectorproperty-from-a-propertygroup-panel-widget/1406
**Category:** Development
**Created:** [March 6, 2019, 11:12pm UTC](https://discourse.paraview.org/t/how-to-set-stringvectorproperty-from-a-propertygroup-panel-widget/1406 "2019-03-06T23:12:31Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![michal.wozniak](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/848f3c/32.png) [@michal.wozniak](https://discourse.paraview.org/u/michal.wozniak)
#### Post date: [March 6, 2019, 11:12pm UTC](https://discourse.paraview.org/t/how-to-set-stringvectorproperty-from-a-propertygroup-panel-widget/1406/1 "2019-03-06T23:12:31Z")

</div>

Hi, I am trying to create a panel widget for a group property, In my pqInteractiveSettingPropertyGroup, I am trying to set the value of SettingA, do I need to use

auto settingA = vtkSMIntVectorProperty::SafeDownCast(this-\>smProxy()-\>GetProperty(“SettingA”));  
or  
auto settingA = vtkSMIntVectorProperty::SafeDownCast(this-\>smGroup()-\>GetProperty(“SettingA”));

(smProxy or smGroup)

```
<StringVectorProperty 
     command="SetSettingA"
     default_values=""
     name="SettingA"
     number_of_elements="0"        
     number_of_elements_per_command="3"
     repeat_command="1"
     use_index="1"
     >

<StringVectorProperty 
     command="SetSettingB"
     default_values=""
     name="SettingB"
     number_of_elements="0"        
     number_of_elements_per_command="3"
     repeat_command="1"
     use_index="1"
     >

<PropertyGroup label="Settings" panel_widget="InteractiveSettingPanel">
            <Property name="SettingA" /> 
            <Property name= "SettingB" />
  </PropertyGroup>

```

I am asking this, because I used to directly set the panel\_widget inside property SettingA and by using smProxy()-\>GetProperty(“SettingA”) I could modify the property but now using property group it isn’t working anymore.

or do I need to link the properties?

thanks you

---

<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: [March 7, 2019, 12:01pm UTC](https://discourse.paraview.org/t/how-to-set-stringvectorproperty-from-a-propertygroup-panel-widget/1406/2 "2019-03-07T12:01:35Z")

</div>

You need to add a property link. Take a look into `Example/Plugins/PropertyWidget`.

---

<div class="post-metadata">

### Author: ![michal.wozniak](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/848f3c/32.png) [@michal.wozniak](https://discourse.paraview.org/u/michal.wozniak)
#### Post date: [March 7, 2019, 4:28pm UTC](https://discourse.paraview.org/t/how-to-set-stringvectorproperty-from-a-propertygroup-panel-widget/1406/3 "2019-03-07T16:28:38Z")

</div>

You are right, I was missing the AddPropertLink

thanks
