Hi All,

How to provide the id to specific elements in OutSystem?

Thanks 


Hi Ajith,

Why you need Id,Please share your scenario?
As Id created by OS automatically but If we need to do some java script/jquery related code with the control then we can add class in extended property and use that class in jquery code.

Hi Ajithkumar Radhakrishnan,


As Salman told Id is created by OS automatically. But you can use Name in the property of element to provide the Id for Outsystems Service Studio and can be used in javascript/jquery as shown below:

document.getElementById('"+NameoftheElement.Id+"').placeholder=''


Regards,

Manthan Shah.

Manty wrote:

Hi Ajithkumar Radhakrishnan,


As Salman told Id is created by OS automatically. But you can use Name in the property of element to provide the Id for Outsystems Service Studio and can be used in javascript/jquery as shown below:

document.getElementById('"+NameoftheElement.Id+"').placeholder=''


Regards,

Manthan Shah.


Correct we can do this way as well OR if we want more control over element then we can use Extended Property as I mentioned.

Hi Ajithkumar Radhakrishnan,

Elements ID can be accessed in the OutSystems element tree structure. One can assign them using this view:

And also when providing a name to elements in OutSystems their ID will have a name included, in the property "Name": 

Hope it helps, regards!