Javascript API: ZoteroPane.getItems();

edited February 8, 2022
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
Sign In or Register to comment.