cancel
Showing results for 
Search instead for 
Did you mean: 

alfresco/forms/controls/DateTextBox

soungalo
Champ on-the-rise
Champ on-the-rise
Hi everybody.

I'd like to include a date box in a form via Aikau framework like this :

var date = new Date().toISOString();

var lastDeployedToPROD = {
   name : "alfresco/forms/controls/DateTextBox",
   config : {
      requirementConfig : {
         initialValue : true
      },
      value : date,
      name : "prop_hccm_lastDeployedDateToPROD"
   }
};


I don't know what happen but my page is not displayed.

How can i instantiate a DateTextBox and add it to model ?
thank you .


2 REPLIES 2

ddraper
World-Class Innovator
World-Class Innovator
What version of Aikau are you using? Also, what is the data type of your "prop_hccm_lastDeployedDateToPROD" attribute? e.g. and actual Date() object or an ISO 8601 value? It might be worth raising an issue in GitHub (https://github.com/Alfresco/Aikau/issues) to get this looked at… please provide a sample of the date value that you're trying to use as well?

Also, in terms of general debugging, try setting up your browser developer tools to break on exceptions, this might help you zero in on where the problem is ocurring

Regards,
Dave

muralidharand
Star Contributor
Star Contributor
It looks like there is an error in your code and show be like the below one. You have wrongly placed the [{ in your code.




var lastDeployedToPROD = [
{
   name : "alfresco/forms/controls/DateTextBox",
   config : {
      requirementConfig : {
         initialValue : true
      },
      value : date,
      name : "prop_hccm_lastDeployedDateToPROD"
   }
}
];



I tested this in Alfresco 5.0.1 Enterprise.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.