CA Service Management

  • 1.  Mandatory Field for group and not contact

    Posted Apr 16, 2019 06:01 PM

    Within the detail_cnt.htmpl form, is there a way in which we can make the Work Schedule field mandatory when it is group record and not a contact record?

     

    <PDM_MACRO name=dtlLookup hdr="Service Type" attr=service_type extraurl="ADDITIONAL_WHERE=owning_contract IS NULL+KEEP.SVC_CONTRACT_ID=0+KEEP.SVC_CONTRACT_SYM=(empty)">
    <PDM_MACRO name=dtlStartRow>
    <PDM_MACRO name=dtlDropdown hdr="Time Zone" attr=timezone lookup=no>
    <PDM_IF $args.type.id != 2308 >
    <PDM_MACRO name=dtlDropdown hdr="Job Title" attr=position>
    <PDM_MACRO name=dtlDropdown hdr="Data Partition" attr=domain>
    <PDM_MACRO name=dtlDropdown hdr="Access Type" attr=access_type lookup=no>
    <PDM_MACRO name=dtlStartRow>
    </PDM_IF>
    <PDM_MACRO name=dtlDropdown hdr="Work Schedule" attr=schedule>
    <PDM_IF $args.type.id == 2308 >
    <PDM_MACRO name=dtlDropdown hdr="Global Queue" attr=global_queue_id>
    <PDM_ELSE>
    <PDM_MACRO name=dtlCheckbox hdr="Available" attr=available off=No on=Yes>
    <PDM_MACRO name=dtlCheckbox hdr="Confirm Self-Service Save" attr=confirm_save off=No on=Yes>
    <PDM_MACRO name=dtlTextbox hdr="Alias" attr=alias>
    </PDM_IF>
    <PDM_MACRO name=dtlStartRow>
    <PDM_MACRO name=dtlDateReadonly hdr="Last Modified Date" attr="last_mod_dt">
    <PDM_MACRO name=dtlReadonly hdr="Last Modified By" attr="last_mod_by">
    <PDM_IF "$prop.MultiTenancy" != "off" && "$args.type.id" != "2308">
    <PDM_IF "$prop.form_name_3" == "edit">
    <PDM_MACRO name=dtlDropdown hdr="Analyst's Tenant Group" attr=tenant_group lookup=no>
    <PDM_ELIF "$args.type.id" == "2307">
    <PDM_MACRO name=dtlReadonly hdr="Analyst's Tenant Group" attr=tenant_group>

     

    I want to make selection of a work schedule mandatory when creating modifying a group but not when it's a contact.



  • 2.  Re: Mandatory Field for group and not contact
    Best Answer

    Posted Apr 17, 2019 09:25 AM

    Hi Peter,

     

    The answer seems to be right under your nose, based on some of the code lines I see on your sample.

     

    Simply add '<PDM_IF $args.type.id == 2308 >' before the line '<PDM_MACRO name=dtlDropdown hdr="Work Schedule" attr=schedule>' and </PDM_IF> after same line.

     

    So it should look something like:

     

    <PDM_IF $args.type.id == 2308 >
    <PDM_MACRO name=dtlDropdown hdr="Work Schedule" attr=schedule make_required=yes>
    </PDM_IF>

     

    Hope this helps?

     

    ===

    Kind Regards,

    Brian



  • 3.  Re: Mandatory Field for group and not contact

    Posted Apr 23, 2019 04:21 PM

    Awesome, thank you



  • 4.  Re: Mandatory Field for group and not contact

    Broadcom Employee
    Posted Apr 23, 2019 01:45 PM

    gizmo1969 .........

     

    Did the solution provided by Brian_Mathato address your issue?