I have a SS2 UE that is giving me an SSS_INVALID_API_USAGE which tells me i need to You must use getValue to return the value set with setValue.
I have a client script that sets all the field values on a newly created record with the setValue. I only get this error when I CREATE a new record in the UI. So how do I tell my UE that the values were set in the Client script?
n
Next4122
09/05/2018, 7:49 PM
Sounds like you are trying to access a field value that wasn't set in the UI. I get this error when field name is wrong in getValue call like a trailing space.
w
wsangster
09/05/2018, 7:52 PM
Oh.. I'll double check that. Thanks
wsangster
09/05/2018, 7:57 PM
It works fine if the record was saved and then edited. It a Check Box and a Drop down list I'm trying to getValue for. Even if I set the fields manually the beforeSubmit freaks out.
n
Next4122
09/06/2018, 7:57 AM
Found the error description in Suite Answer Id: 45387.
Are you setting value via setText call in your client script?
w
wsangster
09/06/2018, 11:04 AM
Yes.. The client script does a setText but the UE does a getText not getValue. Although the client script doesn't have to be the one to set the fields. I can do it manually, and then it's just the UE that only has getText.
wsangster
09/06/2018, 12:24 PM
So I had to change the getText to a getValue in order for it to work properly. Thanks