Java Script not saving two variables (date & Time)

bryceh57660644

08-06-2020

I have two pages with the same issue.  I am trying to save date and time in two separate spots. When I test if the data is being captured in the form via an Alert() or debug mode, I am seeing that the values pass through, but they are not being saved

 

In the form:

bryceh57660644_1-1591667743368.png

 

Java Script

bryceh57660644_0-1591667691757.png

 

In the script after the web page:

bryceh57660644_2-1591667850486.png

 

Here are the page variables:

bryceh57660644_3-1591667890453.png

 Data Schema:

bryceh57660644_4-1591667941352.png

 

These variables have worked in the past but I am not sure what I have done to stop them from working.

 

View Entire Topic

Jyoti_Y

MVP

09-06-2020

Hi,

 

There are two points which you can check:

1) Value of variable ID, as you are doing insert or update operation, are you passing id value in your xtk.session.Write. If yes, then please check what is the value generated.

2) Typecast string variables to date and time data type.

 

Thanks.