Skip to content

Instantly share code, notes, and snippets.

@rs77
Created May 16, 2015 10:52
Show Gist options
  • Save rs77/03fe5ed629e495b5b7e5 to your computer and use it in GitHub Desktop.
Save rs77/03fe5ed629e495b5b7e5 to your computer and use it in GitHub Desktop.
Couldn't find an easy way to change the Department field on a per line basis in NetSuite, so ended up using a jQuery hack that ran in the browser's console.
jQuery("td:contains('Company (10)')").each(
function( i, el ) {
jQuery(el).click();
jQuery("input[name='department']").val("9");
jQuery("input#indx_department").val("23");
jQuery("input[name='department_display']").val("Trading (18 CEM)");
jQuery("input#item_addedit").click();
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment