[Adding Property Mappings](#adding-property-mappings) [Configure Settings](#configure-settings) [Configure Rules](#configure-rules) [Render types](#render-types) [Effective troubleshooting](#effective-troubleshooting)
Property Mappings defines the BOM columns displayed in SharpSync. You can think of them as the mapping of meta data from one source to another source, or as the mapping of custom properties from one source to another source.
Before we go to deep, let’s define some terms:
Term | Description |
---|---|
Property mapping | The entire mapping and all its settings |
Accessor | The Internal name as SharpSync refers to it |
Primary accessor (or Datasource property) | The name of the property as at the primary source (typically a CAD / PDM / PLM System) |
Secondary accessor (or Datasource property) | The name of the property as at the secondary source (typically an online ERP System) |
Property Mappings can display a variety of information including, but not limited to:
SharpSync has built-in rules and settings for each property mapping. These rules and settings are used to help codify, standardize, and push changes to the selected datasources. See also Property mapping rules
Rendering defines how and accessor / mapping of a value is viewed and accessed in the Bill of Materials view.
Before we go to deep, let’s define some terms:
Term | Description |
---|---|
Render type | How the user may interact with the cell |
Accessor / Property | The internal name as SharpSync refers to it |
Options | An optional configuration option affecting the behavior of a column when the Bill Of materials is displayed |
Changes the behaviour display of the Property Mapping when the Bill of Materials shows on-screen:
Type | Description | Configuration |
---|---|---|
Checkbox | User interacts via clicking only, will be true if the value is True, 1, Y or Yes. | None |
Free text | User interacts by double-clicking, then typing text. You may also paste text | None |
Select List | User interacts by double-clicking, then selecting text. You may also paste text | Enter a list of values in the List Items textbox and separate each entry with a vertical Pipe (see example below) |
Multi Select List | User interacts by double-clicking, then selecting text. You may select multiple values. The datasource to be updated must support multi value fields | Enter a list of values in the List Items textbox and separate each entry with a vertical Pipe |
Advanced List | User interacts by double-clicking, then selecting text. You may also paste text. An object list displays a value ( display selector - that which is displayed), but when you select that value, a different value is used as the value sent to the source (value selector - the value selected as the update value) (see example below) |
Enter a list of values in the textbox in the javascript array form <p/> <p/>[ {}, {} ] <p /> and separate each entry with a comma (see example below) |
Advanced Multi Select List | User interacts by double-clicking, then selecting text. You may select multiple values. The datasource to be updated must support multi value fields. An object list displays a value ( display selector - that which is displayed), but when you select that value, a different value is used as the value sent to the source (value selector - the value selected as the update value) (see example below) |
Enter a list of values in the textbox in the javascript array form <p/> <p/>[ {}, {} ] <p /> and separate each entry with a comma (see example below) |
Url | Displays any text as a url (opens in a new tab when clicked) | None |
Example: Custom list of items to select from using Advanced List
Advanced List
id
refName
[
{"id":"182","refName":"My Assembly Form"},
{"id":"187","refName":"My Item Group Form"},
{"id":"143","refName":"My Non-Inventory Part Form"},
{"id":"181","refName":"My Inventory Part Form"}
]
Which, when displayed in the UI, looks like this
Given the list above, if the selections would result in the following:
My assembly Form
would result in a value of 182
My Item Group Form
would result in a value of 187
Example: Custom list of items to select from using Select List
Select List
Plate|Frame|Connector
Which, when displayed in the UI, looks like this
Property Mapping Rules are used to define the output format of the BOM data shown in SharpSync. When a rule is applied, all cells in a column mapped to a property will be evaluated. If the cell data does not fall within the rules applied, the cell will display an error color on its border, with a more detailed explanation in the cell overlay. Hover over a cell to see the applied rules evaluated in the overlay. Click on list icon in the Rules column of the desired Property Mapping to begin. For the list of Rules with explanations for each, click the following link: Property mapping rules
Properties mapped from a source may be displayed using different representations on screen. The options are:
Render Type | Description |
---|---|
Checkbox | Attempts to convert values to true/false. Any value of True or true will be converted. Tip: Use rules to parse values to True |
Free Text | Displays the return value from the source as is. If it is a single value like ‘myvalue’ the that will be displayed. If a more complex object like { "id" : "myvalue"} then the entire object is displayed as a string |
List | Displays a list of values from the list specified |
Object List | This is a special list (more detail below) that serves as a substitution list. You would pick a value from a list, but the actual value is a different value |
Url | Displays the underlying text as a clickable URL. The URL is always opened in a new tab |
Expanding on the Object List
option, the requirements are:
Object List Items
[
{
"id": "ALU-OX-3HD",
"displayName": "Alumina Oxide",
"category": "Ceramic"
},
{
"id": "BR",
"displayName": "Brick",
"category": "Ceramic"
},
{
"id": "CONC",
"displayName": "Concrete",
"category": "Ceramic"
},
{
"id": "FE",
"displayName": "Ferrite",
"category": "Ceramic"
}
]
The values that I want to see on screen in the selection list would be Alumina Oxide
, Brick
,Concrete
,Ferrite
The values that I want to pass to my ERP would be ALU-OX-3HD
,BR
,CONC
,FE
So my values specified in the Object selection list would be:
Object list
id
displayName
Make sure to also read Property mapping rules
Property mappings and their associated rules can get complicated based on the number of rules you create and the data being returned. My most effective methodology for troubleshooting has been:
Enabled
checkbox option. Retest.