I have a few questions on the config api and on IADS automation.
The reason why I am working on this is that I would like to automate some of our pfConfig consistency checks and I would like to improve some aspects of our pfConfig maintenance.
1.) Are there means how I could seize the IADS parser from VBA?
(Example 1: Consider a complicated derived parameter expression in DataSourceArguement - How do I extract all parameters from the string regardless whether they are present as TPP/IAP in the current pfConfig or not?)
(Example 2: Imagine I wanted to disseminate complicated formulae and put them into a tree view in a similar fashion as 'debug parameter')
2.a) I have tried the IadsConfigInterface.dll and this: IADS Configuration File Application Programming Interface April 2008 SYMVIONICS Document SSD-IADS-012
(http://iads.symvionics.com/downloads/IadsConfigInterface.zip)
If I use the collection interfaces ParameterSets and ParameterDefaults, it seems to be very slow, estm. 20s per ParameterDefaults Record. Also, there seem to be a little more Rows columns in the pfConfig today than there are properties of the ParamterDefaults collection.
Should one still use these collections?
2.b) The general SQL query interface seems to work fine and fast. Are there any limitations with long DataSourceArguement formulae when I use it for read and write?
2.c) Are there any means to access and manipulate a config that is currently open (i.e. provided to the clients by the post test data server).?
3.) (I have seen an old thread on this in the forum:) Can I, from VBA code, determine which parameters are 'orphaned' which means not used by any display? Can I, from VBA code, obtain a list of which display uses which parameters by using IADS mechanisms?
4.) Are there automation means how I can access lookup tables (i.e. in a simple iadsText on the display)? All this information seems to be in the 'property bag' only?
Hi Adam,
>I have a few
questions on the config api and on IADS automation.
>The reason why I am
working on this is that I would like to automate some of our pfConfig
consistency checks and I would like to improve some aspects of our pfConfig
>maintenance.
>1.) Are there means
how I could seize the IADS parser from VBA?
>(Example 1: Consider
a complicated derived parameter expression in DataSourceArguement - How do I
extract all parameters from the string regardless whether they are present
>as TPP/IAP in the
current pfConfig or not?)
>(Example 2: Imagine I
wanted to disseminate complicated formulae and put them into a tree view in a
similar fashion as 'debug parameter')
Actually, we do have the parser exposed in an automation component. The component is called “IadsEquationEngine.EquationEngine” and is included in every installation. If you include the COM library into your project and access it in the object browser, you’ll see that there’s a property called “Equation”. Set the Iads equation string into that property and then use the NumberOfVariables property to determine the number of ‘parameters’ in the equation. Call “GetVariableName( index )” to get the name of each parameter.
>2.a) I have
tried the IadsConfigInterface.dll and this: IADS Configuration File
Application Programming Interface April 2008 SYMVIONICS Document
SSD-IADS-012
>(http://iads.symvionics.com/downloads/IadsConfigInterface.zip)
>If I use the
collection interfaces ParameterSets and ParameterDefaults, it seems to be very
slow, estm. 20s per ParameterDefaults Record. Also, there seem to be a little
more
>Rows columns in the pfConfig today than
there are properties of the ParamterDefaults collection.
>Should one still use
these collections?
>2.b) The general
SQL query interface seems to work fine and fast. Are there any limitations with
long DataSourceArguement formulae when I use it for read and write?
No limitations that I know of...
>2.c) Are there
any means to access and manipulate a config that is currently open (i.e.
provided to the clients by the post test data server).?