Calling init on WL.JSONStore without repeating previously used options

旧时模样 提交于 2019-12-11 13:17:53

问题


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.


回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/22615725/calling-init-on-wl-jsonstore-without-repeating-previously-used-options

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!