This topic is locked

Get Row Data

10/12/2023 9:55:37 AM
PHPRunner General questions
author

I am trying to get the value of a column of a list using the Client Before of a button I inserted in the grid. According the help documentation I have tried the following without success:
$sWeight = rowData.fields['SumOfWeights'];I also tried:
var sWeight = rowData.fields['SumOfWeights'];I even tried:
var sWeight = row.getFieldValue("SumOfWeights");And
$sWeight = = row.getFieldValue("SumOfWeights");Some return null others give an error. I though it was becuase I didnt have that column in the list so I added it but still.
Can someone help me please

aadham 10/12/2023

This should work:
var sWeight = row.getFieldValue("SumOfWeights");