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!
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'); // always get to here var memberCnt = rec.getLineItemCount('member'); alert('member count: '+memberCnt); // always displays 0 0