Example: Create a Report Design With an Embedded Background Image
This example illustrates how to create a report design with a background image for an employee certificate.
Your HR department wants you to create a certificate to recognize employees for accomplishing their goals. You need to create a Workday custom report that includes a primary business object and 2 single-instance related business objects.
Create a background image for your certificate and name it
Certificate.png
.- Sign in to your Workday GMS tenant.If you don't have a Workday GMS tenant, you can use any QA tenant in your Sandbox with the correct security access.
- Access theCreate Custom Reporttask. Configure these values:FieldValueReport NameMy Team's CertificatesReport TypeAdvancedOptimized for PerformanceClear this check box.Data SourceMy Team's GoalsWeb Service EnableSelect this check box.
- On theColumnstab on theEdit Custom Reportpage, define custom columns for the primary business object, Goal.
- Add a row for the employee name and configure these values:FieldValueBusiness ObjectWorker for GoalFieldLegal NameColumn Heading OverrideEmployee NameColumn Heading Override XML AliasEmployee_Name
- Add a row for the goal and configure these values:FieldValueBusiness ObjectGoalFieldGoalColumn Heading OverrideGoalColumn Heading Override XML AliasGoal
- Add a row for the completion date and configure these values:FieldValueBusiness ObjectGoalFieldCompleted OnColumn Heading OverrideCompleted OnColumn Heading Override XML AliasCompleted_On
- Add a row for the goal status and configure these values:FieldValueBusiness ObjectGoalFieldStatusColumn Heading OverrideStatusColumn Heading Override XML AliasStatus
- Add a row for the signatory and configure these values:FieldValueBusiness ObjectCurrent WorkerFieldLegal NameColumn Heading OverrideSignatoryColumn Heading Override XML AliasSignatory
- In theGroup Column Headingsgrid, define secondary business objects.
- Add a row for the current worker and configure these values:FieldValueBusiness ObjectCurrent WorkerGroup Column HeadingCurrent WorkerGroup Column Heading XML AliasCurrent_Worker
- Add a row for the worker for goal and configure these values:FieldValueBusiness ObjectWorker for GoalGroup Column HeadingWorkerGroup Column Heading XML AliasWorker
- On theFiltertab, configure the filter conditions.
- Add a new row and configure these values:FieldValueAnd/OrAndFieldCompleted OnOperatorgreater thanComparison TypePrompt the user for the valueComparison ValueDefault Prompt
- Add another row and configure these values:FieldValueAnd/OrAndFieldStatusOperatorin the selection listComparison TypeValue specified in this filterComparison Value4 - Successfully Complete
- On thePromptstab, define the prompt fields.
- Add a new row for the reporting type field and configure these values:FieldValueFieldReporting TypePrompt QualifierIgnore this field.Label for PromptReporting TypeLabel for Prompt XML AliasReporting_TypeDefault TypeNo default valueRequiredSelect this check box.
- Add a new row for the completion date field and configure these values:FieldValueFieldCompleted OnPrompt QualifierDefault PromptLabel for PromptCompleted AfterLabel for Prompt XML AliasCompleted_AfterDefault TypeNo default valueRequiredSelect this check box.
- ClickOKand then clickTest. Workday displays theReporting TypeandCompleted Afterprompts that you configured.
- On theReporting Typeprompt, selectEither.
- On theCompleted Aftercalendar prompt, select a date in the past.
- ClickOK. Workday returns a result for your custom report definition.
- Open Report Designer in Workday Studio.
- Create a report project namedEmployee Certificates. In that project, create a report file namedEmployee Certificates.rptdesign.
- Create a Workday data source and download some sample data:
- Create a newWorkday Report Data SourcenamedEmployee Certificates.
- Download the report description for theMy Team's Certificatescustom report from Workday.
- Download sample report data from Workday and name the fileEmployee Certificates.xml. As you download the sample data, configure these values:
Option Description Reporting TypeEitherCompleted AfterSelect a date that's a number of years in the past. - Create the data set relating to Employee Goals with these values:
Option Description Data Source SelectionEmployee CertificatesData Set TypeWorkday Primary Report Data SetData Set NameEmployee Goals - Add a scanned form as an embedded image to the layout:
- In theOutlineview, right-click theEmbedded Imagesnode, then selectNew Embedded Image.
- Select theCertificate.pngbackground image file on your device and clickOpen.
- In theProperty Editor - Master Pageview, access theAdvancedtab.
- In theBackgroundsection, configure these values:FieldValueBackground imageCertificate.pngBackground image typeEmbedded ImageBackground size height
- Measure:8.5.
- Units:in.
Background size width- Measure:11.
- Units:in.
- In theOrientationsection, select theLandscapevalue.
- Delete the footer containing the date and time. To do that, right-click the footer and selectDelete.
- Add a table to the layout:
- In theOutlineview, right-click theBodynode, then selectInsert Element.
- Double-click theTableelement and configure these values:
You only need the detail row of your table. To delete the header and footer rows, as well as additional columns, right-click in the guide cell, then selectFieldValueNumber of columns1Number of details1Data SetEmployee GoalsDelete. Your table now contains a single detail row. - Drag the table border towards the page boundary, using the background image as a guide.
- Save your work.
- Add a grid to the layout:
- In theOutlineview, right-click theCellnode located under , then selectInsert Element.
- Double-clickGrid.
- Configure 1 column and 8 rows.
- Drag the first row in the grid downwards and place the border below the first 2 lines of text.
- Add the employee name data to the second row of the grid:
- In theOutlineview, right-click the second cell node, then selectInsert Element.
- Double-click theDataelement, then clickJavaScript Syntax.
- Configure this expression in theExpression Builder:row["Worker.Employee_Name"]. You can enter the row parts of the expression by selecting , then double-clickingWorker.Employee_Name.
- EnterEmployee Nameas the display name forNew Data Binding, then clickOK.
- In theProperty Editor - Dataview, configure the alignment toCenterand font size to24.
- Drag the third row in the grid downwards by dragging its border below the next line of text.
- Add the goal data item to the fourth row in the grid:
- In theOutlineview, right-click the fourth cell node, then selectInsert Element.
- Double-click theDataelement, then clickJavaScript Syntax.
- Configure this expression in theExpression Builder:row["Goal"]. You can enter the row parts of the expression by selecting , then double-clickingGoal.If you can't find the required column binding, clickEdit Bindings...and refresh the list.
- Enter the name of the goal as the display name forNew Data Binding, then clickOK.
- In theProperty Editor - Dataview, configure the alignment toCenterand font size to18.
- Drag the fifth row below the next line of text.
- Add the completion date data item to the sixth row in the grid:
- In theOutlineview, right-click the sixth cell node, then selectInsert Element.
- Double-click theDataelement, then clickJavaScript Syntax.
- Configure this expression in theExpression Builder:row["Completed On"]. You can enter the row parts of the expression by selecting , then double-clickingCompleted_On.
- EnterCompleted Onas the display name andDateas the data type forNew Data Binding, then clickOK.Dateis a non-string data type value. You must specify the correctData Typevalue,Date, for theCompleted Ondata item.
- In theProperty Editor - Dataview, configure the alignment toCenterand font size to16.
- Drag the seventh row below the line for the manager's signature.
- Insert a nested grid in the eighth row:
- In theOutlineview, right-click the eighth cell node, then selectInsert Element.
- Insert a grid with 3 columns and 1 row. Report Designer inserts a nested three-column grid with a single row in the eighth row in the grid.
- Expand the new nested grid report item, right-click the second cell in the row, then selectInsert Element.
- Double-click theDataelement, then clickJavaScript Syntax.
- Configure this expression in theExpression Builder:row["Curent_Worker.Signatory"]. You can enter the row parts of the expression by selecting , then double-clickingCurrent_Worker.Signatory. This expression returns theSignatoryvalue for each row in the report
- EnterSignatoryas the display name forNew Data Binding, then clickOK.
- DragSignaturedata item column by its right border and position it below the signature line, then right-align the data value.
To prevent your report design extending beyond page boundaries, you can ensure that the:- Heightnode property doesn't have a value.
- HeaderandFootervalues are set to0in.
- Save and preview your design.
Deploy your design to Workday for use as a business form layout.