how can i extract the text value from a account stored as text via groovy?
I need to retrieve the text info from a cell stored as text. But this code only retrieves values 0. What am i doing wrong?
// Get the grid from the operation
DataGrid curGrid = operation.getGrid()
// Iterate over edited cells in the grid, filtering by account named "teste"
curGrid.dataCellIterator().
each { cell ->
if (cell.getMemberName("Account") == "A_Program_Code") {
// Print each cell's member names and data where account is "teste"
// Check if the cell is missing a value (null or empty)
if (cell.data == null || cell.data.toString().trim().
isEmpty()) {
println "Value is missing for the specified cell."
} else {
println "Retrieved value: ${cell.data.toString()}"