Content Management and Capture

Content Management and Capture

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

 View Only
  • 1.  Can we differentiate between the EntryTemplate open from 'AddDocumentUsingEntryTemplate' and EntryTemplate open from Browse-->Folder

    Posted 06/28/21 07:24 AM

    We have implemented lot of functionalities on Load of EntryTemplate from Browse-->Folder using aspects.

    But for AddDocumentUsingEntryTemplate we are using the aspect:

    aspect.after(LayoutPropertiesPane.prototype, "renderAttributes", function(attributeDefinitions, item, reason, isReadOnly, params){}).But this is getting invoked for Browse-->Folder Entry Templates.

    Can we have any point to check whether it is AddDocumentUsingET or from Browse-->File inside the aspect so that we can put a check/condition and this piece of code will work will work only for AddDocumentUsingEntryTemplate.

    It would be helpful to have code snippet.



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 2.  RE: Can we differentiate between the EntryTemplate open from 'AddDocumentUsingEntryTemplate' and EntryTemplate open from Browse-->Folder

    Posted 06/30/21 08:57 AM

    Hi,

    You may check the parameter of the renderAttributes() function. params.entryTemplate.type can be "FOLDER" or "DOCUMENT", indicating if that is folder entry template.



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 3.  RE: Can we differentiate between the EntryTemplate open from 'AddDocumentUsingEntryTemplate' and EntryTemplate open from Browse-->Folder

    Posted 07/01/21 06:47 AM

    Hi Angie,

    AddDocumentUsingEntryTemplate(This is also a DocumentEntryTemplate) and Browse-->and then opening the Entry Template that is filed in some folder both will give params.entryTemplate.type as 'DOCUMENT'



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 4.  RE: Can we differentiate between the EntryTemplate open from 'AddDocumentUsingEntryTemplate' and EntryTemplate open from Browse-->Folder

    Posted 07/05/21 01:55 AM

    Hi,

    I don't quite understand the requirement. Are you trying to differentiate the global action "Add Document Using Entry Template" and the "Add Document" action inside a folder that is associated with the same document entry template?



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 5.  RE: Can we differentiate between the EntryTemplate open from 'AddDocumentUsingEntryTemplate' and EntryTemplate open from Browse-->Folder

    Posted 07/05/21 02:27 AM

    If the answer is YES, you may check the aria-label of the dialog node:

    dojo.query(".ecmBaseDialog[aria-label='Add Document by Using Entry Template']").length == 1



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration