Jam.py documentation

set_where

set_where(where)

domain: client

language: javascript

class Item class

Description

Use the set_where method to define and store internally the where option that will be used by the open method, when its own where option is not specified. The open method clears internally stored parameter value.

The where parameter is an object of key-value pairs, where keys are field names, that are followed, after double underscore, by a filtering symbols (see Filtering records ).

Example

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

item.open({where: {id: 100}});
item.set_where({id: 100});
item.open();

See also

Dataset

open