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

Property 'text' does not exist on type 'IGuiComponent'

deiamolina
Contributor
0 Likes
893

Hi all

Something funny is happening to one of my scripts and I don't know how to fix it.

I need to compare two values on screen and if the values are not the same the logic will change the font color to red. I will need to do this comparison several times so I created a FM. The first block was working great, then I added the other blocks of code and then I got the error message 'Property 'text' does not exist on type 'IGuiComponent'.(2339)'.

All UI in the script are available on the screen, I actually used the inspection to get the properties, so I'm not sure what's going on - mainly because the first block works just fine.

Any idea what's wrong?

Thanks

Andrea

Accepted Solutions (0)

Answers (1)

Answers (1)

kmagons
Product and Topic Expert
Product and Topic Expert

Hi Andrea,

Please read my answer to your previous question: https://answers.sap.com/questions/13923641/iguicomponent-automation-not-working.html. It holds true also for this case.

Your script references a UI control that is currently not present on the screen, hence, the scripting engine cannot determine its correct type.

Thank you!

Best regards,

Krists Magons

SAP Screen Personas Dev Team