Problem with numeric entry field and script

Hi everyone
I have perspective view with numeric entry field and button with event on click script. In event script I read value from numeric entry field, multiply this value by 10 and write to tag. My script doesn't work:

def runAction(self, event):
# Create a list with the tag paths to be updated.
paths = [self.view.params.setpoint_path]

	# Create a list with the update values, one value for each path.
	entry_value = [self.parent.parent.getChild("FlexContainer").getChild("NumericEntryField").props.value]
	
	multipland = 10
	
	setpoint = entry_value * multipland
	
	# Write operation.
	system.tag.writeBlocking(paths, setpoint)
	
	#close popup
	system.perspective.closePopup('')

I think that problem is in line, which multiple value from entry field by 10. Because this script work:

def runAction(self, event):
# Create a list with the tag paths to be updated.
paths = [self.view.params.setpoint_path]

	# Create a list with the update values, one value for each path.
	entry_value = [self.parent.parent.getChild("FlexContainer").getChild("NumericEntryField").props.value]
	

	
	# Write operation.
	system.tag.writeBlocking(paths, entry_value)
	
	#close popup
	system.perspective.closePopup('')

How to fix this problem?

	# store value for modification
	entry_value = self.parent.parent.getChild("FlexContainer").getChild("NumericEntryField").props.value
	multipland = 10
	# modify the value
	setpoint = entry_value * multipland
	
	# Write operation, after creating a list which contains the setpoint for every value in paths.
	system.tag.writeBlocking(paths, [setpoint for entry in paths])
	
	#close popup
	system.perspective.closePopup('')

Are you missing an opportunity to use the tag's scaling feature?

Some of your code formatting is messed up. See,

To further clarify the changes I recommended:

a = [5]
b = 10 * a  #  multiplies the count of entries in the list because 'a' is a list
print(b)

>>> [5, 5, 5, 5, 5, 5, 5, 5, 5, 5]

c = 5
d = 10 * c  # multiplies the number
print(d)

>>> 50