Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Can not access the member items of an assembly record
I am at wits end and it's probably something stupid.
I'm looping through items from a specific transaction and then checking the type. When I come across a kit, assembly, or group, I want to load that specific item and then look further into its members to look for certain field attributes. Everytime I do this, I get a line count of 0. Am I forgetting a step or missing something?
// recType and recId are correct, the record loads fine var rec = nlapiLoadRecord(recType,recId); if ( !rec ) { return; } alert('load record good'); var memberCnt = rec.getLineItemCount('memberitem'); alert('member count: '+memberCnt); 0