(I'm the friend): The problem I'm having with Inse...
# suitescript
s
(I'm the friend): The problem I'm having with Insert Line is that I get errors when trying to insert a line and add an item to it via setSublistValue (You have entered an Invalid Field Value #### for the following field: item). My thought was that maybe it requires dynamic mode? The item I am trying to add is in fact a real item.
l
I think you cannot use setSublistValue to add a line, could you show me some of your code?
s
I used InsertLine to add the line because I'm not in dynamic mode
l
you're using internal id not item name right?
s
Hope this helps. Trying to keep it as simple as I can. DSFItem is an Item ID, lineCount is the count of lines before adding a new one, so lineCount should be the line # of the new line.
yeah I'm using internal ID
l
What script type it is?
s
User Event. I'm getting the record from the script context
hoping to avoid manually loading it to get dynamic mode
BeforeSubmit
l
Can this item add in UI?
s
LOL
nope
well that explains it
Wish I had thought to check that much sooner
it's a config issue, nothing to do with the script probably >.<
Well thanks for the help and asking the the right, basic questions!
l
Well..Welcome to NetSuite
s
yep