Pour utiliser la synchronisation de l'espace de recherche de l'Assistant produit, procédez comme suit :.
<PASync xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation='PASync.xsd'
Le fichier PASync.xsd est fourni. Le texte suivant montre le contenu du fichier PASync.xsd :
<?xml version="1.0" encoding="UTF-8"?> <xsd:schema xmlns:xsd='http://www.w3.org/2001/XMLSchema'> <xsd:element name="PASync"> <xsd:complexType> <xsd:sequence> <xsd:element ref="SearchScheme" /> <xsd:element ref="Command" minOccurs="1" maxOccurs="unbounded" /> </xsd:sequence> <xsd:attribute name = "member" type="xsd:string" use="required" /> <xsd:attribute name = "store" type="xsd:string" use="required" /> </xsd:complexType> </xsd:element> <xsd:element name="SearchScheme"> <xsd:complexType> <xsd:sequence> <xsd:element ref="RelatedTable" /> <xsd:element ref="Search" minOccurs="1" maxOccurs="unbounded" /> </xsd:sequence> <xsd:attribute name = "tableName" type="xsd:string" use="required" /> <xsd:attribute name = "primary" type="xsd:string" use="required" /> <xsd:attribute name = "colName" type="xsd:string" use="required" /> </xsd:complexType> </xsd:element> <xsd:element name="RelatedTable"> <xsd:complexType> <xsd:attribute name = "tableName" type="xsd:string" use="required" /> <xsd:attribute name = "from" type="xsd:string" use="required" /> <xsd:attribute name = "to" type="xsd:string" use="required" /> </xsd:complexType> </xsd:element> <xsd:element name="Search"> <xsd:complexType> <xsd:attribute name = "value" type="xsd:string" use="required" /> </xsd:complexType> </xsd:element> <xsd:element name="Command"> <xsd:complexType> <xsd:attribute name = "tableName" type="xsd:string" use="required" /> <xsd:attribute name = "idColumnName" type="xsd:string" use="required" /> <xsd:attribute name = "addCommand" type="xsd:string" /> <xsd:attribute name = "updateCommand" type="xsd:string" /> <xsd:attribute name = "deleteCommand" type="xsd:string" /> </xsd:complexType> </xsd:element> </xsd:schema>
member = "-2000" store = "10351"
<SearchScheme tableName = "catgroup" primary = "CATGROUP_ID" colName = "identifier" > <RelatedTable tableName = "catgpenrel" from = "CATGROUP_ID" to = "CATENTRY_ID" /> <Search value="Pantalons" /> <Search value="Chemises" /> </SearchScheme>
"Pantalons" et "Chemises" sont spécifiés dans cet exemple. Vous pouvez spécifier autant d'identificateurs CATGROUP que vous voulez.
<Command tableName = "CATENTRY" idColumnName = "CATENTRY_ID" updateCommand = "UpdateSearchSpaces" deleteCommand = "RemoveProductsFromAllSearchSpaces" /> <Command tableName = "CATENTDESC" idColumnName = "CATENTRY_ID" addCommand = "UpdateSearchSpaces" updateCommand = "UpdateSearchSpaces" deleteCommand = "UpdateSearchSpaces" /> <Command tableName = "LISTPRICE" idColumnName = "CATENTRY_ID" addCommand = "UpdateSearchSpaces" updateCommand = "UpdateSearchSpaces" deleteCommand = "UpdateSearchSpaces" /> <Command tableName = "ATTRVALUE" idColumnName = "CATENTRY_ID" addCommand = "UpdateSearchSpaces" updateCommand = "UpdateSearchSpaces" deleteCommand = "UpdateSearchSpaces" /> <Command tableName = "CATENTATTR" idColumnName = "CATENTRY_ID" addCommand = "UpdateSearchSpaces" updateCommand = "UpdateSearchSpaces" deleteCommand = "UpdateSearchSpaces" /> <Command tableName = "CATGPENREL" idColumnName = "CATENTRY_ID" addCommand = "AddProductsToSearchSpace" deleteCommand = "RemoveProductsFromSearchSpace" /> </PASync>
![]()
![]()
![]()
![]()
MassLoadCustomizer.properties se trouve dans le fichier archive MassLoader.zip. Extrayez ce fichier, renommez-le tout en gardant l'extension .properties. Placez-le ensuite dans un répertoire situé dans le chemin de classe.
Le fichier ISeries_LODWCSDTA_Customizer.properties se trouve dans le répertoire
/QIBM/ProdData/WebCommerce/properties. Copiez ce fichier dans le répertoire
/racine_inst/xml, renommez-le en conservant l'extension
.properties, puis apportez les modifications nécessaires au nouveau
fichier. Important : ne supprimez pas et ne modifiez pas le fichier
ISeries_LODWCSDTA_Customizer.properties d'origine.
PASyncDocumentURL = PASyncInfo.xml
PASyncEnabled = true
<store-asset> <catentry CATENTRY_ID="10351" MEMBER_ID="-2000" PARTNUMBER="000051" CATENTTYPE_ID="ProductBean" MFPARTNUMBER="m000051" MARKFORDELETE="0" BUYABLE="1" /> <catentry CATENTRY_ID="10352" MEMBER_ID="-2000" PARTNUMBER="000052" CATENTTYPE_ID="ProductBean" MFPARTNUMBER="m000052" MARKFORDELETE="0" BUYABLE="1" /> <catentry CATENTRY_ID="10353" MEMBER_ID="-2000" PARTNUMBER="000053" CATENTTYPE_ID="ProductBean" MFPARTNUMBER="m000053" MARKFORDELETE="0" BUYABLE="1" /> <catentry CATENTRY_ID="10358" MEMBER_ID="-2000" PARTNUMBER="000058" CATENTTYPE_ID="ProductBean" MFPARTNUMBER="m000058" MARKFORDELETE="0" BUYABLE="1" /> <catentry CATENTRY_ID="10365" MEMBER_ID="-2000" PARTNUMBER="000065" CATENTTYPE_ID="ProductBean" MFPARTNUMBER="m000065" MARKFORDELETE="0" BUYABLE="1" /> <catentry CATENTRY_ID="10372" MEMBER_ID="-2000" PARTNUMBER="000072" CATENTTYPE_ID="ProductBean" MFPARTNUMBER="m000072" MARKFORDELETE="0" BUYABLE="1" /> <catgpenrel CATGROUP_ID="10354" CATENTRY_ID="10372" CATALOG_ID="10351" SEQUENCE="3" /> <catgpenrel CATGROUP_ID="10354" CATENTRY_ID="10365" CATALOG_ID="10351" SEQUENCE="4" /> <catgpenrel CATGROUP_ID="10354" CATENTRY_ID="10358" CATALOG_ID="10351" SEQUENCE="5" /> <catgpenrel CATGROUP_ID="10355" CATENTRY_ID="10372" CATALOG_ID="10351" SEQUENCE="3" /> </store-asset>
Remarque : la désactivation de la synchronisation de l'espace de recherche de l'Assistant produit génère de meilleures performances du programme de chargement Loader ; par conséquent, n'utilisez cette fonction (activation de la synchronisation) qu'en cas de nécessité.
![]() |