This method works on extensions attributes. Only the objects with a specified
extension will be queried.
Signature
PLMQuery.AddCriterionOnExtension(extensionType: String,
attributeName: String) :attributeValue: String) VoidType
Arguments
Name |
Input / Output |
Required? |
Type |
Comment |
extensionType
|
In |
Yes |
String
|
The extension containing the attribute to
filter on. |
attributeName
|
In |
Yes |
String
|
The name of the attribute as defined on the
extension. |
attributeValue |
In |
Yes |
String |
The value of the attribute. The value of the attribute. An asterisk
(*) can be used as a wild card at the end of the attribute
value. |
Example
let myQuery(PLMQuery)
let results(List)
let currentResult(PLMQueryResult)
let currentResultLoaded(CarExt)
myQuery = CreatePLMQuery("VPMReference")
myQuery->AddCriterionOnExtension("CarExt","DoorsNumber","3")
results = myQuery->RunQuery()
for currentResult inside results
{
set currentResultLoaded = currentResult->LoadResult()
// Apply treatment on results here
}