on ‎2019 Apr 17 8:04 AM
Hello Experts,
I am a new guy in C4C area, I am currently encounter an issue regarding information message.
There is code like 'if (this.Z_BU1.Trim() == "OPTO-COB")' in absl file, which leads to information message like
'String Trim Function: Importing parameter Source is initial.' in UI.
My question is how to get rid of this kind of boring information message, thanks in advance.
BR
Harvey
Request clarification before answering.
Hello everyone, already fixed it, please use if(this.Z_BU1.Trim() != "") firstly to ensure it's not empty, then continue with following logic, thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Harvey
Is there any specific reason you want to use trim function in an if condition? This is not ideal. The error you are getting is a standard error when the string functions encounter any empty string.
What is it that you want to achieve here?
Regards
Praveen Dwivedi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have tried to look for it in help document where I found this:
If the source string is empty, the system raises an information message and returns an empty string.
But I am quite sure how to check if string is empty, use isinitial()?
Currently, I am unable to test it in system, so is there anyone know the answer? thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.