jquery to populate data

Comments

1 comment

  • Official comment
    Avatar
    AgilePoint NX Support

    Hello Suraj,

    Please use the code below:

    var currentD = new Date();
    var first = new Date(currentD.getFullYear(), currentD.getMonth(), 1);
    var last = new Date(currentD.getFullYear()+1, currentD.getMonth()+1, 0);
    eFormHelper.getField({fieldId : 'SubformDetailInfo/LineEventPeriod'}, function(result){
    if(result.isSuccess){
    var ctrls = result.data;
    $(ctrls).datepicker('option', 'minDate', first);
    $(ctrls).datepicker('option', 'maxDate', last);
    }
    });

     

    Thanks,

    AgilePoint Support

    Comment actions Permalink

Please sign in to leave a comment.