Get Forms SaveMode on AddOnSave Function RRS feed

  • Question

  • Hi, I need to know the forms Savemode on the function attach to "addOnSave" event

    function "AddTimeSpentOnSave" is attached to forms OnLoad event and pass the execution object as parameter.
    I found that getEventArgs() is null on the execution object when I try to use it in InitiateDialogForms()

    AddTimeSpentOnSave: function(ExecutionObj) {
            OWB.CBS.Context = ExecutionObj;

        InitiateDialogForms: function() {
            if (OWB.CBS.Context != null && OWB.CBS.Context.getEventArgs() != null) {

            if (Xrm.Page.getAttribute('owb_timespent').getValue() == null)
                OWB.CBS.OpenDialogForms(Xrm.Page.data.entity.getId(), OWB.CBS.ObjectTypeCode(Xrm.Page.data.entity.getEntityName()));

    does anyone know how to get the forms save mode when call a function attach to addOnSave?


    Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

    Thursday, January 23, 2014 6:33 PM