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

@buildwithhussain @netchampfaris Please help me…

Solution is

todos.reload()
2 Likes

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.

2 Likes

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.

2 Likes

Sure, we can do this.

1 Like

@Samsul Kindly provide me the Frappe UI documentation…I couldn’t able to find it