WSD RECURRING RESERVATION LOGIC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-07-2024 11:30 AM
The current logic:-
if we check the Recurring as TRUE
while selecting the dates we can select maximum number of days given in the reservable module.
My requirement:-
There is a custom field created called "MAX DAYS IN FUTURE" which is present in table "sn_wsd_core_building" so that dates should shown based on count given in that custom field
for example:-if the count given in the field is 7 then there should be a possibility to select only 7 days from today remaining dates should be non editable
Can anyone please help me to achieve this??
And which part of code the current logic is working??

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-15-2024 03:10 PM - edited ‎08-15-2024 03:10 PM
Hi @pbhargavi
You may need to customise the angular ng-template (wsdSearchFilterTemplate) which is available in related list of WSD Search widget, but it is highly not recommended to do so.
If you would like to test here is the code where you need to "add your logic". The below code is out of the box.
<div class="col-pad col-md-4"
ng-if="selectedReservationPath.value=='browse_near_a_person' && nearbyUser.value && renderUserRsvDatePicker">
<label for="user-rsv-date-picker"
class="text-overflow-ellipsis search-label"
aria-label="${Required - Select one of their reservation dates}"
title="${Select one of their reservation dates}">
<strong><span ng-class="!userReservationDate ? 'mandatory' : 'mandatory-filled'">*</span></strong> ${Select one of their reservation dates}
<i class="fa fa-question-circle" data-toggle="tooltip" data-placement="top" tabindex="0"
aria-label="${Don't see a date that works? You can always make a new reservation and invite the coworker to join you.}"
title="${Don't see a date that works? You can always make a new reservation and invite the coworker to join you.}"></i>
</label>
<div class="user-rsv-date-picker" ng-class="{'is-invalid': hasSearched && !userReservationDate}">
<div id="user-rsv-date-picker"
select2
placeholder="${Select a date}"
select2-options="userRsvDatePickerSelect2Options"
ng-model="$parent.userReservationDate"
class="view-dropdown"
ng-change="onSelectedDateChange()">
</div>
Hope it helps.