could i have a user event on a saved search? tx!
# suitescript
e
could i have a user event on a saved search? tx!
z
What do you mean? Like have a user even fire on records in a saved search?
e
after inline edit
d
inline edits cause user event scripts on the record to file with
context.type == 'XEDIT'
also FYI with XEDITs, oldRecord and newRecord only have the fields that were affected by the inline edit, not the whole record
g
deploy to the record underlying your search… not to the saved search itself
☝️ 1
z
Yeah, I usually do a context check and then if xedit, I load the record for the context instead.
👍 1
e
thanks!
so it wont have the id and type - or just not the other fields unless they were affected
d
it will still have id and type. But you're correct, it won't have other fields unless they were affected