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
  • Please post development questions to zotero-dev — we try to keep technical discussions there.
  • Hi @dstillman

    a comment - google search does not index or does not index well enough the questions in zoter-dev google groups.
    So many time we end up in the forums here to find questions that do not have answers.

    Possible to move them here. Or maybe use Stackoverflow instead?
Sign In or Register to comment.