Logicity Pro has the unique ability to process command line replacements, a feature that will thrill systems integrators. This feature is best described using an example. Let's say you have an ERP system with a Sales Orders module and you also have written a custom Crystal Report that requires the sales order number as a parameter. If your ERP system supports VB scripting or any other method of obtaining information about the data currently on the screen, you can use command-line variable replacement to call your custom Crystal Report and tell it "fill in the sales order number parameter with the sales order currently on the screen". Here are the steps to use command line replacements:
1. Obtain a copy of Logicity Pro for each system that needs to use this feature.
2. Choose a report file that has a parameter that you'd like to fill in from the command line. For this example I am going to say I have a sales order report that has a parameter for Sales Order ID.
3. Develop a Logicity Solution for this report and specify the parameter with a value of %SALES_ORDER%. This value can be anything you choose as long as it has no spaces and is enclosed in percent signs.
4. Now test the command line replacements from a command line first:
"C:\Program Files\SaberLogic\Logicity\Logicity Desktop.exe" "C:\Test.rrd" SALES_ORDER=CO-12345
Where C:\Test.rrd is the path to your RRD file and CO-12345 is the value you want to substitute in the RRD for %SALES_ORDER%.
Using this methodology, integrations with systems is vastly simplified. Any system supporting some sort of VBA macro layer can use code similar to the following to integrate with on-screen fields:
Dim wshShell, logicity
Set wshShell = CreateObject ("WSCript.shell")
logicity = """C:\Program Files\SaberLogic\Logicity\Logicity Desktop.exe"""
solution = """V:\Test.rrd"""
replacements = """" _
"ORDER_ID =" ORDER_ID.Text
""""
wshshell.run logicity + " " + solution + " " + replacements, 1, True