I have a button that duplicates a sublist from a s...
# suitescript
p
I have a button that duplicates a sublist from a salesorder and adds to the current salesorder. Works great except that in order to see the sublist values populate I need to either save or refresh the transaction. Is there a way to have the sublist on the salesorder populate after the custom records are populated?
s
Have the button refresh the page after creating the records?
p
I thought of that but the only issue is that if there are changes in the salesorder that have not been saved yet it will remove those values. Was hoping for something a bit more dynamic.
b
depends on the type of sublist, you may be able to use nlapiRefreshLineItems
p
thanks. can you mix 1.0 with 2.0? I see there is no equivalent for this in 2.0.
b
yes
at the risk of confusing the next person who looks at the code
p
follow up on this - unfortunately nlapiRefreshLineItems did not work.
b
which sublist type do you have
p
inline editor sublist
b
nope, no refreshing that
its not something that can be done in the ui
p
thanks for the other top though. i am sure that will come in handy someday.