on 12-03-2023 5:03 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
74 | |
10 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.