Data Table + Add New Record No Longer Working In Production

I went to decom our legacy Discussions List or Library Control and now the new Data Table Control won't allow Edit in the new row unless the browser is Refreshed.

This has been working for two days without error. UGH.

Also, the Designer keeps kicking me off, requiring a new sign in - are there updates in progress currently?

Property Formatting values are disappearing/reappearing

My Code

//select the Data Table control to automatically populate new rows
fd.spRendered(function() {
var dt = fd.control('LADiscussionDT');
var username = _spPageContextInfo.userDisplayName;
var date = new Date().toISOString();
 
//-- 'edit' allows the row to accept Edits
dt.widget.bind('edit', function(e) {
    var model = e.model;
    if (model.isNew()) {
        model.set('PostedBy', username);
        model.set('DatePosted', date);
    }
    

// I have tried with and without this refresh
dt.refresh();

});
});

Hello @shedev,

What is the version of the desktop designer and the app package the form is using?
Please share the screenshot

Are there errors in the browser console? Please share them too.

@Margo - I ended up deleting the DT control and adding a new one - that fixed it. It was a late night and I was getting frustrated (mostly with myself). Thank you as always for responding. I appreciate you.

1 Like