Important Update: Community URLs redirect issues are partially resolved. Learn More. .

cancel
Showing results for 
Search instead for 
Did you mean: 

How To Test Overall Status Field For Unsaved/Unsubmitted Record

JamesKepler
Contributor III

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

1 ACCEPTED SOLUTION

Accepted Solutions

DavidPetty
Archer Employee
Archer Employee

@JamesKepler wrap the function around a try/catch or just go after the element directly.

 Advisory Consultant

View solution in original post

2 REPLIES 2

DavidPetty
Archer Employee
Archer Employee

@JamesKepler wrap the function around a try/catch or just go after the element directly.

 Advisory Consultant

Works for me David...thanks for the fast reply!