Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Salesforce by (11.9k points)

I'm getting error "Error Error: AddIMRConroller Compile Error: Initial term of field expression must be a concrete SObject: LIST at line 21 column 23" from below line of code .

string[] str1 = imrTable.split('\r\n'); System.debug( str1.length);

1 Answer

0 votes
by (32.1k points)
edited by

In Salesforce, you'd need to use size() method instead of length. This is something different than Java.

I believe that you're using an array and if in your visualforce page, you can use something like this:

{!oBjectArray.size==0}

Go for this in-depth job-oriented Salesforce Online Training now!

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...