You need to sign in to do that
Don't have an account?
Lochana Rajput
ui:inputdDate not reflecting date after changing it
Hi,
I am iterating over a list of object and using HTML table. I have used ui:inputDate and it is not displaying the selected date.
In the backend, I am getting the changed date, but on UI still showing the previous date.
The same is happening with ui:inputText.
ui:inputDate working fine if not used with aura:iteration.
I am iterating over a list of object and using HTML table. I have used ui:inputDate and it is not displaying the selected date.
In the backend, I am getting the changed date, but on UI still showing the previous date.
The same is happening with ui:inputText.
ui:inputDate working fine if not used with aura:iteration.
I wanted to use Assessment Date field of contact.
So I changed wrapper class structure by adding separate field for Date as shown below:
Before
public class TPSWrapper
{
@AuraEnabled
public Contact objCon {get; set;}
@AuraEnabled
public String moduleName {get;set;}
public TPSWrapper(Contact objTPS, String moduleName, Date assessmentDate){
this.objTPS = objTPS;
this.moduleName = moduleName;
this.assessmentDate = assessmentDate;
}
}
After:
public class TPSWrapper
{
@AuraEnabled
public Contact objCon {get; set;}
@AuraEnabled
public String moduleName {get;set;}
@AuraEnabled
public Date assessmentDate{get;set;}
public TPSWrapper(Contact objTPS, String moduleName, Date assessmentDate){
this.objTPS = objTPS;
this.moduleName = moduleName;
this.assessmentDate = assessmentDate;
}
}
All Answers
I wanted to use Assessment Date field of contact.
So I changed wrapper class structure by adding separate field for Date as shown below:
Before
public class TPSWrapper
{
@AuraEnabled
public Contact objCon {get; set;}
@AuraEnabled
public String moduleName {get;set;}
public TPSWrapper(Contact objTPS, String moduleName, Date assessmentDate){
this.objTPS = objTPS;
this.moduleName = moduleName;
this.assessmentDate = assessmentDate;
}
}
After:
public class TPSWrapper
{
@AuraEnabled
public Contact objCon {get; set;}
@AuraEnabled
public String moduleName {get;set;}
@AuraEnabled
public Date assessmentDate{get;set;}
public TPSWrapper(Contact objTPS, String moduleName, Date assessmentDate){
this.objTPS = objTPS;
this.moduleName = moduleName;
this.assessmentDate = assessmentDate;
}
}