BUG: Items in a drop-down list control are unexpectedly removed in InfoPath 2003 Service Pack 1 (888701)
The information in this article applies to:
- Microsoft Office InfoPath 2003, Service Pack 1 (SP1)
SYMPTOMSWhen you click an item in a drop-down list control, and then you reopen the
drop-down list control, you notice that all items in the drop-down list control are unexpectedly removed, except the last item.
This problem occurs in Microsoft Office InfoPath 2003 Service Pack 1 (SP1).CAUSEThe view does not update when the value of the drop-down list changes.WORKAROUNDTo work around this problem, force the view to update when the drop-down list control changes. To force the view to update,
follow these steps: - Start InfoPath.
- Open the form.
The drop-down list control should be in Design mode. - Right-click the drop-down list control, and then click Drop-Down List Box Properties.
- In the Drop-Down List Box Properties dialog box, click Data Validation on the Data tab.
- In the Data Validation dialog box, click OnAfterChange in the Event drop-down list.
- In the Microsoft Script Editor window, click Edit. Put the following code example in the OnAfterChange event handler.
XDocument.View.ForceUpdate(); - The event handler function will look as follows.
function msoxd__choices__MyChoice::OnAfterChange(eventObj)
{
XDocument.View.ForceUpdate();
} - On the File menu, click Save, and then close the Microsoft Script Editor window.
- Click OK two times.
STATUS Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.
Modification Type: | Minor | Last Reviewed: | 7/28/2006 |
---|
Keywords: | kbProgramming kbXML kbtshoot kbbug KB888701 kbAudDeveloper kbAudITPRO |
---|
|