how can i extract the text value from a account stored as text via groovy? — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

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()}"

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!