Customizing Experiment Reports for Scientific Notebook

This example shows you how you can extend Scientific Notebook with a custom report.

Notes:

This task shows you how to:

Create the Pipeline

Before you begin:
  • Learn how to build a simple pipeline. See Example: Building and Running a Simple Pipeline.
  • To develop and validate pipelines that extend Scientific Notebook, you must have a role that includes the Scientific Notebook app.
  • A 3DEXPERIENCE platform Administrator must create a secure collection in the Scientific Settings and Administration app that defines at least Viewer responsibility for everyone who needs to generate the custom report.
  • The custom report secure collection does not have to match the experiment's secure collection when running the report from Scientific Notebook. For more information, see Pipeline Creator Access to Content.
  • If you plan to customize any images, obtain a Base64 string for the images you want to use. Use images no more than 40 px tall and 300 px wide.
  1. Start a new pipeline using the Experiment Report Configuration template. For more information, see Creating a Pipeline Overview.

    Tip: Append draft to the pipeline name until you are ready to publish it.



  2. Click anywhere in the work area and select Parameters > Implementation.
  3. For the ReportDateFormat, specify the format according to your organization's requirements.

    For more information, see PilotScript Date and Time Functions.

  4. Click in the corner to open the Experiment Report Configuration subpipeline.
  5. Select the Page and ToC Header and Footer... component.
  6. For each of the parameters, select the option that you require.
    • Choose the Page Size and Orientation.
    • For the Header and Footer, specify each of their three elements: left, center, and right.
      • If you select Image for the Type, specify the Base64-encoded string of the image for the corresponding Content parameter.
      • If you select Text for the Type, specify the text Content and the Font to use.

      Refer to the parameter help for detailed guidance.

    • For the Table of Contents, retain the By Configuration selection, and then specify its Title, text size, and Header and Footer content.

    Note: For the Table of Contents, if you select Always or Never, the report configuration dialog box in Scientific Notebook does not reflect your selection. People generating reports can still attempt to control inclusion of a Table of Contents, but their reports ignore that selection and use your pipeline configuration.

    For more information, see Working with Subpipelines and About Parameters.

  7. In the action bar, click Save As.
  8. For the Secure Collection, choose Private.

Test the Pipeline

From Scientific Notebook, you can test your report pipeline for your experiments. No one else can access your custom report because it is in the Private secure collection and in the Draft maturity state.

  1. In Scientific Notebook, do one of the following:
    • From an experiment, click .
    • From the All Experiments page, click and select Report.
  2. Select Custom Report.
  3. In the Generate Report dialog box, select your new report, and click OK.
  4. From your browser's download, open the report file, and review its contents.
  5. Amend the report pipeline and repeat testing until it fulfills your requirements.

Publish the Pipeline

Make your pipeline available to people working with Scientific Notebook experiments.

  1. Open your pipeline and click Save As.
  2. Remove draft from the name, and associate it with a Secure Collection that is available to people working with Scientific Notebook experiments.
  3. From the Pipeline Creator home page, click Manage Pipelines.
  4. From the Actions column, select Publish for the pipeline.

Result: The pipeline now has a Status of Published.

Tip: Confirm that someone who has access to the appropriate secure collection can generate a custom report for an experiment.