OnCreateReportParameters

Use this event to

Transfer step values to the request page of the report.


See also:

Standard Label Template Designs and OnLookupOnPrintLabel_OnAfterAddStepForTemplate

Description

This event is executed when the user has completed the steps and starts the actual print.

The event needs to copy the step values to the request page variables and/or data items to get the report to use the specified values.

Template

    [EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB ReportParameters Mgt.", 'OnCreateReportParameters', '', true, true)]
    local procedure MyOnCreateReportParameters(_MobReport: Record "Mob Report"; _SourceRecRef: RecordRef; var _RequestValues: Record "MOB NS Request Element" temporary; var _OptionsFieldValues: Record "MOB ReportParameters Element"; var _DataItemViews: Record "MOB ReportParameters Element"; var _IsHandled: Boolean)
    begin
    end;
 Click here for parameters...
  • _MobReport 
    • The mobile report to handle. The record can i.e. be used to see the report number and which request page handler the mobile report is to be handled by.
  • _SourceRecRef: 
    • A RecordRef to the context the print is called from, if available. 
    • I.e. Sales Order Line, Warehouse Receipt Line, Purchase Order Return Line, Warehouse Activity(Pick, Put-away) etc.
  • _RequestValues
    • The request values with request values and context values. This contains the values specified by the user and any hidden steps used to transfer values to the request page.
  • _OptionsFieldValues:
    • Here you can assign values to the request page variables. Please note the request page variables are referenced by their variable name.
  • _DataItemViews:
    • Here you can assign views to the request page data items.
  • _IsHandled: 
    • Specify if the mobile report is handled by the request page handler and can be used to determine if another handler already handled the report.


Example: How-to Create your own RequestPage Handler (Report Print)


More examples


Version History

VersionChanges
MOB5.46Introduced