The following has been added to detail_in form in order to prevent users from picking a service here. While this does work, it lets users use the Clear Filter button to bypass this and actually select an Service.
<PDM_MACRO name=dtlLookup hdr="Configuration Item (c)" attr=affected_resource extraURL="ADDITIONAL_WHERE=(class.type <> 'Service')">
Is there a way to enforce this similarly to how the Affected Service field was setup:
<PDM_MACRO name=dtlLookup hdr="Affected Service (c)" attr="affected_service" evt="onBlur='calculateImpact()'" extraURL="KEEP.service_only=1">
This hardcodes "Enterprise Service" in the Family field and makes it read only, so a Clear Filter will not remove that setting. Is there something that can be passed which will not allow Enterprise Services to be selected?
Release: 17.3 and higher
Component: CA Service Desk Manager
Additional information on setting up a data partition is available in the product documentation on Data Partitions
Call_Req attribute affected_resource is a reference to the nr object, which has the attribute of "family", which in turn references the ca_resource_family table
Running the following command in the SDM server, Admin command prompt:
>pdm_extract -f "select id, name from ca_resource_family where id = 602"
TABLE ca_resource_family
id name
{ "602" ,"Service" }
ca_resource_family
rows:1
We see the id value of "602" for the "Service" family. The data partition effectively allows the creation of an entry in the Call_Req table as long as the affected_resource.family is NOT a Service, or in this case, affected_resource.family != 602