Raj Konds
06/14/2025, 1:56 PMwindow.opener.require(['N/currentRecord'], function(currentRecord) {
let tranItemline = currentRecord.get();
tranItemline.setCurrentSublistValue({ sublistId: 'custpage_wo_lines_list', fieldId: attrSetId, value: attrSelectedId, ignoreFieldChange: true });
tranItemline.setCurrentSublistValue({ sublistId: 'custpage_wo_lines_list', fieldId: attrSetName, value: attrSelectedName, ignoreFieldChange: true });
});
The value gets set on the parent page BUT ONLY when user clicks somewhere on the parent page.
How can we make the selected popup value gets set directly onto the parent sublist field (without the extra click)
ThanksRaj Konds
06/14/2025, 1:58 PMwindow.updateWOAttributeSelection = function(attrSetId, attrSelectedId, attrSetName, attrSelectedName) { ... }
And called this from the popup CS
if (window.opener && typeof window.opener.updateWOAttributeSelection === 'function') {
window.opener.updateWOAttributeSelection(attrSetId, attrSelectedId, attrSetName, attrSelectedName);
}
Did not help. Please help/suggest.
ThanksRaj Konds
06/18/2025, 2:37 AM