# How to make widget take its value from the file?

**URL:** https://discourse.paraview.org/t/how-to-make-widget-take-its-value-from-the-file/15085
**Category:** Development
**Created:** [July 19, 2024, 9:45am UTC](https://discourse.paraview.org/t/how-to-make-widget-take-its-value-from-the-file/15085 "2024-07-19T09:45:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![joint](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@joint](https://discourse.paraview.org/u/joint)
#### Post date: [July 19, 2024, 9:45am UTC](https://discourse.paraview.org/t/how-to-make-widget-take-its-value-from-the-file/15085/1 "2024-07-19T09:45:32Z")

</div>

Hello dear friends, Paraview developers!

I have a custom Filter, which has some class members, X and Y. X is being passed to filter as a field of dataset in RequestDataObject, and Y is calculated based on X.

Also I have input widgets for these values X and Y, like in XML examples

```auto
			<DoubleVectorProperty
				name="X"
				command="SetX"				
				...
			</DoubleVectorProperty>

```

How can I make (can I?) these widgets to take the values from the filter?

Will  
command=“GetX” help?

When is this command executed? Only once? After update? How to write many commands there?

Thank you very much  
Mike
