Page 1 of 1

How to load data using loadCrudManagerData (with examples)?

Posted: Fri Sep 24, 2021 2:23 pm
by sachidanand

Hi Team ,

The one way to load data using crudManager is as follows:
AttachmentName: CrudManagerUsingUrl

But I want to use loadCrudManagerData function to load my data because the web service is not returning the data in the format that crudManager expects . So , I want to do some modification to the data and then pass the data to crudManager to render it . I am using "loadCrudManagerData" in the following format , but it's not loading the data . Could you please help me where I am going wrong ? (with examples)
AttachmentName: CrudManager_LoadCrudManagerData


Re: How to load data using loadCrudManagerData (with examples)?

Posted: Fri Sep 24, 2021 4:27 pm
by arcady

loadCrudManagerData should not return data. It's supposed to accept it as an argument:

crudManager.loadCrudManagerData({
    resources : [
        { id : 1, name : 'John' }
    ]
})