InvokeTimeLookup
You can review the details invokeTimeLookup JavaScript function. This JavaScript function invokes the time lookup.
Description
The invokeTimeLookup function assumes that the previous object to the one passed (in the DOM hierarchy of the HTML) is the one that must be populated with the date selected in the lookup.
Syntax
invokeTimeLookup(obj)
Input parameters
obj - handle to the image object that was clicked to invoke the calendar.
Output parameters
None.
Example
This example shows how the time lookup is used in a date and time search criteria field.
<tr>
<td nowrap="true">
<input class="dateinput" type="text"
<%=getTextOptions("xml:/Shipment/@FromExpectedShipmentDate_YFCDATE")%>/>
<img class="lookupicon" name="search" onclick="invokeCalendar(this);
return false"
<%=getImageOptions(YFSUIBackendConsts.DATE_LOOKUP_ICON, "Calendar") %> />
<input class="dateinput" type="text"
<%=getTextOptions("xml:/Shipment/@FromExpectedShipmentDate_YFCTIME")%>/>
<img class="lookupicon" name="search"
onclick="invokeTimeLookup(this);return false"
<%=getImageOptions(YFSUIBackendConsts.TIME_LOOKUP_ICON,"Time_Lookup") %> />
<yfc:i18n>To</yfc:i18n>
</td>
</tr>
<tr>
<td>
<input class="dateinput" type="text"
<%=getTextOptions("xml:/Shipment/@ToExpectedShipmentDate_YFCDATE")%>/>
<img class="lookupicon" name="search" onclick="invokeCalendar(this);
return false"
<%=getImageOptions(YFSUIBackendConsts.DATE_LOOKUP_ICON, "Calendar") %> />
<input class="dateinput" type="text"
<%=getTextOptions("xml:/Shipment/@ToExpectedShipmentDate_YFCTIME")%>/>
<img class="lookupicon" name="search"
onclick="invokeTimeLookup(this);return false"
<%=getImageOptions(YFSUIBackendConsts.TIME_LOOKUP_ICON,
"Time_Lookup") %>/>
</td>
</tr>