Can anyone help me? What makes the Function not a function? I keep getting the message...
DocumentList.SetDocListBoxEntries is not a function
1:XFA:form1[0]:MainSubform[0]:SelectionSubform[0]:TopicsDropDown[0]:change
DocumentList.SetDocListBoxEntries is not a function
1:XFA:form1[0]:MainSubform[0]:SelectionSubform[0]:TopicsDropDown[0]:change
in the JavaScript Debugger when I preview the form. The script is below in its entirety. HELP!?! Please?
----- form1.MainSubform.SelectionSubform.#variables[0].DocumentList::DocumentList - (JavaScript, client)
var oDocumentsList = {
800-849 General: [["800 Unit Overview"], ["801 "], ["802 "], ["803 "], ["804 "], ["805 "], ["806 "], ["807 "], ["808 "]],
850-874 Screens: [["850 "], ["851 "], ["852 "]],
875-929 Confirmations: [["875 "], ["876 "], ["877 "], ["885 "], ["886 "], ["887 "]],
930-939 Radiometer: [["930 "], ["931 "], ["932 "]],
940-949 FAA: [["940 "], ["941 "]],
950-954 GC-Headspace: [["950 "], ["951 "]],
955-964 Collections Unit: [["955 "], ["956 "], ["957 "]],
965-999 Miscellaneous: [["965 "], ["966 "], ["967 "], ["968 "], ["969 "], ["970 "], ["971 "], ["972 "], ["973 "], ["974 "]]
};
new Function (SetDocListBoxEntries( )
{
DocListBox.clearItems( );
DocListBox.rawValue = null;
var aDocs = oDocumentsList[xfa.event.change];
if(aDocs && aDocs.length)
{
for(var i=0;i
From LiveCycle Designer's "Scripting Reference":
"For example, create a script object called feedback that contains the following function:
function emptyCheck(oField) {
if ((oField.rawValue == null) || (oField.rawValue == "")) {
xfa.host.messageBox("You must input a value for this field.", "Error Message", 3);
}
}"
Note there is no "new" and both FormCalc and JavaScript are case sensitive.
George Kaiser