Content Management and Capture

Content Management and Capture

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
  • 1.  In Edit page, save only if all validation are done

    Posted Wed March 10, 2021 03:14 PM

    Onclick of Save in Edit page, once all the validations are completed, I want to do some operations. For that i am using below code. How can I make sure there are no more validation error occurred in the edit page using this piece of code, and i can do my operations

    aspect.after(ecm.widget.dialog.EditPropertiesDialog.prototype,"onSave", function(event){

    console.log("*********inside EditPropertiesDialog onsave loop************");

    if (this._itemEditPane.isValid(true, false, true)) {

    console.log("********1**********");

    this._itemEditPane.save(lang.hitch(this, function() {

    this.hide();

    if (this._callback) {

    this._callback();

    }

    }));

    }

    console.log("*********END EditPropertiesDialog onsave loop************");

    });



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 2.  RE: In Edit page, save only if all validation are done

    Posted Mon March 15, 2021 10:06 AM

    Hi,

    You may use aspect.around() to overwrite the ICN onSave() function, and add your operations after validation.

    Regards,

    Angie



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 3.  RE: In Edit page, save only if all validation are done

    Posted Tue March 16, 2021 03:35 PM

    Hi I used it link this

    aspect.around(ecm.widget.contentListEditPane.prototype,"onSave",function(originalFunction){

    });


    once I click on save button in EditProperties page, it is not going inside this loop.

    On click of save button in Edit Page, i want get all updated properties and make sure save is successful, and then perform my operation.

    I am new to this, Can you please elaborate little more. Thanks In Advance



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 4.  RE: In Edit page, save only if all validation are done