Jam.py documentation

set_fields

set_fields(field_list)

domain: client

language: javascript

class Item class

Description

Use the set_fields method to define and store internally the fields option that will be used by the open method, when its own fields option is not specified.

After the open method executes it clears this internally stored value.

The field_list parameter is a list of field names.

Example

The result of the execution of following code snippets wil be the same:

item.open({fields: ['id', 'invoicedate']});
item.set_fields(['id', 'invoicedate']);
item.open();

See also

Dataset

open