Javascript API: ZoteroPane.getItems();
Hey together,
I would like to program a simple plugin, but for some reason the Javascript API is not working as expected.
At a first step I just want to get a list of all items in the active pane. I run
```Javascript
var ZoteroPane = Zotero.getActiveZoteroPane();
ZoteroPane;
```
in the developer console. And get the object. Also it writes:
```
...
"getItems": function () {...}
...
```
But if i run
```Javascript
var ZoteroPane = Zotero.getActiveZoteroPane();
ZoteroPane.getItems();
```
the error message is TypeError: ZoteroPane.getItems is not a function.
Do you have any idea what might be wrong? The thing happens for most of the other functions.
Kind regards,
Max
Btw.: I am on 5.0.96.3
I would like to program a simple plugin, but for some reason the Javascript API is not working as expected.
At a first step I just want to get a list of all items in the active pane. I run
```Javascript
var ZoteroPane = Zotero.getActiveZoteroPane();
ZoteroPane;
```
in the developer console. And get the object. Also it writes:
```
...
"getItems": function () {...}
...
```
But if i run
```Javascript
var ZoteroPane = Zotero.getActiveZoteroPane();
ZoteroPane.getItems();
```
the error message is TypeError: ZoteroPane.getItems is not a function.
Do you have any idea what might be wrong? The thing happens for most of the other functions.
Kind regards,
Max
Btw.: I am on 5.0.96.3
-
dstillmanPlease post development questions to zotero-dev — we try to keep technical discussions there.