General InformationThis opening ID is invoked when upgrading the PVS (persistent filters) and the persistent queries from the former typing to the unified typing. To support the data migration, you must have described your mapping in mapping files on the server. These files could not be accessed form the client to upgrade PVS in the past. This opening lets you describe your mapping in another format.This opening is used to:
In output of the business rules, two lists, The table below provides you with information related to the definition of the Opening ID.
Input ObjectsInput objects must be of the following types:
Context Object Parameters
SampleThe following sample shows how to use this opening. Let’s imagine that in the former typing customization, the customized type is
The business rule below describes that
/* Be sure that VPM Reference is set */
let x=""
let listeInput(List)
let listeOutput(List)
let listeExtensionsOutput(List)
let nameAttribute=""
x = Parameters->GetAttributeString("DefaultTargetTypeName")
if (x=="VPMReference")
{
/* you get the input list */
set listeInput = Parameters->GetAttributeObject("PreviousAttributes")
for nameAttribute inside listeInput
{
if (nameAttribute=="V_StdNumber")
{
listeOutput->Append("V_StdNumber2")
listeExtensionsOutput->Append("")
}
else if (nameAttribute=="V_IndustryCode")
{
listeOutput->Append("V_IndustryCode2")
listeExtensionsOutput->Append("DeplExtForIndustryCode2")
}
else if (nameAttribute=="V_BOM")
{
listeOutput->Append("")
listeExtensionsOutput->Append("")
}
}
/* The outputs are valuated*/
Parameters->SetAttributeString("ComputedTargetTypeName","SpecializedProductReference")
Parameters->SetAttributeObject("MappedAttributes",listeOutput)
Parameters->SetAttributeObject("MappedExtensions",listeExtensionsOutput)
}
| |||||||||||||||||||||||||||||||||||||