Expand my Community achievements bar.

Announcing the launch of new sub-community for Campaign Web UI to cater specifically to the needs of Campaign Web UI users!
SOLVED

Applicableif in the data schema

Avatar

Level 4

Can anyone provide the explanation for Applicable if 


i couldnt able to get it through documentation 

why we are using with realtime example  ?

 

 

1 Accepted Solution

Avatar

Correct answer by
Employee

Hi @vani97,

 

The applicableIf clause is generally used when we wanted to restrict the usage of the attribute or element to certain conditions.

 

Consider the below element in broadLogRcp, 

 

<element applicableIf="HasPackage('nms:midReceiver')==false" label="Service"
name="service" noDbIndex="true" revIntegrity="neutral" revLink="broadLog"
target="nms:service" type="link">
<join xpath-dst="@id" xpath-src="@service-id"/>
</element>

 

This link will not be established if the midSourcing package is present. 

View solution in original post

1 Reply

Avatar

Correct answer by
Employee

Hi @vani97,

 

The applicableIf clause is generally used when we wanted to restrict the usage of the attribute or element to certain conditions.

 

Consider the below element in broadLogRcp, 

 

<element applicableIf="HasPackage('nms:midReceiver')==false" label="Service"
name="service" noDbIndex="true" revIntegrity="neutral" revLink="broadLog"
target="nms:service" type="link">
<join xpath-dst="@id" xpath-src="@service-id"/>
</element>

 

This link will not be established if the midSourcing package is present.