Question

Save list datasource changes on button click

Hi,

we have a Freedom UI page with an editable list component connected to an object. If the user has changed any record, the "Save all" button should be pressed to apply updates (see screenshot). Now we want to implement objects saving on "Apply changes button". Is it possible? We thought about similar handler as for refresh data, but for saving datasource:

const handlerChain = sdk.HandlerChainService.instance;
await handlerChain.process({
    type: "crt.LoadDataRequest",
    $context: request.$context,
    config: {
        loadType: "reload"
    },
    dataSourceName: "DataSourceNameHere"
});

 

Like 0

Like

1 comments

Hi,

If I'm not mistaken, you can use crt.SaveRecordRequest (example here) or crt.SaveDataRequest (example here)

Show all comments