How to store a specific non-zero default value in a linked field?
<srcSchema _cs="TestOMPRO4334 (mel)" created="2018-02-28 06:22:51.886Z" createdBy-id="0"
desc="For testing folder mapping issue" entitySchema="xtk:srcSchema" img="xtk:schema.png"
label="TestOMPRO4334" labelSingular="TestOMPRO4334" lastModified="2018-03-01 10:50:33.285Z"
mappingType="sql" md5="59A8BBF33E19ADCEA02AF85B6261C5EF" modifiedBy-id="0"
name="TestOMPRO4334" namespace="mel" xtkschema="xtk:srcSchema">
<createdBy _cs=""/>
<modifiedBy _cs=" "/>
<element autopk="true" desc="For testing folder mapping issue" label="TestOMPRO4334"
labelSingular="TestOMPRO4334" name="TestOMPRO4334">
<attribute label="First Name" name="firstName" type="string"/>
<attribute label="Last Name" name="lastName" type="string"/>
<attribute label="E-Mail" name="email" type="string"/>
<attribute label="Phone Number" name="phoneNumber" type="string"/>
<element default="DefaultFolder(‘nmsFolder)" label="Folder" name="folder" revDesc="TestOMPRO4334 included in this folder"
revIntegrity="define" revLabel="TestOMPRO4334s" target="xtk:folder"
type="link"/>
</element>
</srcSchema>
Hi, I am using the above-mentioned schema for some PoC purpose. I am trying to populate data in the above-mentioned schema through a workflow where the data is read from a CSV file and stored in the table corresponding to the above-schema. When a folder id (foreign key to xtk:folder) is provided, then, the system stores it correctly in the iFolderId field of the table, but, when no folder id is provided/chosen, then, 0 (i.e. zero) is stored as a folder ID. My requirement is to define a specific non-zero value as the folder ID. I tried different permutation and combination of default="DefaultFolder(‘nmsFolder)" attribute, but, it is not working. Please let me know how to store a non-zero default value in the folder field when folder id is not provided while importing a data set.