Default value in Detailed Search Criteria Field

Posted by ddubois on 26-Nov-2015 09:04

Is there a way to populate the Attendance Date Search Criteria above in a detailed search section of a page to a specific date?

Posted by Mohammed Siraj on 27-Nov-2015 10:41

David,

We do not have any configuration option that allows user to set default value of fields in 'Detail Search' component.

However, you can write a page script to accomplish the desired behavior. That is, add a script component to the page,

<script>

function onPageLoad() {

 var field = $(fieldSelector); //Eg: $('input[name="opValueDet3"]');

 if (field.length !== 0) {

   field.data('kendoDatePicker').value(new Date(2015, 5, 4));

 }

}

</script>

Next, on Object Definition Page -> Pages -> Records List -> Properties -> Define onload handler as onPageLoad().

All Replies

Posted by Shiva Duriseati on 27-Nov-2015 01:17

Hi David,

Can you please confirm if you want to have existing 'attendance date' values in the detailed search same as the grade values in picklist?

Regards,

Shiva

Posted by ddubois on 27-Nov-2015 07:15

Hi Shiva,

I want to set up a "company wide setting" called "BeginSchoolYearDate" and place it into the Attendance start date field on the detailed search.

Posted by Mohammed Siraj on 27-Nov-2015 10:41

David,

We do not have any configuration option that allows user to set default value of fields in 'Detail Search' component.

However, you can write a page script to accomplish the desired behavior. That is, add a script component to the page,

<script>

function onPageLoad() {

 var field = $(fieldSelector); //Eg: $('input[name="opValueDet3"]');

 if (field.length !== 0) {

   field.data('kendoDatePicker').value(new Date(2015, 5, 4));

 }

}

</script>

Next, on Object Definition Page -> Pages -> Records List -> Properties -> Define onload handler as onPageLoad().

This thread is closed