Content Management and Capture

Content Management and Capture

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

 View Only
Expand all | Collapse all

Not getting the message besides the property When using 'AddDocumentUsingEntryTemplate' onLoad

  • 1.  Not getting the message besides the property When using 'AddDocumentUsingEntryTemplate' onLoad

    Posted 05/20/21 05:17 PM

    When using the 'AddDocumentUsingEntryTemplate' & selecting the EntryTemplate,it should set the propertyValue of some properties as well as display the message besides that property.I am able to set the property but not able to display the message besides the property.I am using the below code-

    aspect.after(LayoutPropertiesPane.prototype, "renderAttributes", function(attributeDefinitions, item, reason, isReadOnly, params){

    console.log("Inside renderAttributes-onLoad");

    for(var j in this.attributeDefinitions){

    if(this.attributeDefinitions[j].id === 'datsIssueDate'){

    console.log("Inside IssueDate.");

    var dateProp=new Date();

    var defaultNode = "<span class='defaultSpan'><span style='color:blue'>Property Automatically Determined</span></span>"

    // var node = this.attributeDefinitions[j].propertyEditor.domNode;

    this.setPropertyValue(this.attributeDefinitions[j].id, dateProp);

    domConstruct.place(defaultNode,this._view.domNode);

    }

    }

    })

    Anyone has idea how I can set the message besides the property?



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 2.  RE: Not getting the message besides the property When using 'AddDocumentUsingEntryTemplate' onLoad

    Posted 05/25/21 06:08 AM

    Hi,

    Are you using customized layout for the entry template? Would setting an error message meet your requirement?

    Regards,

    Angie



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration