listEditField function is not showing date field as lookup

book

Article ID: 6651

calendar_today

Updated On:

Products

SUPPORT AUTOMATION- SERVER CA Service Desk Manager - Unified Self Service KNOWLEDGE TOOLS CA Service Management - Asset Portfolio Management CA Service Management - Service Desk Manager

Issue/Introduction

How to enable 'Call Back Date' field to show as a lookup under Edit in List funcitonality

Cause

Missing additional code in HTMPL pages for this to function correctly i.e. missing in Search filter list and list parameters 

Environment

CA Service Desk Manager R14.1CA Service Desk Manager R12.9

Resolution

To add the Call Back Date field as part of customization's under CR object please follow below steps to achieve the lookup for listEditField.

Note: Adding the code just to listEditField section will not get us the desired results as this requires additional supporting code for this to work appropriately. Need some expertise for some level of customization to understand this code.

For example if you are referring to CR object(Request), add the below code in list_cr.htmpl

1. <PDM_MACRO name=sfDate hdr="DDR" attr=call_back_date qbe_condition=GE> 

--> This code has to be added for the search filter list 

2. <PDM_MACRO name=lsCol hdr="DDR" attr=call_back_date>

--> This code has to be added to show you the parameter list 

3. listEditField("call_back_date", "DDR");

--> This code has to be added to show you the lookup field under EditinList parameters