Date Picker 2 Plugin

Questions, announcements and information regarding PlugIns for NeoAppBuilder

Moderator: Neosoft Support

Locked
User avatar
luishp
Posts: 410
Joined: Wed May 23, 2007 10:17 am
Location: Spain
Contact:

Date Picker 2 Plugin

Post 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/plugin ... icker2.zip

Right now there is only one action in plugin:
slAddDatePicker2 inputId format lang
Luis Hernández - SinLios Soluciones Digitales
http://sinlios.com
TinTin
Posts: 164
Joined: Sun Dec 06, 2009 4:03 am
Location: UK

Re: Date Picker 2 Plugin

Post 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
User avatar
luishp
Posts: 410
Joined: Wed May 23, 2007 10:17 am
Location: Spain
Contact:

Re: Date Picker 2 Plugin

Post 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,
Luis Hernández - SinLios Soluciones Digitales
http://sinlios.com
gusgusl
Posts: 263
Joined: Fri Mar 12, 2010 12:44 pm

Re: Date Picker 2 Plugin

Post 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
User avatar
anton
Posts: 64
Joined: Fri Oct 19, 2012 9:21 pm

Re: Date Picker 2 Plugin

Post 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]"
Locked