Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

getName()

Jamil Rahimov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 11, 2020

Hi everybody!
Please help me for fixing this problem.

I used getName() method in my script and it shows value but script console can't resolve this symbol.
Which method can I use instead of this?

getName() method.PNG

1 answer

0 votes
Antoine Berry
Community Champion
February 11, 2020

Hi @Jamil Rahimov ,

This warning is because the console does not know the type of the IssCustomer_RM object (since you declared it with def). But it is working at execution time, because that is how groovy works. As you can see it logs just fine without triggering any exception. :)

Jamil Rahimov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 11, 2020

@Antoine Berry 
Okay, How can I ignore this ? 

Antoine Berry
Community Champion
February 11, 2020

Unfortunately I do not think you can. :(

It is an integrated basic console so you cannot do much about it.

Payne
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 11, 2020

Rather than using def you may wish to specify the class of that object when declaring it; I assume it's an ApplicationUser.

Suggest an answer

Log in or Sign up to answer