After defining the new property in the SCHEMA_SPO.xlsm file, you must add the SPXAuthoring and SPOPublish mappings for the new tag properties in the Tool Map spreadsheet, SPX Tag-ToolMapSchema-SPFMappings.xlsx file.
The following example shows how to add the mappings for the new tag property, “CableCategory” in the SPX Tag-ToolMapSchema-SPFMappings.xlsx file.
Define the PropertyDef mappings (SPMapPropertyDef)
-
Navigate to Smart Community for sample ELF of SPX Tag-ToolMapSchema-SPFMappings.xlsx file. For more information, see Find sample data on Smart Community.
-
Open the SPX Tag-ToolMapSchema-SPFMappings.xlsx file, and add a new row in the SPMapPropertyDef section.
-
Type the new PropertyDef name in the Authoring Property Name column. In this example, type [CableCategory] in the Authoring Property Name column.
-
Type the interface which this PropertyDef exposes in the Authoring Property Select Criteria column. In this example, type the interface as [ITagCable] in the Authoring Property Select Criteria column.
-
Type the ClassDef of the tag type in the Authoring ClassDef Exposed By column. In this example, type [SPXTagCable] in the Authoring ClassDef Exposed By column.
-
Enter the next higher sequence number in the Sequence No. column. In this example, type [182] in the Sequence No. column.
-
Type the UID in the UID column using the format [SPXClassdef_PropertyName_SequenceNo.]. In this example, type [SPXTagCable_CableCategory_182] in the UID column.
For example:
Define the relationship between SPMapPropertyDef and mapped Class (MapClassMapProperties)
-
Add a new row in the MapClassMapProperties section, and type the ClassDef of the tag type in the UID1 column. In this example, type [SPXTagCable] in the UID1 column.
-
Type the UID for the PropertyDef as defined in the SPMapPropertyDef section in the UID2 column. In this example, type [SPXTagCable_CableCategory_182] in the UID2 column.
-
Type the UID in the UID column using the format [UID1.UID2]. In this example, type [SPXTagCable.SPXCable_CableCategory_182] in the UID column.
For example:
Define the relationship between SPMapPropertyDef and SPOPublish PropertyDefs (MapPropertyToProperty)
-
Add a new row in the MapPropertyToProperty section, and type the UID of the PropertyDef as defined in the SPMapPropertyDef section in the UID1 column. In this example, type [SPXTagCable_CableCategroy_182] in the UID1 column.
-
Type the UID for the PropertyDef in the Publish domain to which the PropertyDef in Authoring domain is mapped in the EFSchemaProperty (Publish to) UID column. In this example, type [ICable_CableTypes] in the EFSchema Property (Publish to) UID column.
-
Type the ClassDef of the tag type in the EFSchemaClassDef (End2MapValue) Exposed By column. In this example, type [SPOCable] in the EFSchemaClassDef (End2MapValue) Exposed By column.
-
Type the UID in the UID column using the format [UID1.UID2]. In this example, type [SPXTagCable_CableCategory_182.ICable_CableTypes] in the UID column.
For example:
-
Click File > Save to save the spreadsheet.