Using a Hyperlink to select a subfile entry
The shipped aXes demonstration screen named XHRRPGTRN_Select is used.
The subfile selection column is field named Sel and the employee number column is named Employee:
The selection column is still visible, but an employee can be selected and displayed by clicking on the employee number hyperlink:
- The employee column was selected and changed to be a Hyperlink.
- These properties were then set in the hyperlink eXtension:
ENV.returnValue = FIELD.getValue();
/* Find out the subfile index of this field (the one clicked on) */
var iSFLIndex = FIELD.getIndex();
/* Get a reference to the "Sel" field with the same subfile index */
var oSel = FIELDS("Sel",iSFLIndex);
/* If found, set the "Sel" field to "X" and press Enter */
if (oSel != null)