Delete entry

To delete an entry from the PostgresHistorize extension, you must write to the "TchmiSqliteHistorize.DeleteDatabaseEntries" symbol. 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.

Sample - Javascript

TcHmi.Server.writeSymbol(
    'TcHmiPostgresHistorize.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(
        'TcHmiPostgresHistorize.DeleteDatabaseEntries=' +
        data.response.commands[0].readValue);
    }
);