Page 1 of 1

Date Picker 2 Plugin

PostPosted: Mon Jan 18, 2016 7:48 am
by luishp
The Date Picker Plugin is waiting for a way to include images files in plugins.
In the meantime, here it is Date Picker 2 Plugin :-)
This plugin adds a simple Date Picker to any Input Object.
Date format could be customized and it is available in three languages (english, spanish and russian).

Sample App:
http://sinlios.com/neoappbuilder/plugins/datepicker2

You can download this free plugin here:
http://sinlios.com/neoappbuilder/plugins/datepicker2/datepicker2.zip

Right now there is only one action in plugin:
slAddDatePicker2 inputId format lang

Re: Date Picker 2 Plugin

PostPosted: Thu Sep 08, 2016 7:28 am
by TinTin
Hi Luis,

Nice plugin, I'm trying to grab the selected data within my text input box - how would one do that?

I've assigned a variable to the input box but it's still not grabbing the date from the picker :-(

Cheers

Re: Date Picker 2 Plugin

PostPosted: Thu Sep 08, 2016 8:41 am
by luishp
You are right TinTin, NeoApBuilder doesn't detect the variable has been changed trough the plugin.
Try to add this code to the page-enter event where you have placed the text field:

Code: Select all
BeginJS
$("#textFieldName").focusout(function(){
  $rootScope.textFieldVariableName=$("#textFieldName").val();
});
EndJS


Where textFieldName is the id property of the text field and textFieldVariableName the variable you have asigned to it
So whenever the text field lost focus the variable value will be updated with its content.

Regards,

Re: Date Picker 2 Plugin

PostPosted: Tue Jan 24, 2017 11:15 am
by gusgusl
Hola Luis, quiero hacerte una consulta
Con respecto al plugin dataPicker tienes algun plugin o posibilidad de agregarle a este que en base a dos fechas seleccionadas calcule la diferencia de dias entre ambas fechas?
Como asi tambien saber que dia de la semana cae una fecha determinada

Si puedes crearlo y tiene algun costo solo dimelo por privadado ya que me interesa eso

Re: Date Picker 2 Plugin

PostPosted: Wed Jan 25, 2017 7:08 am
by anton
gusgusl wrote:Hola Luis, quiero hacerte una consulta
Con respecto al plugin dataPicker tienes algun plugin o posibilidad de agregarle a este que en base a dos fechas seleccionadas calcule la diferencia de dias entre ambas fechas?
Como asi tambien saber que dia de la semana cae una fecha determinada

Si puedes crearlo y tiene algun costo solo dimelo por privadado ya que me interesa eso

Code: Select all
SetVar [date1] "01/10/2017"
SetVar [date2] "01/05/2017"


BeginJS
var date1 = new Date($rootScope.date1);
var date2 = new Date($rootScope.date2);

var diff = date1 - date2;

$rootScope.milliseconds = diff;
$rootScope.seconds = $rootScope.milliseconds / 1000;
$rootScope.minutes = $rootScope.seconds / 60;
$rootScope.hours = $rootScope.minutes / 60;
$rootScope.days = $rootScope.hours / 24;
EndJS

ConsoleLog "days - [days]"
ConsoleLog "hours - [hours]"
ConsoleLog "minutes - [minutes]"
ConsoleLog "seconds - [seconds]"
ConsoleLog "milliseconds - [milliseconds]"