Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
New to NetSuite | N/currentRecord: CurrentRecord.cancelLine(options) Method
In our previous article, New to NetSuite | N/currentRecord Module Overview, we discussed the purpose and usage of the N/currentRecord module.
As part of our ongoing guide to the N/currentRecord module, this article explores the cancelLine method — a helpful tool for managing sublists during client-side scripting. This method allows you to cancel or discard changes made to the currently selected line in a sublist.
What is cancelLine()?
The cancelLine(options) method cancels the currently selected line on a sublist. This is especially useful if you need to discard an in-progress line item before it's committed.
Returns
- Type: currentRecord.CurrentRecord
Expand your NetSuite knowledge by joining this month's Ask A Guru Live: PROCURE TO PAY. RSVP on this event now!
Refer a Member to the Community | Earn the Answer Accepter Badge | Vote for the contents you'd like to see
