L
littleccguy
First let me point out I am not a programmer but understand the basics
OOP and OOD. I am working with InfoPath 2007 in 2003 compatibility
mode using C#.
I have a table I "receive" data from call EMPLOYEES_ACTIVE. The two
main fields are EMPL_ID and LAST_FIRST_NAME.
I have 2 text boxes on the form. The first box the user types in an
employee id and I want the second to fill in the name.
I am pretty sure I need to use the onafterchange method, but I don't
know what to do with it.
Maybe I should be doing something completely different.
[InfoPathEventHandler(MatchPath = "/dfs:myFields/dfs:dataFields/
d:EMPLOYEES_ACTIVE/@EMPL_ID", EventType =
InfoPathEventType.OnAfterChange, DataObject = "EMPLOYEES_ACTIVE")]
public void
EMPLOYEES_ACTIVE__EMPL_ID_attr_OnAfterChange(DataDOMEvent e)
{
// Write your code here to restore the global state.
if (e.IsUndoRedo)
{
// An undo or redo operation has occurred and the DOM
is read-only.
return;
}
// A field change has occurred and the DOM is writable.
// Write your code here.
}
OOP and OOD. I am working with InfoPath 2007 in 2003 compatibility
mode using C#.
I have a table I "receive" data from call EMPLOYEES_ACTIVE. The two
main fields are EMPL_ID and LAST_FIRST_NAME.
I have 2 text boxes on the form. The first box the user types in an
employee id and I want the second to fill in the name.
I am pretty sure I need to use the onafterchange method, but I don't
know what to do with it.
Maybe I should be doing something completely different.
[InfoPathEventHandler(MatchPath = "/dfs:myFields/dfs:dataFields/
d:EMPLOYEES_ACTIVE/@EMPL_ID", EventType =
InfoPathEventType.OnAfterChange, DataObject = "EMPLOYEES_ACTIVE")]
public void
EMPLOYEES_ACTIVE__EMPL_ID_attr_OnAfterChange(DataDOMEvent e)
{
// Write your code here to restore the global state.
if (e.IsUndoRedo)
{
// An undo or redo operation has occurred and the DOM
is read-only.
return;
}
// A field change has occurred and the DOM is writable.
// Write your code here.
}