Delete entries

To delete an entry from the SqliteHistorize extension, the symbol “TchmiSqliteHistorize.DeleteDatabaseEntries” must be written. If no symbol is specified in the command, all entries are deleted. Recording can be stopped for one or all symbols via “disableRecording”.

Parameter

Name

Type

Description

disableRecording

boolean

Stops recording for the specified symbol.

symbolName

string

Symbol which is to be deleted. If no symbol is specified, all entries are deleted.

Example - Javascript

TcHmi.Server.writeSymbol(
    'TcHmiSqliteHistorize.DeleteDatabaseEntries',
    {
        "disableRecording": true,
        "symbolName": "MySymbol"
    },
    data => {
        if (data.error !== TcHmi.Errors.NONE ||
            data.response.error ||
            data.response.commands[0].error) {
            // Handle error(s)...
        return;
    }
    // Handle result...
    console.info(
        'TcHmiSqliteHistorize.DeleteDatabaseEntries=' +
        data.response.commands[0].readValue);
    }
);
Delete entries 1:

Available from version 1.12.758.8