Initiate a notificati​on through a trigger


I am trying to send a notification for a line item when the line item status=ordered and the approval status=approved.  Since these fields are performed in the background a simple notification statement asking for this does not work. 

So, I think my best option would be to invoke a trigger on the ocml using the RAD us.notify.  This sort of works as when I have this trigger active, I get error message stating

"No notification record found for type: ocml={["Q174105-001", 1, 1222604, "Monitor", "Monitor", "Monitor", "requested", "Q174105", , , , ,"

This means the trigger I created is actually working but I do not know how to code the javascript within the trigger to call the notification I want.

Looking to see if anyone knows thejavascript for this?