asmodeus
asmodeus

Reputation: 97

Calling init on WL.JSONStore without repeating previously used options

Is there a way to initialize() ("re-open") an existing JSONStore collection with the same arguments that were used to create it, without passing them again? E.g. without specifying the searchFields that were set up on its creation.

Upvotes: 1

Views: 104

Answers (2)

patbarron
patbarron

Reputation: 1384

JSONstore does not provide a way to do what you are asking about - init() doesn't keep any "memory" of the arguments that were previously passed to it, so if you want to re-open a collection, the arguments to init() must be passed again.

Upvotes: 1

cnandreu
cnandreu

Reputation: 5111

Not possible, you must always pass the same arguments (search fields, etc). You can open a feature request here if you want.

Upvotes: 3

Related Questions