CA Service Management

  • 1.  Lookup value is not saving on the form

    Posted Sep 01, 2017 09:38 AM

    Hi Team

     

    can you Please help in creating a lookup field in CA service catalog form.

    i created the lookup field on the form and given lookup value

    as ca_fdDoFieldLookup('userid','fb8f912b1e4136a99e09015d897e42e7-77d71501666326309'). 

    but in the form when i click on lookup field window is opening and it is asking for user id and after entering the user id and it is showing the results but after selecting the results the selected value is not populating on the field.

     

    am missing any thing ?

     

    Regards,

    sanntoshi.P



  • 2.  Re: Lookup value is not saving on the form

    Broadcom Employee
    Posted Sep 01, 2017 10:59 AM

    Hi Santoshi,

     

    May be you can try this:

    Use a "text field" and a "Select".

    Set the "Select" to allow multiple selection.

    On your "Select" control, set the report object ID, and in the Report variable attributes, pass it the value of your text field. something like : $({'variableInReportObject':ca_fdGetTextFieldValue(ca_fd.formId,'yourTextField')})
     

    Create a function in your form who does :

    ca_fdFetchSelectData(ca_fd.formId,'yourSelect');

    And call it on the onChange or onBlur event of your "text field".

     

    For more info you can go through the CA documentation on : https://docops.ca.com/ca-service-management/14-1/en/using/service-catalog-management/manage-forms/perform-automated-tasks-in-form-fields/use-javascript-functions-in-fields#UseJavaScriptFunctionsinFields-PopulateFieldsBasedonUserInputtoaReportDataObject

     

    Hope this helps!

     

    Regards,

    Maheshwar



  • 3.  Re: Lookup value is not saving on the form
    Best Answer

    Posted Sep 04, 2017 06:49 AM

    Hi Mahesh,

     

    Thank you for the reply, but I found the solution why it was not working..:)

     

     

     

    Regards,

    santoshi.P