🎯 Learning Objectives
- Master record.create(), load(), copy(), and save()
- Understand getValue() vs getText() differences
- Work with sublists using getLineCount() and setSublistValue()
- Use N/currentRecord for client-side manipulation
- Understand the difference between server and client context
- Leverage submitFields() for efficient updates
📖 Modules
5
N/record Module
Server-side record operations: create, load, copy, transform, delete, and submitFields. Working with header fields and sublists.
6
N/currentRecord Module
Client-side record manipulation: real-time updates, field validation, and sublist editing in the browser.
🔑 Key Concepts This Week
record.load()
Load existing record from database
record.create()
Create new record in memory
getValue() vs getText()
Internal ID vs display value
Sublists
Line items on transactions
submitFields()
Efficient partial record update
currentRecord.get()
Access record in browser context