Skip to contents

SeaTable's API addresses one view by its name in the URL, and its server reads a slash in that name as a path separator and a name of one or two dots as a folder. Such a view cannot be changed through the API, and harbouR says so before sending anything: rename it in SeaTable first.

Usage

hb_update_view(client, table, view, settings, ...)

Arguments

client

A harbour_client.

table

Table name.

view

Name of the view to update.

settings

Named list of the fields to change: name to rename the view, is_locked, filters, filter_conjunction, sorts, groupbys or hidden_columns. Fields you leave out are unchanged. hidden_columns takes column keys - the key column of hb_list_columns() - not names.

...

These dots are for future extensions and must be empty.

Value

Invisibly returns the client.

Examples

# needs a SeaTable server and an API token
if (FALSE) { # \dontrun{
client <- hb_client()
hb_update_view(client, "Samples", "Active", list(filter_conjunction = "And"))
} # }