Creating the XPath expression
Within the inline edit, all the visible detail and premium fields have a
data-field
attribute, for example:
<tr class="detail" id="X0_0">
...
<td data-field="DEPT_NAME">...</td>
...
<td data-field="WBT_NAME">
<input name="X000010" type="hidden" value="IT">
...
</td>
...
</tr>
You can use the value of the
data-field
attribute to identify the master input field
by name in the XPath. The same names are used to configure the fields.
The fields in the Details row of the inline edit have these names:
Detail Field | Value of data-field Attribute |
---|---|
Start Time | WRKD_START_TIME |
End Time | WRKD_END_TIME |
Hours | WRKD_MINUTES |
Rate | WRKD_RATE |
Time Code | TCODE_NAME |
Hour Type | HTYPE_NAME |
Job | JOB_NAME |
Department | DEPT_NAME |
Project | PROJ_NAME |
Docket | DOCK_NAM |
Team | WBT_NAME |
Flag 1..10 | WRKD_FLAG1..10 |
UDF 1..10 | WRKD_UDF1..10 |
In our example, the Team lookup in the Details row can be identified by the WBT_NAME value.
Similarly, the fields in the Premiums row of the inline edit have these names:
Premium Field | Value of data-field Attribute |
---|---|
Start Time | PREM_WRKD_START_TIME |
End Time | PREM_WRKD_END_TIME |
Hours | PREM_WRKD_MINUTES |
Rate | PREM_WRKD_RATE |
Time Code | PREM_TCODE_NAME |
Hour Type | PREM_HTYPE_NAME |
Job | PREM_JOB_NAME |
Department | PREM_DEPT_NAME |
Project | PREM_PROJ_NAME |
Docket | PREM_DOCK_NAM |
Team | PREM_WBT_NAME |
Flag 1..10 | PREM_WRKD_FLAG1..10 |
UDF 1..10 | PREM_WRKD_UDF1..10 |
In our example, the Team lookup in the Premiums row can be identified by the PREM_WBT_NAME value.
Note: The premium field names have a PREM_ prefix.