Skip to main content

Compilation Error from Lasernet FO Connector 6.17 - Knowledgebase / Lasernet FO Connector / Lasernet FO Connector FAQs - Formpipe Support Portal

Compilation Error from Lasernet FO Connector 6.17

Authors list

Customers that have developed code to initialize Lasernet reports in Lasernet FO Connector prior to version 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 enhancements related to performance. One of the newly introduced features is a new logic for the cache. This change affects the way the report is initialized and processed from the code.

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

The Lasernet tutorial is also updated to give users an understanding of using Lasernet features from the code. LACTutorialStartReport shows the changes that might be required to follow.


Older Lasernet FO Connector version:

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.

Helpful Unhelpful

1 of 1 people found this page helpful

Add a comment

Please log in or register to submit a comment.

Need a password reminder?

Share