I can't fetch data from doctype in frappe ui

I am trying to fetch data from doctype as like frappe ui documentation. But I get an error. How can I solve it?

Error Screenshot:

Code screenshot:
image

@nagariahussain @netchampfaris Please help me…

Solution is

todos.reload()
1 Like

Raise a question in my mind, why frappe ui documentation use todos.fetch()

1 Like

Good catch, there was no fetch method on listResource. Added fetch as alias to resource (PR) as it is has better readability.

1 Like

Is it possible to edit this line in frappe ui documentation. I think, many people will do the same mistake.

And in discuss, there is no category about frappe ui. Is it possible to create this topic?

Updating docs isn’t required now.

But if in future you want to contribute some edit, the docs are in the source code itself.

1 Like

Sure, we can do this.

1 Like