I don't understand why is it behaving like old rec
# suitescript
r
I don't understand why is it behaving like old rec
s
because it states that it runs under xedit and its changes, if old rec is what you want you ought to consider nlapiLoadRecord
b
the newRecord reflects the record as submitted
so if you click a button instead of actually editing the record, you get what the record was when the button was clicked
same sort of thing happens for tranid
r
exactly i want the submitted one. but i get the previous one value
I logged values with oldrec and newrec , both had weirdly same values?
why sooo?/
but it was packed before and the value i set was shipped, how come it shows packed both times?
b
did you edit the record or click the shipped button
r
i editted and saved the record just now
again, it value i set was picked, and it is showing the value shipped both on oldrec and newrec, weird right?
message has been deleted
b
click the status field
r
message has been deleted
b
and check its id
r
i am so stupid
wow
but one sec
checking if that works
well that worked. but i dont understand why the 'status' field did not work and shippingstatus field did?
I mean the why am I getting conflicting values for one and not for another?
b
same answer
the status field is the one you see at the top of the transaction
look at its value at the time the record iis submitted
r
gotcha
thanks