Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Save the time of pressing the button on the form.

Questions related to customising nuBuilder Forte with JavaScript or PHP.
kev1n
nuBuilder Team
Posts: 4305
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Save the time of pressing the button on the form.

Unread post by kev1n »

And the column Type in the DB?
You do not have the required permissions to view the files attached to this post.
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: Save the time of pressing the button on the form.

Unread post by kknm »

kev1n wrote:And the column Type in the DB?
I did not understand where to look in the database
I am working in an edit-form which has many subforms. The main table of this form does not have a field for the time of other minor calk elements (column sums) for the subforms, although there are many of them.
Last edited by kknm on Fri Feb 05, 2021 1:23 pm, edited 1 time in total.
kev1n
nuBuilder Team
Posts: 4305
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Save the time of pressing the button on the form.

Unread post by kev1n »

Select your nuBuilder database, then the table that contains the column ves_vr.
db_1.png
Click on Structure
db_2.png
You do not have the required permissions to view the files attached to this post.
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: Save the time of pressing the button on the form.

Unread post by kknm »

I am working in an edit-form which has many subforms. The main table of this form does not have a field for the time of other minor calk elements (column sums) for the subforms, although there are many of them.
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: Save the time of pressing the button on the form.

Unread post by kknm »

I got it ... Created a field for time in the main table and everything works correctly. It was confusing that the multiple fields in calk are working as expected, even though they are not in the main table.
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: Save the time of pressing the button on the form.

Unread post by kknm »

Was happy early ... with such a function

Function getCurrentTime (a) {
Var d = new Date ();
Var df =
NuPad2 (d.getHours ()) + ':' +
NuPad2 (d.getMinutes ());
$ (a) .val (df) .change;
NuSaveAction ();
}
The time value appears but is not saved when called on the button.
object_3.png
You do not have the required permissions to view the files attached to this post.
kev1n
nuBuilder Team
Posts: 4305
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Save the time of pressing the button on the form.

Unread post by kev1n »

Wrong:

Code: Select all

NuSaveAction (); 
Correct:

Code: Select all

nuSaveAction();
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: Save the time of pressing the button on the form.

Unread post by kknm »

kev1n wrote:Wrong:

Code: Select all

NuSaveAction (); 
Correct:

Code: Select all

nuSaveAction();
Yes, there was a mistake. Now everything is ok
Post Reply