on 06-13-2007 6:22 PM
Hi All,
I am working on SRM 5.0..I have a requirement for the addition of custom field ie. lease termination date field on SRM shopping cart screen and having a calendar help for this date input field.
Has anyone tried to add calendar help for an input date field in the ITS service??What all additions have to be done for this(style,images etc)...Does any one has any idea?Please help.
Thanks & Regards,
K rav.
Hi,
all javascript functions are included in the service BBPGLOBAL. amoung them there's a <b>bbp_ext_win_calendar</b> function.
you must include it in your template
`include (~service="bbpglobal", ~name="BBP_EXT_WIN_CALENDAR.html")`
`BBP_ITS_EXTW_WindowHandling()`
then you can add it as href to your custom field:
<input type=text
id="`ZAPPSSPR_INCL_ITEM_CSF_AVL-ZZSPR_DKK_DATE.name`"
name="`ZAPPSSPR_INCL_ITEM_CSF_AVL-ZZSPR_DKK_DATE.name`"
value="`ZAPPSSPR_INCL_ITEM_CSF_AVL-ZZSPR_DKK_DATE.value`"
onBlur="BBP_ITS_EXTW_CloseCalendar()" maxlength="10" size="10">
<a id="a_ZAPPSSPR_INCL_ITEM_CSF_AVL-ZZSPR_DKK_DATE" name="a_ZAPPSSPR_INCL_ITEM_CSF_AVL-ZZSPR_DKK_DATE"
href="javascript:BBP_ITS_EXTW_OpenCalendarDomRel(window.document.BBPForm.elements['`<b>zappsspr_incl_item_csf_avl-zzspr_dkk_date.name</b>`'], 'a_ZAPPSSPR_INCL_ITEM_CSF_AVL-ZZSPR_DKK_DATE')">
<img src="/sap/public/bc/its/mimes/bbpglobal/99/images/calendar/ico12_calendar.gif" border="0"></a>
in bold there's a name of the field to which you add the calender
Hope this helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
zakhar can you please send me that calendar image that you mentioned in that href link :my email id is: kruparav@gmail.com
IMAGES/CALENDAR/ICO12_CALENDAR.GIF
my email id: kruparav@gmail.com
and should i store these images in mime repository? and do you insert that code it in the standard template itself? My field will appear in shopping cart line item level (CUF field) so what will be the template number?? do you know where exactly in the template do you insert this code?
Thanks,
Krupa
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.