cancel
Showing results for 
Search instead for 
Did you mean: 

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

deiamolina
Active Participant
0 Kudos

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

View Entire Topic
kmagons
Advisor
Advisor

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