J
Jaco Leuschner
Hi
I am trying to set the value of a field in the OnSaveRequest event, but the
field's value does not change. Can anyone help me?
I have added the code below.
[InfoPathEventHandler(EventType=InfoPathEventType.OnSaveRequest)]
public void OnSaveRequest(SaveEvent e)
{
string ErrorAttribute = thisXDocument.DOM.selectSingleNode
("/ns1:SingleApplicationForm/System/ErrorsRemainYN").text;
int ErrorsLeft = thisXDocument.Errors.Count;
if(ErrorsLeft > 0)
{
ErrorAttribute = "yes";
}
else
{
ErrorAttribute = "no";
}
e.IsCancelled = e.PerformSaveOperation();
e.ReturnStatus = true;
thisXDocument.SetDirty(false);
}
I am trying to set the value of a field in the OnSaveRequest event, but the
field's value does not change. Can anyone help me?
I have added the code below.
[InfoPathEventHandler(EventType=InfoPathEventType.OnSaveRequest)]
public void OnSaveRequest(SaveEvent e)
{
string ErrorAttribute = thisXDocument.DOM.selectSingleNode
("/ns1:SingleApplicationForm/System/ErrorsRemainYN").text;
int ErrorsLeft = thisXDocument.Errors.Count;
if(ErrorsLeft > 0)
{
ErrorAttribute = "yes";
}
else
{
ErrorAttribute = "no";
}
e.IsCancelled = e.PerformSaveOperation();
e.ReturnStatus = true;
thisXDocument.SetDirty(false);
}