AnsweredAssumed Answered

Problems saving a bean in a record action

Question asked by Steven Cox on Dec 12, 2018
Latest reply on Dec 14, 2018 by Steven Cox

Hi,

 

I've created a toolbar record action for my meeting detail view. The idea is to have the record saved when the action is selected - with the action having various fields updated. 

 

I'm doing a few tests but the saves to not appear to write to the database (the 'saving' spinner shows and the green 'success' banner is displayed).

 

The code is:

 

customization.registerRecordAction({
    name: 'book-on',
    modules: ['Meetings'],
    types: ['toolbar'],
    rank: 0,
    isEnabled: true,
    stateHandlers: {
        isVisible(view, model) {
            return true;
        }
    },
   handler(view, model) {
                        model.set('description', 'blah');
                        model.save();
    },
});

 

Thanks

Outcomes