I have a SS2 UE that is giving me an SSS_INVALID_A...
# suitescript
w
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
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
Oh.. I'll double check that. Thanks
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
Found the error description in Suite Answer Id: 45387. Are you setting value via setText call in your client script?
w
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.
So I had to change the getText to a getValue in order for it to work properly. Thanks