Avatar

Correct answer by
Level 10

Hi Ellis,

Sorry, misread the requirement.  If the date needs to be copied across regardless then you can remove the if statement altogether.

var dateField = contextItem.parent.resolveNode('#field.[ui.oneOfChild.className == "dateTimeEdit"]');

dateField.rawValue = ImpactsSubForm.DateTimeField1.rawValue;

This version also handles the date fields having different names (referencing it by the ui elements child element class name ... just don't add another date field to the row)

Here's another link https://sites.google.com/site/livecycledesignercookbooks/BIA%20Impacts%20Table.date.1.pdf?attredirec...

Regards

Bruce

View solution in original post