• Christopher Steinbach
        2 years ago #34223

        Hi Simplifier,

        I want to update a JS library with a newer version. But I noticed that it is impossiblbe to find out where the previous version was used. Theres just a checkbox “is referenced”. I searched for the reference in every application, module and widget but I still can’t find the reference of the outdated version.

        Is there a easy solution for this issue?

        Thank you.

        Jennifer Häfner
            Has successfully completed the online course Intermediate (200)
            Has successfully completed the online course Advanced (300)
            Has successfully completed the online course Basics (100)
            Has successfully completed the online course Advanced (310)
            Has successfully completed the online course Advanced (320)
            Has successfully completed the Intermediate Certification
            Has successfully completed the Advanced Certification
          2 years ago #34255
          Up
          0
          Down
          ::

          Hi,

          Unfortunately, there’s currently no easy way to view where a JS library is used. Libraries can be used in applications, modules and widgets, but also in Client-Side Business Objects and other JS libraries. Have you checked these artifacts yet?

          However, if you have access to your Simplifier instance’s SQL database, you can retrieve the app dependencies of the library with the following SQL statements:

          SELECT lib.id, lib.name, lib.version, app.name
          FROM Lib as lib
          JOIN Lib_App_Dependency as libToApp ON libToApp.libraryId = lib.ID
          JOIN App as app ON libToApp.applicationId = app.id
          WHERE lib.name = "";

          Or for other library dependencies:

          SELECT lib.id, lib.name, lib.version, depLib.name, depLib.version
          FROM Lib as lib
          JOIN Lib_Lib_Dependency LLD on lib.ID = LLD.dependingLibraryId
          JOIN Lib as depLib ON depLib.ID = LLD.libraryId
          WHERE lib.name = "";

          Just let me know if you can use these SQL statements or if you need additional statements.

          I will add a feature request for the functionality to read a library’s references.

        Viewing 2 posts - 1 through 2 (of 2 total)

        You must be logged in to reply to this topic.