CA Service Management

Expand all | Collapse all

Quick profile impose conditional search on configuration item field

  • 1.  Quick profile impose conditional search on configuration item field

    Posted 09-18-2018 10:22 AM

    Hi All,

     

    I want to impose condition(class.zcr_flag=1) on configuration item search field in quick profile (scratchpad.htmpl) page.

     

    so that when user click/search on lookup field of configuration item they only see the CI whose class.zcr_flag=1.

     

    can any one help how to impose this condition in scratchpad.htmpl

     

    below is the configuration item field code from scratchpad.htmpl.

    can any one help how to impose the condition (class.zcr_flag=1) on configuraiton item field of quick profile (scratchpad.htmpl) page

     

     <!-- configuration item field -->
                        <TD>
                            <INPUT ID=pbfld107 NAME=KEY.affected_resource SIZE=20
                                   ="document.scrpadForm['SET.affected_resource'].value='';pb_select_asset();"
                                   ="this.className='focusField'" ="this.className=''">
                            <INPUT TYPE=hidden ID=pbfld107_persid NAME='SET.affected_resource'>
                            <SCRIPT LANGUAGE="JavaScript">
                                populate_autosuggest_array("nr", "affected_resource", "name", "", false, "QBE.IN.name", "pbfld107");
                            </SCRIPT>
                        </TD>

     

     

    can any one help on this please



  • 2.  Re: Quick profile impose conditional search on configuration item field

    Posted 09-24-2018 10:45 AM

    Hi.

    Sorry, but I wasn't able to test this on my own. So, just give it a try:

    instead of

    populate_autosuggest_array("nr", "affected_resource", "name", "", false, "QBE.IN.name", "pbfld107");

    use

    populate_autosuggest_array("nr", "affected_resource", "name", "QBE.EQ.class.zcr_flag=1", false, "QBE.IN.name", "pbfld107");

    Regards

    .............Michael