Tips & Tricks - JavaScript in the Table View
In a view table, clicking a button displays the record ID in a message. This post shows how to display a message like this using JavaScript.
In the table column properties, specify the Velocity portion as the value of an Expert attribute whose name begins with "data-" and contains only lowercase letters, such as the Expert attribute "data-test" shown here, with the value
$drRecord.getRecId()
In the JavaScript call, the Velocity section is included with
this.dataset.test
replaced by accessing the dataset. The call is worded as follows:
myFunction(this.dataset.test)
And here is the JavaScript for our example:
function myFunction(nummer){
alert(nummer);
return true;
}


