Official Content

Returns the name -in the HTML code- of the associated control. 

Syntax

Control.InternalName = Text

Where:
Text
    String that represents the control’s name

Description

If a variable called  &var is defined, when executing the web object, the control name in the HTML code will be  _VAR. This name will be the one returned by the property and can be used in any JavaScript to trigger the code execution when an event takes place (e.g.: when the user clicks on the variable). The name of a variable or attribute can vary when one of the following conditions occurs:   

  • The names of attributes or variables belonging to Grids vary with each line. Following with the previous example, if the &var variable is located in a Grid, the _VAR001 name will be generated in the first row, the _VAR002 name will be generated in the second row, and so on.
  • The names of the controls belonging to a Web Component also vary. The control name appears as the prefix of the Web Component name in the HTML code resulting from the execution of the "father" object .

In these cases, it is difficult to use JavaScript code, since the control name can be modified. The InternalName property is used to make the building of this code easier. This property cannot be modified. You can only save the execution result.

This property applies only at execution time.

Scope

Objects: Transactions, Web Panels
Controls: Bitmap or Image data type, Check Boxes, Combo Boxes, Dynamic Combo Boxes, Dynamic list Boxes, Edits, Images, List Boxes, Radio Buttons
Languages: .NET, Java, Ruby (up to GeneXus X Evolution 3)
Interfaces: Web




Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant