Compilation Error from Lasernet FO Connector 6.17
    • 07 Jan 2025
    • 1 Minute to read
    • Contributors
    • PDF

    Compilation Error from Lasernet FO Connector 6.17

    • PDF

    Article summary

    Customers that have developed code to initialize Lasernet reports in Lasernet FO Connector older than 6.17 will get a compilation error when they upgrade to Lasernet FO Connector 6.17 because report initialization from the code has changed in this version.

    Error

    Type mismatch in 'LACRunQueryServiceController.newReport' argument 2. The expected type is 'LACArgsCache', but the actual type is 'boolean'.

    Lasernet FO Connector 6.17 contains major performance enhancements. One of the newly introduced features is new cache logic. This change affects how the report is initialized and processed from the code.

    It might be required that some customers using custom code to launch Lasernet reports update the code.

    The Lasernet tutorial is also updated to help users understand how to use Lasernet features from the code. LACTutorialStartReport shows the changes that might be required.

    Older Lasernet FO Connector Versions

    Lasernet FO Connector 6.17

    Code fragment to initialize LACRunQueryServiceController:

    LACRunQueryServiceController controller =
    
    LACRunQueryServiceController::newReport("LACCustTable",
    
    LACArgsCache::newCache('LACCustTable'), true);

    In case there is no Report in the scope/context of the process, LACArgsCache should be initialized with an empty string:

    LACArgsCache argsCache = LACArgsCache::newCache(");

    The following is an example that should be followed:

    The updated tutorial model has been added to the Lasernet FO Connector 6.17.1 release.


    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.