Example: Sort Fields by the Related Business Object
This example illustrates how to sort fields in your report by the related business object.
You want to change how your report that uses the Worker business object sorts data. Instead of
sorting by the first column on the report, you want to sort by location. You create
2 calculated fields that use the Worker business object so that you can sort your
data by the related business object, Location.
Security: These domains in the System functional area:
- Custom Field Management
- Custom Report Creation
- Manage: All Custom Reports
- Access theCopy Standard Report to Custom Reporttask.Copy a Workday-delivered standard report that includes location data.
- SelectActive Employees - Indexedfrom theStandard Report Nameprompt.
- ClickOK.
- EnterBy Location - Active Employees - Indexedon theNamefield.
- ClickOKtwice.
- Access theCreate Calculated Fieldtask.Create an extract single instance calculated field for the location data.
- EnterESI Locationon theField Namefield.
- SelectWorkeron theBusiness Objectprompt.
- SelectExtract Single Instanceon theFunctionprompt.
- ClickOK.
- Select these values on theCalculationtab:PromptValueSource FieldLocationsConditionIs TrueSort FieldLocation NameSort DirectionAscending (A to Z)Instance to be ReturnedLast occurrence
- ClickOK.
- ClickCreate Another Calculation.Create a lookup related value calculated field for the location data.
- EnterLRV Locationon theField Namefield.
- SelectWorkeron theBusiness Objectprompt.
- SelectLookup Related Valueon theFunctionprompt.
- ClickOK.
- Select these values on theCalculationtab:PromptValueLookup FieldESI LocationReturn ValueLocation
- ClickOK.
- ClickDone.
- Access theEdit Custom Reporttask.Add theLRV Locationcalculated field to your advanced report.
- SelectBy Location - Active Employees - Indexedfrom theReport Nameprompt.
- ClickOK.
- Access theSorttab.
- In theSort and Groupsection, clear theSort by first accessible columncheck box.
- Add a row to the grid.
- In the grid, selectLRV Locationfrom theFieldprompt.
- ClickOK.
- ClickRun.
The lookup related value calculated field sorts your data by the Location Name instead of the
Employee ID.
You can create additional calculated fields that enable you to sort your data by
fields on the related business object instead of the primary business object.