Widget Runtime "Id" Property

Widget Runtime "Id" Property

  
Hi all,

I'm passing a checkbox widget "Id" runtime property to a javascript function. While debugging this argument I found out that the Id runtime property actually passes the WHOLE identified object and not the ID attribute. Is this normal?

Upon looking the help page (http://www.outsystems.com/help/servicestudio/4.0/Web_User_Interface/Web_Check_Box_Widget_Runtime_Properties.htm) I got the idea that this property returned the HTML ID attribute...

Cheers,
Pedro Gonçalves
Hi Pedro,

As you can see in the attached example, only the HTML id property is sent when using runtimeid property.

Be aware that if you are using the prototype 3rd party library (http://www.prototypejs.org/) you can use the $() function to get the whole object in JavaScript.

Cheers,
Tiago Simões
Hi Tiago!

...maybe this will illustrate my problem a bit better - please take a look at my changes to your .oml file.

When passing the widget.id to a javascript function call, what the browser really parses is the whole HTML object not the id string...

...so that makes me add a further attribute getter (.id) to obtain the actual HTML ID... not exactly what is described in the help file.

Pedro
(see attach for Javascript alert function result of the previous post...)