Thank you very much for this. It seems that it is not working for me. I don’t know what the problem is but I copied exactly the code that you showed me.
This is the code I used:
var reorderRecords = function(){
TB.triggerPipe('eyJpdiI6IlZFZVwvZDViOFE3c1E5Rjc2cEhaQTlnPT0iLCJ2YWx1ZSI6IllGNVgrY2RJcmt4UFpkcFk3UlVcLzFoSDhlVnhBVExSajIzaEM5UGhyM3o4PSIsIm1hYyI6IjIxNmUwOTFlM2I0Njc1ODFiN2Y2ODFjOWYyMTBlNTg2YmE5NTQyNjM5YTdkOTM3MDRjMmQ4MzA5YWVhNTA4MDUifQ==', {
tableId: 'eykNOvrDY3',
fieldId: 'field_41',
operator: 'is',
value: '{pageField.Record ID}'
},
function (type, response, xhrRespone) {
console.log('pipe response', type, response, xhrRespone);
for (let i = 0; i < response.items.length; i++) {
var element = response.items[i];
console.log(element)
TB.triggerPipe('eyJpdiI6InFYQU03K0ZLQlgzc2F0NTdraXZrM3c9PSIsInZhbHVlIjoiWThsZU5WQ3pHb2UycTAzNStxcHYzQ0cweEFPa1hwRCs4RjBhVkRzWGpyYz0iLCJtYWMiOiJlMzdhY2U5ZmY3OTEzZDYyZjNiYWY5MTc5YTIyMDRkYjAxOTk0ZDQ0MzJmOWYyZDA0NWEyYmZjZjBmYWY3ZTEwIn0=', {
tableId: 'eykNOvrDY3',
field_id: 'field_42',
field_val: i+1,
recordId: element.id
},
function (type, response, xhrRespone) {
console.log('pipe response', type, response, xhrRespone);
$('.t-refresh-button').click();
}
);
}
}
);
};
TB.render('component_11', function(data) {
data.ele.find('#reorder-records').click(function(){
reorderRecords();
});
});
TB.render('component_8', function(data) {
});
I want to know also. When I reorder the number sequence on the original parent and child data. Can I make a duplicate of the number sequence that is no need to reorder because the original data was already in proper order?
Is there a way that I can just duplicate what is the correct one? please!