cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to remove below information message in C4C?

renken158
Product and Topic Expert
Product and Topic Expert
0 Likes
804

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

Accepted Solutions (0)

Answers (3)

Answers (3)

renken158
Product and Topic Expert
Product and Topic Expert
0 Likes

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.

0 Likes

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

renken158
Product and Topic Expert
Product and Topic Expert
0 Likes

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.