Source language: Translate to:

Date Picker 2 Plugin

Questions, announcements and information regarding PlugIns for NeoAppBuilder

Moderator: Neosoft Support

Date Picker 2 Plugin

Postby luishp » Mon Jan 18, 2016 7:48 am

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
Luis Hernández - SinLios Soluciones Digitales
http://sinlios.com
User avatar
luishp
 
Posts: 357
Joined: Wed May 23, 2007 10:17 am
Location: Spain

Re: Date Picker 2 Plugin

Postby TinTin » Thu Sep 08, 2016 7:28 am

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
TinTin
 
Posts: 162
Joined: Sun Dec 06, 2009 4:03 am
Location: UK

Re: Date Picker 2 Plugin

Postby luishp » Thu Sep 08, 2016 8:41 am

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

Re: Date Picker 2 Plugin

Postby gusgusl » Tue Jan 24, 2017 11:15 am

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
gusgusl
 
Posts: 254
Joined: Fri Mar 12, 2010 12:44 pm

Re: Date Picker 2 Plugin

Postby anton » Wed Jan 25, 2017 7:08 am

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


Return to NeoAppBuilder PlugIns

Who is online

Users browsing this forum: No registered users and 2 guests