Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8944

Updated MX_VALIDTO not saving at Database in Expected format

$
0
0

Hi Experts,

 

We have a requirement that Validity end date for external users, be set upon pre-determined condition.  The UI (Task) has MX_VALIDTO in Editable format. In the workflow below the Task, Job is written to modify the validity end date via JScript.

 

We are facing error whenever the day or month has a zero in it. ie., 1st March which should be stored as '2015-03-01' is getting stored in Database as '2015-3-1' even though the debug line shows the returing Output as '2015-03-01'.

 

We have tried returning the value as String and as a Date Object, but it isn't working. The value is still getting stored without zero.

 

Somewhere after the data is returned by the script and before being stored in Database, the error happens. Believe we are missing something here.

 

Please find below the screenshots of the JScript and the Log.

 

Your support is highly appreciated.

 

Regards,

Ganesh S


Viewing all articles
Browse latest Browse all 8944

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>