Successfully!

Error!

Events in FineReport

  • Last update:  2021-05-21
  • I. Event classification

    Depending on the different location of the event, events in FineReport are as follows:

    • Widget event: Refers to the events added in the widget. Widgets include the data entry widget and the parameter widget. For the introduction of the widget, please refer to the types of widget ;

    • Webpage event: Refers to the events added in Template>Web Attributes>Pagination Preview/Data Entry Settings/Data Analysis Settings, please refer to Web Attributes;

    • Custom button event: Refers to the event added on the button when a custom button is added to the report toolbar;

    • Submission event: Refers to the event added in Template> Data Entry Attributes.


    1. Widget event

    As shown in the figure below, add a Text Field widget, click the Event tab, and click "+" to see the widget events that can be added to the widget:

    1.png

    For details, please refer to Widget Event.


    2. Webpage event

    As shown in the figure below, select Template>Web Attributes>Pagination Preview, and select Individual set for the template in the drop-down box. Click "+" below to see all the Webpage events that can be added in the Pagination Preview:

    2.png

    For details, please refer to Webpage Event.


    3. Custom button event

    As shown in the figure below, add a custom button on the toolbar of the Pagination Preview, double-click the added button to enter the button editing interface, and select the custom button:

    3.png

    The execution methods of custom button events and widget events are the same, and all methods applicable to widget events are applicable to custom button events.


    4. Submission event in data entry

    Submission event in data entry includes custom submission in data entry and setting submission events. Custom submission will not be discussed here, only submission events will be introduced.

    As shown in the figure below, add a Built-in SQL in Template>Data Entry Attributes to add a submission event:

    4.png

    The submission event is triggered once when the SQL statement in the database is executed above, that is, once a record is submitted.

    Note: Submission event setting interface is consistent with the data entry attributes interface, which means that the setting method of the submission event is consistent with the setting method of data entry attributes. For details, please refer to the Data Entry Attributes.

    II. Types of event response 

    No matter what kind of event, there needs to be a type of event response to execute the event. Different events in FineReport have different types of event response . The following describes their corresponding relationships:

      Widget Event  
    Webpage Event  
      Custom Button Event
    Submission Event in Data Entry  
      JavaScript
      √
      √  √  
      Submit to databse
      √
      √  √  
      Custom submit
        √    √
      Send email
      √  √  √  
      Built-in SQL
            √

    For details, please refer to Types of Event Responses.


    Attachment List


    Theme: Secondary Development
    Already the First
    Already the Last
    • Helpful
    • Not helpful
    • Only read

    Doc Feedback