Content Management and Capture

Content Management and Capture

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

 View Only
  • 1.  aspect.after onLogin on ICN

    Posted Mon December 14, 2020 01:15 PM

    dear support, till today, on ICN version 2.0.3 an 3.0.3 i used the global plugin js file and

    extend it by add

    aspect.after(ecm.model.desktop,"onLogin",lang.hitch(this,this.myFunction));

    and it was perform after the user log-on or SSO auto login finish or refrash the screen.

    on ICN 3.0.8 this kind of code dose not perform at all,

    what am i missing?

    p.s

    I check if the navigator file ecm.model.desktop.js contain

    "onLogin" func as the other versions have, and the answer is yes.



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 2.  RE: aspect.after onLogin on ICN

    Posted Tue December 15, 2020 04:32 AM

    Hi,

    I tried the following on ICN 3.0.8 IFix 3 and the code was performed.

    aspect.after(ecm.model.desktop,"onLogin",lang.hitch(this,function(){console.log("onLogin fired")}));

    What is your ICN build number?

    Regards,

    Angie



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 3.  RE: aspect.after onLogin on ICN

    Posted Tue December 15, 2020 06:48 AM

    Dear Angie,

    Thank you for your test,

    it was my mistake, i found some other background plugin that make this problem.



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 4.  RE: aspect.after onLogin on ICN

    Posted Tue December 15, 2020 08:08 AM

    Dear Angie,

    In the same scope, maybe you can tell why in 308 aspect after "onLogin" 

    the ecm.model.desktop.id and ecm.model.desktop.userId is null?

    there is some way to get this info in that scope in 3.0.8?

    on 3.0.3 it was worked



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 5.  RE: aspect.after onLogin on ICN

    Posted Tue December 15, 2020 11:51 AM

    Dear Angie

    I think i have some issue with the 308 ver that already installed,

    i will ask my sys admins to fix it,

    thank you for your support



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 6.  RE: aspect.after onLogin on ICN

    Posted Thu December 17, 2020 01:43 AM

    You're welcome. After your ICN is fixed, the ecm.model.desktop.id and ecm.model.desktop.userId should be available once "onLogin" is fired.  



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration