CA Service Management

Expand all | Collapse all

Query in using Lookup button

  • 1.  Query in using Lookup button

    Posted 10-23-2015 08:42 AM

    Hi Team,

     

    In CA Service Catalog 12.7 form designer, I use Look up button field for the user to populate values and I have report data query based on the value to auto populate some other fields.

     

    But sometimes user enter values directly in the lookup field without clicking on the look up button and it affects the auto population of dependent fields.

     

    So do we have any way to stop entering the value directly in the field without clicking on the look up button?

     

    Thanks,

    Hemalatha S



  • 2.  Re: Query in using Lookup button

    Posted 10-27-2015 05:45 PM

    Hi Hemalatha!

     

    Unfortunately it is not possible to disable the input section of a lookup field. However you could include some validation to ensure the field is defined as expected or you could implement your own lookup functionality similar to what was mentioned in the following thread:

     

    Multiselect with fdDoFieldLookup

     

    Thanks,

    Jason



  • 3.  Re: Query in using Lookup button

    Broadcom Employee
    Posted 10-29-2015 11:25 AM

    Hi Hemalatha S.

     

    In the parameter named 'value', you could enter a 'warning text'.
    Like e.g. 'Do not enter text here. Click spyglass in stead.'.

     

    Or you could decide to add some kind of 'java script functionality' in the parameter named 'onFocus'.

     

    Kind regards, Louis.



  • 4.  Re: Query in using Lookup button

    Posted 11-03-2015 05:14 PM

    The way I handle it is to call a function in the "onValidate" (e.g. ca_fd.js.ValUserID(_val) to make sure the value is valid whether they used the lookup or typed it in. In the function I use the ca_reportQuery to call a report object.