1 Reply Latest reply on Jun 16, 2017 7:41 AM by 3416319

    FDM (Supp) Structure Manager doesn't work in Event scripts

    3416319

      Hi gurus!

      My question is related to FDM Classic.

      I need to get location ID of parent item in Controls hierarchy and use code STRUCTMGR.fGetLocationParent("Controls", RES.PlngLocKey).

      The code works fine in Custom scriptes, inc. Custom web scripts, but unfortunately doesn't work in Event scriptes (AfterFileImport).

      For example, RES.pstrActionValue = "lngLocKey " & RES.PlngLocKey & ", ParentKey = " & STRUCTMGR.fGetLocationParent("Controls", RES.PlngLocKey) is ignored entirely, not only last part related to STRUCTMGR. Error 424, Object required is raised, however there are no errors in username.err file.

      And I can't understand why there is error and why it works fine in Custom scripts.

      What should I do to make STRUCTMGR.fGetLocationParent("Controls", RES.PlngLocKey) works in Event script?

       

      Many thanks in advance,

      Greg