03-07-2018 07:00 AM
When the <sp-date-picker> element loads, changes, anything... I keep getting this error.
I'm in Kingston, Patch 2.
Wherever I'm using this date picker, I can't capture any dates.
Solved! Go to Solution.
03-07-2018 10:45 AM
Figured it out.
In the <sp-date-picker>, you NEED a field attribute, and it should (must?) be the same as your ng-model.
Once this is done, bam... no more errors and the date picker works fine.
Not sure when they added the necessity for a "field" attribute in the <sp-date-picker> directive, but alas you do!
03-07-2018 10:31 AM
03-07-2018 10:46 AM
In the client controller, can you add this inside the main function. I referred the Request Extension widget.
$scope.TEST = {
displayValue: '',
value: '',
name: ''
};
03-07-2018 10:45 AM
Figured it out.
In the <sp-date-picker>, you NEED a field attribute, and it should (must?) be the same as your ng-model.
Once this is done, bam... no more errors and the date picker works fine.
Not sure when they added the necessity for a "field" attribute in the <sp-date-picker> directive, but alas you do!
03-20-2018 09:20 AM
For some reason, this did not work for me. The above logic worked fine for me..
here is my code:
HTML:
<sp-date-picker field="TEST" ng-model="c.data.startdate" sn-change=""></sp-date-picker>
Client Script:
$scope.TEST = {
displayValue: '',
value: '',
name: ''
};