Forum Discussion
This might be because the dateStr1 property may be empty string. Can you try below code.
for (int i = 0; i < this.getItemCount(); i++)
{
Item thisItem = this.getItemByIndex(i);
string dateStr1 = thisItem.getProperty("_calibrated_next","");
if(!string.IsNullOrEmpty(dateStr1))
{
DateTime date1 = DateTime.Parse(dateStr1, CultureInfo.InvariantCulture);
}
}
Thanks
Gopikrishnan R
Hi, thanks for your response, It seems you are correct, the string is empty., however the _calibrated_next value is displayed in the grid and item itself.
So it definitely should be getting a value.
- Gopikrishnan5 years agoIdeator I
Hi
1. Check whether the property name is correct.
2. Is this _calibrated_next is property in item type or on the form ?
3. Debug the method and check the values
Thank You
Gopikrishnan R
- RaptureLazarus5 years agoIdeator I
So, strange enough, we had to restart the server machine and it worked flawlessly after that.
Anyway, thanks for your help once again.