AGHelper. Datepicker code?

This sub-forum is for discussing all topics related to AppGini Helper JavaScript Library, provided by bizzworxx as a third-party AppGini plugin.
Post Reply
User avatar
onoehring
AppGini Super Hero
AppGini Super Hero
Posts:1464
Joined: 2019-05-21 22:42
Location: Germany
Contact:

AGHelper. Datepicker code?

Post by onoehring » 2026-01-20 10:44

Hi Jan,

what is the code for using the date picker - am I missing something on
https://www.appgini.de/docs/Javascript- ... icker.html

I like the screenshot where even in DV only the date is shown - not the time
Olaf

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts:2027
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: AGHelper. Datepicker code?

Post by jsetzer » 2026-01-20 11:40

Should work like this for one DateTime field:

Code: Select all

// file: hooks/TABLENAME-dv.js
AppGiniHelper.getField("FIELDNAME").toDatepicker("de")
or for date-range (two DateTime fields):

Code: Select all

// file: hooks/tasks-dv.js
AppGiniHelper.dv.getFields(["from_date", "to_date"]).toDatepicker("Valid from/to");
https://www.appgini.de/docs/Javascript- ... icker.html
https://www.appgini.de/docs/Javascript- ... icker.html

Note that BigProf may have changed date(time)picker control layout recently. I've seen flex-layout in a few controls like lookup and date
Kind regards,
Jan <js />

AppGini 26.12 + all AppGini Helper tools

My Side Project
www.office-app.com | Coding Sample | Changelog | Blog | Top 20 Features
Integrated Statemachine Workflow • KANBAN • Audit Trail • Integrated API • Model Driven • Field-Level permission • Modern UI

My Company Website
www.bizzworxx.de

My AppGini Blog
appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability Image

User avatar
onoehring
AppGini Super Hero
AppGini Super Hero
Posts:1464
Joined: 2019-05-21 22:42
Location: Germany
Contact:

Re: AGHelper. Datepicker code?

Post by onoehring » 2026-01-20 12:28

Hi Jan,

thanks.
The datetime is really necessary. The current look of date fields is still ugly, the picker for time not nice either.
However, the current time picker (for datetime) is MUCH better. However, it always shows up like the image shows for datetime fields (even when I need only date). In my picture for example just a datepicker would be the better solution.
Thus, it may be worth it suggesting to use this as datetime, date and time picker - and have an option in AG what to show (as there may be cases only the date is needed, but the user actually wants datetime sometimes.
dtpick.png
dtpick.png (13.46 KiB) Viewed 4897 times
Olaf

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts:2027
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: AGHelper. Datepicker code?

Post by jsetzer » 2026-01-20 12:45

I agree and I think you should address this to BigProf directly.
This should be in core product, I think. The same for working numeric Inputs with locale format (Intl).

I am building my own custom input controls in each project but would love to see them in core.
Kind regards,
Jan <js />

AppGini 26.12 + all AppGini Helper tools

My Side Project
www.office-app.com | Coding Sample | Changelog | Blog | Top 20 Features
Integrated Statemachine Workflow • KANBAN • Audit Trail • Integrated API • Model Driven • Field-Level permission • Modern UI

My Company Website
www.bizzworxx.de

My AppGini Blog
appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability Image

Post Reply