6
Views
1
Comments
ID of element
Question
Hello Everybody,
I am writing some javascript to control some functionality on a webscreen.  The key to my javascript programming is to get the ID's of some of the widgets, containers, etc.  Is there an easier way of getting the ID's of widgets, containers , etc in Outsystems without "view source" the webpage itself?
Thanks,
Frank

2020-12-07 17-35-54
António Chinita
Hey Frank,

if you define the name of the object, you can obtain it in the IDE by calling the Id property of it's name.

Eg. Imagine you have a div named A.
You can now get the Id by using A.Id inside your expression. Eg: "<script>alert('" + A.Id + "');</script>"

:)
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.