and in my ClientScript I'm having a hard time gett...
# suitescript
d
and in my ClientScript I'm having a hard time getting at the current record. Code looks like:
Copy code
/**
 * @NApiVersion 2.x
 * @NScriptType ClientScript
 */
define(['N/currentRecord'], function(currentRecord) {
  function pageInit(context) { }

  function daveTestFunc(context) {
    console.log(currentRecord); // <-- undefined?!
  }

  return {
    pageInit: pageInit,
    daveTestFunc: daveTestFunc
  };
});
b
any more code, you should get an object with one key (get) in it
d
if I set a breakpoint just before the
return
that's exactly what I get 😕
DUDE IT WORKS NOW WHAT THE.... ?!?!
Okay, sorry for wasting your time. Thanks for looking!
b
its annoying when code only works when someone else is looking