Hello
I've a data schema with something like this
<element externalJoin="true" label="Name" name="Name" target="cd:Name"
type="link"/>
How can I make so it has a default value? Right now, it's 0, which is itself a value in cd:name schema
해결되었습니다! 솔루션으로 이동.
조회 수
답글
좋아요 수
@CampaignerForLife you can setup your schema like this
<attribute default="5" label="ID Name" name="idName" type="long"/>
<element externalJoin="true" label="Name" name="Name" target="cd:Name" type="link">
<join xpath-dst="@id" xpath-src="@idName"/>
</element>
Above code will set the default value of 5 whenever a new record is created.
Kindly change the data type and default value as per your use case
Hello @CampaignerForLife You can't have a default value for joins
조회 수
답글
좋아요 수
But "0" is itself a value by default
조회 수
답글
좋아요 수
@CampaignerForLife you can setup your schema like this
<attribute default="5" label="ID Name" name="idName" type="long"/>
<element externalJoin="true" label="Name" name="Name" target="cd:Name" type="link">
<join xpath-dst="@id" xpath-src="@idName"/>
</element>
Above code will set the default value of 5 whenever a new record is created.
Kindly change the data type and default value as per your use case