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
Solved! Go to Solution.
Views
Replies
Total Likes
@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
Views
Replies
Total Likes
But "0" is itself a value by default
Views
Replies
Total Likes
@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
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies