I am configuring an event script onActionPerformed of a Button that takes data that is input into Text Fields and Dropdown selections. When the button is pressed, it performs a system.db.runNamedQuery(path, params). The Named Query works perfect in the Testing function, however, the button script is not working. Below is the script. Any help figuring out what I am doing wrong would be greatly appreciated.
def runAction(self, event):
dbConnection = "FRW_IGNITION_HIST"
chillerID = self.parent.custom.ChillerID
chillerName = self.getSibling("ChillerName").props.text
wo = self.getSibling("WorkOrder").props.value
fromTank = self.getSibling("StartTank").props.value
toTank = self.getSibling("EndTank").props.value
extraTank1 = self.getSibling("EndTank1").props.value
extraTank2 = self.getSibling("EndTank2").props.value
lot = self.getSibling("LotNumber").props.text
feedtype = self.getSibling("FeedType").props.text
prodtempmin = self.getSibling("ProdTempMin").props.value
prodtempmax = self.getSibling("ProdTempMin").props.value
jobtype = self.getSibling("JobType").props.value
status = self.getSibling("Status").props.value
statusreason = self.getSibling("StatusReason").props.value
comment = self.getSibling("Comments").props.text
timestamp = self.getSibling("LogDate").props.text
dt = self.getSibling("MonthYear").props.text
tagPath = "Chillers_%s/Chiller_%s/WOLoaded"%(plantName,chillerName)
user = self.session.props.auth.user.userName
path = 'Refrigeration/ChillerWOEntry'
params = {'chillerID':ChillerID, 'chillerName':ChillerName, 'wo':WorkOrderNum, 'fromTank':StartTank, 'toTank':EndTank, 'extraTank1':EndTank1, 'extraTank2':EndTank2, 'lot':LotNumber, 'feedtype':FeedType, 'prodtempmin':ProdTempMin, 'prodtempmax':ProdTempMax, 'jobtype':JobType, 'status':Status, 'statusreason':StatusReason, 'comment':Comments, 'timestamp':LogDate, 'dt':DT, 'user':OperatorName}
system.db.runNamedQuery(str(path, params))
Thank you,
Jeremy