This is my very first post, so please excuse me if im not clear with my message.
Well here is my question. If you can see the code below, what im trying to do is change the oldvalue to newvalue. but when i check my debug all i can see is "" to "NewValue". Not sure sure why system stores blank value instead of old value. Can someone guide me in this process please. Im new to InfoPath and coding. Thanks
public
void ActionAssigneeFormatted_Changed(object sender, XmlEventArgs e)
{
if (e.OldValue != e.NewValue && !string.IsNullOrEmpty(e.NewValue))
{
WriteToDebug(string.Format("Changing assignee from '{0}' to '{1}'", e.OldValue, e.NewValue));
XPathNavigator action = e.Site.CreateNavigator();
action.MoveToParent();
XPathNavigator actionAssigneeChanged = action.SelectSingleNode("my:ActionAssigneeChanged", NamespaceManager);
if (actionAssigneeChanged != null)
{
actionAssigneeChanged.SetValue(
"1");
WriteToDebug(
"Assignee Changed");
}
}
}