Important Update: Community URLs redirect issues are partially resolved. Learn More. .
2023-01-05 09:44 AM
Question for the community:
I'm debugging an existing CO where it reads the value of the Overall Status field but, when the record is first created it throws an exception at the “getFieldValue(<field ID>)” (which I would expect) as the field is essentially "EMPTY"...what value is this field initially set to (NULL? EMPTY? BLANK?) and how can I test it to see if it is uninitialized so that I can bypass the fetch? I would have expected the getFieldValue to return an empty string object, but it throws the exception instead...any hints are greatly appreciated!
James
2023-01-05 10:21 AM
@JamesKepler wrap the function around a try/catch or just go after the element directly.
Advisory Consultant
2023-01-05 10:21 AM
@JamesKepler wrap the function around a try/catch or just go after the element directly.
Advisory Consultant
2023-01-05 10:23 AM
Works for me David...thanks for the fast reply!