Button to create IM from OCML

I need make at OCML form ability for operators - press button "make incident" to create incident (IM) and transfer into this incident (into a separate field in IM) number of OCML.