Databases Reference
In-Depth Information
3. Set the Action to Execute JavaScript and uncheck Fire On Page Load. Enter the
following in the Code section:
//dataSpan will represent the span tag that was created earlier that contains the custom
data attributes
var dataSpan = $(this.browserEvent.target).closest('tr').find('[data-empno]');
//Set the EMPNO and its display values using the data attributes
$('#P1 EMPNO').val(dataSpan.attr('data-empno'));
$('#P1 EMPNO DISPLAY').html(dataSpan.attr('data-ename'));
4.
There is no need to define a false action so leave it empty.
5. There's no need to define any affected elements since the elements that need
to be modified were hard coded in the JavaScript code. Click Create to finish
the wizard.
If you refresh the page and click on a row in the Department Employees region the associated
employee's name should be displayed beside the Employee label as shown in Figure 7-38.
Figure 7-38. Select Employee—Row Click
Search WWH ::




Custom Search