Table of Contents

FastReport Cloud, FastReport Corporate Server, FastReport Publisher 2022.2

Added API for task scheduler

With version 2022.2, it became possible to prepare, export, and send the results of your actions by email or to a webhook on a schedule.

There are 3 types of task execution:

  1. Fire-and-Forget — the task starts executing when the API method is called with its own id value.

Fire and forget

  1. Delayed — runs the task at a specified time.
  2. Recurrent — runs tasks on a schedule, using CRON expressions.

Recurrent 1

The screenshot above shows an example of sending a report export in PDF format to an email address every 30 minutes. The sending will also be done at the specified time.

Email

You can try the API scheduler from the following link - {your_host_name}/api/swagger/index.html

Added Firebird connection

Now you can bind information from the Firebird database to your reports. For stable operation, you need to activate the WireCrypt property in firebird.conf.

Firebird

Added connection to MongoDB

In addition to Firebird, we have set up a connection to access data from MongoDB. Just add it on the "Data Sources" page, and it will be available for use in the online designer.

MongoDb

Added JSON connection editing form

We have improved the connection to JSON, adding the ability to edit the text, schemas, and request headers.

JsonNew

Change in default permission editing

In FastReport Corporate Server, there are 2 types of permissions:

  • entity permissions;

  • default permissions, which are used if the first type of permissions is not set.

    With this update, you can edit permissions on the "Groups" page.

Permissions

A dialog for removing a user from a workspace has appeared

The button to remove a user (or leave, if trying to remove yourself) is available at: Groups -> Others -> Users.

Click on the name of the required user and you will see a confirmation window.

KickUser

New PHP SDK with demo application

On our GitHub page, there are many SDKs available for development in various languages.

This list has been added with a set for working with PHP, which is available at the following link..

PHPSdk1

The demo application for using this SDK set is available on our GitHub at the following link..

PHPSdk2

Full list of changes:

[Backend]
+ added a font microservice that returns CSS styles by font name;
+ added permissions to the Task model (TaskModel);
+ added methods to get and change permissions in the TasksController;
+ added the ability to call webhooktask with headers;
+ added the ability to update Tasks from the API;
+ added a sorting function in the API file list request;
+ added support for firebird connections on the server (for them to work, the WireCrypt property in firebird.conf must be Enabled);
+ added license checking for FastReport Corporate Server;
+ added a scheduler with the ability to run delayed tasks;
+ added connection to MongoDB;
+ added the ability to run tasks on a schedule using CRON expressions;
* now, when searching for files and folders, you can use regular expressions. To do this, set the useRegex parameter to true;
* added logic to prevent the creation of files and folders with the same names (when uploading, copying, moving, exporting, preparing, renaming);
- fixed a rare error that caused the workers to stop working;
- fixed a bug where files were immediately set to the Success status upon creation;
- fixed a bug when preparing a thumbnail for an anonymous user;
- fixed a bug that caused incorrect thumbnails to be generated for FRX files;
- fixed a bug that sometimes caused MyPermissions to return a 500 error instead of the user's permissions;
- fixed a bug that caused the model permissions returned to be combined with the default permissions;
- fixed a bug that caused download errors to always return a 406 status code;
- fixed the launch of a sequence of the same tasks;
- fixed a bug that caused all data sources to always show their connection type as JSON;
- removed the HasSpaceOverdraft field from subscription plans and subscriptions;
- removed the Default service.

[Common]
+ added a PHP SDK toolkit and a demo application for it;
+ added a basic article on using Tasks via the REST API;
* changed the description of the export and preparation folder id in the documentation;
* replaced the red favicons with blue ones;

[Frontend]
+ added redirection from the /app/signin page if the user is already logged in;
+ added the display of a context menu when right-clicking on an empty space;
+ added the ability to change the default permissions in the admin panel;
+ added the management of Task permissions on the "Groups" page;
+ added an instructional video for getting started with the application, placed on the "About the Product" page;
+ added a dialog message after clicking on the bell when there are no notifications;
+ added the ability to set the folder name directly when creating it;
+ added a dialog for excluding a user. To exclude a user, click on them in the list of users in the workspace (the "Groups" tab);
+ added an interface for connecting to Firebird;
+ added a button to check the connection string before creating a data source;
+ added a form for creating a JSON connection;
* the settings and scheduler menu items have been temporarily disabled;
* the count of selected files is now much faster if the "Select All" button was not used;
* deleting multiple files will no longer be interrupted if any file is not found;
* added a description of user lists on the groups page;
* right-clicking on an empty space on the page will now open a context menu with creation options;
* now clicking outside the list of items will reset the selection;
- fixed an error with the missing subscription id when running a thumbnail prepare task;
- fixed a Null Reference error on the "Groups" page;
- fixed an error that prevented the thumbnail from being requested for the report;
- fixed the creation of an extra folder in the folder creation dialog;
- fixed a bug that caused multiple extra folders to be created when creating a folder;
- now the preview can show more correct error messages when they are detected;
- fixed the display of the file owner, now it correctly shows who the owner is.