domain: client
language: javascript
class Item class
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.
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();