I added some design time properties to my form.
When a button is clicked it does this in the form's JavaScript:
function onAction$PrintForm( oEvent )
{
...
/** @type {JSForm} */
var oForm = forms[controller.getName( )];
var test = oForm.getDesignTimePropertyNames();
...
}
I get this error:
ERROR com.servoy.j2db.util.Debug - TypeError: Cannot find function getDesignTimePropertyNames in object FormScope__20005_Generic$UCDA_UsedBOS_2015[iNumberPayments,dBuyerInsExpiryDate,makeCertNumber,sToS_06Label,nToS_13,sLoeX,sDescribe10,nToS_12,sDescribe11,nToS_11,sDescribe12,nToS_10,nToS_19,sToS_21Label,doToS_28_TotalBalanceDue,nToS_17,nToS_16,nToS_15,nToS_14,getCertTypeValuelistData,gsFormName,sUnitP_StockNumber,incCertIndex,doGetNames,sBuyerInsAgentPhone,nToS_24,getFormNameAndNumber,gaCertColNames,nToS_23,nToS_22,nToS_21,sUnitP_Trim,nToS_20,sOdomKMx,gsFormNumber,nToS_27,nToS_26,nToS_25,sDescribe4,sToS_11Label,splitTradeOdometer,sDescribe5,sDescribe2,sDescribe3,sDescribe1,nLien,dDealDate,sDescribe8,sDescribe9,sDescribe6,sDescribe7,setVarsFromRelations,nToS_01_SellingPrice,sToS_16Label,sCobuyerFML,checkDealCertStatus,dBuyerDLExpiryDate,controller,sToS_04Label,gsParentFormName,doToS_23,doToS_22,doOdometerMIx,doToS_21,doToS_20,sToS_23Label,doToS_27,doToS_26,doToS_25,doToS_24,doBuyerAddress,dFinanceFirstPmtDate,makeDateField,sBusDealAddress,sOdomTradeMIx,iCB8,splitTradeVIN,iCB9,sUnitT1_Model,getTextAlignmentFromStyleClass,addPrintPromptFormRecord,getTemplateRecord,sDepositTypeCredit,sBuyerCity,sUnitT1_Color1,iCB1,iCB2,_formname_,iCB3,iCB4,sToS_13Label,iCB5,sBuyerInsAgent,sUnitT1_Trim,iCB6,iCB7,gsCertStatusMessage,sStateProvince,sToS_27Label,doDepositTypes,prePrintCertificateStuff,dDate1,sBuyerInsPolicyNum,sLifeX,makeAppliedRecord,isFontItalic,refreshRelations,doBusDealAddress,isFontBold,nFinanceRate,sToS_03Label,sSalespersonFLNames,foundset,dDate2,iUnitT1_Year,dDate3,sToS_02Label,sToS_08Label,sUnitT1_Make,doOdometerTradeKMx,isParentElement,onShow,sDisX,sVIN8,sVIN9,sVIN4,nToS_02,sVIN5,sVIN6,openFormDialog,sBusDealPhoneFax,sVIN7,lockTemplate,sVIN1,sVIN2,sToS_12Label,sVIN3,nToS_08,nToS_07,nToS_06,nToS_05,sBuyerDLNumber,nToS_04,nToS_09_SubTotal_1,nToS_03,getFormatForTextField,sUnitP_Color1,unlockTemplate,sLienPayee,sUnitP_Model,getColumnValue,nRVIfWarrInSP,sCiX,sToS_22Label,savePrintPromptFormFields,gbCertIsForLOEOnly,sToS_19Label,doFinancePaymentDisplay,onAction$ClosePrintPromptForm,sToS_05Label,sToS_24Label,sBuyerAddress,sOdomMIx,doToS_01_SellingPrice,sVINTrade2,sVINTrade3,gsParentListName,sVINTrade1,sVINTrade6,nFinancePaymentDisplay,sVINTrade7,sVINTrade4,sVINTrade5,sVINTrade8,sVINTrade9,iCB10,onAction$GenerateJRXML,iCB17,iCB16,iCB15,onAction$PrintForm,doOdometerKMx,iCB14,sToS_17Label,iCB13,sBusMain_DealerNumber,iCB12,iCB11,gbCertIsForAllInsTypes,sDepositTypeCash,sToS_10Label,sToS_07Label,getNewCertNum,sToS_20Label,isFontUnderline,doInsTypeDisCI,sAllNames,elements,sBuyerInsCompany,doToS_18_Subtotal_2,sToS_26Label,sOdomTradeKMx,doNumPmts,splitVIN,doBusDealCityProvPostal,onAction$ClearPrintPromptFields,sToS_14Label,doToS_12,doToS_11,doToS_10,sBuyerFMLorCO,doToS_09_SubTotal_1,doToS_16,doToS_15,doToS_14,doToS_13,iUnitP_Year,doToS_19,sVINTrade10,doToS_17,oScreenVars,sVINTrade12,sVINTrade11,sVINTrade14,sVINTrade13,makeTextField,getFontSizeFromStyleClass,makeCheckbox,sOdometerTrade5,showFormCompleteMsg,sOdometerTrade4,sOdometerTrade3,sOdometerTrade2,sOdometerTrade6,doToS_05,sOdometerTrade1,doToS_04,doToS_03,doToS_02,doToS_08,sDepositTypeCheque,doToS_07,doToS_06,sTax1Number,setChildFormFieldValuelist,sCompanyDBA,sBankName,jsonParseAndFix,sToS_25Label,showBePatientMsg,sDealNumber,doOdometerTradeMIx,doDepositType,doSalespersonFLNames,sVIN14,sVIN13,sVIN12,sVIN11,sCompanyName,makeJasperParamXMLFixVals,sVIN17,sVIN16,sVIN15,sBuyerPhone1,sBusDealCityProvPostal,nToS_18_Subtotal_2,sVIN10,sBuyerPhone2,sVINTrade16,sVINTrade15,sVINTrade17,sUnitP_Make,sOdometer1,setMainScreenVars,sDescribe17,updateDealsCert,sDescribe13,sDescribe14,sDescribe15,sDescribe16,sPostCode,doBankName,doInsTypeLifeLOE,sOdometer5,sToS_15Label,sOdometer4,nToS_28_TotalBalanceDue,postPrintCertificateStuff,sOdometer3,sOdometer2,gaTemplateRowVals,doBusDealPhoneFax,splitOdometer,sOdometer6]. (C:\Users\terry.QUANTECH\git_202006\qfi\qprint\forms\_20005_Generic$UCDA_UsedBOS_2015.js#1398) (Form Context: _20005_Generic$UCDA_UsedBOS_2015), JSEvent(type = action, source = Component: <'svy_1073758004' of parent FormUI for FormController[form: _20005_Generic$UCDA_UsedBOS_2015, fs size:100, selected record: Record[DATA:Row(db:/qfi/t_qprint)[DATA:id=C4SP3367ZYBUX7TNBG0Q,formnumber=20005,fk_companyid=SLZ2UQP2NC1HC36WUOCL,fieldsjson={"sUnitP_Color1":"Red","iNumberPayments":105,"dBuyerInsExpiryDate":{"javaClass":"java.util.Date","time":1704182400000},"sUnitP_Model":"D3","sLienPayee":"Lien Payee","sToS_06Label":"PROTECTION PKGS.","sCiX":"X","nRVIfWarrInSP":0,"nToS_13":null,"sLoeX":"X","sDescribe10":"","nToS_12":12227.17,"nToS_11":86213.43000000001,"sDescribe11":"","nToS_10":2476,"sDescribe12":"","nToS_19":2001,"nToS_17":321.88,"sToS_05Label":"BATTERY LEVY","nToS_16":333,"nToS_15":1343,"nToS_14":666,"sUnitP_StockNumber":"345987","sBuyerInsAgentPhone":"111-222-3333","sBuyerAddress":"44 Long Street, Suite 16","sOdomMIx":"","nToS_24":200,"nToS_23":522.1424000000001,"nToS_22":3218.8,"sUnitP_Trim":"Super","nToS_21":8785.65,"nToS_20":234,"sVINTrade2":"H","sVINTrade3":"G","sOdomKMx":"X","sVINTrade1":"1","sVINTrade6":"4","nFinancePaymentDisplay":1170.44,"sVINTrade7":"1","sVINTrade4":"B","sVINTrade5":"H","nToS_27":12129.69,"nToS_26":111596.07,"sVINTrade8":"J","nToS_25":111596.07,"sVINTrade9":"X","sDescribe4":"","iCB10":0,"sDescribe5":"","sDescribe3":"","sDescribe1":"","nLien":333,"dDealDate":{"javaClass":"java.util.Date","time":1677744000000},"iCB17":0,"iCB16":0,"iCB15":0,"iCB14":0,"sDescribe8":"","sBusMain_DealerNumber":"DN999","iCB13":0,"sDescribe9":"","iCB12":0,"sDescribe6":"","sDescribe7":"","iCB11":0,"sDepositTypeCash":"X","nToS_01_SellingPrice":86281,"sCobuyerFML":"","dBuyerDLExpiryDate":{"javaClass":"java.util.Date","time":1695279600000},"sToS_07Label":"","sToS_04Label":"TIRE LEVY","sAllNames":"Samantha Collins","sBuyerInsCompany":"Carling","dFinanceFirstPmtDate":{"javaClass":"java.util.Date","time":1678950000000},"sBusDealAddress":"123 Long Street","iCB8":0,"sOdomTradeMIx":" ","sUnitT1_Model":"Trade Model","iCB9":0,"sOdomTradeKMx":"X","sToS_14Label":"LICENCE FEE","sDepositTypeCredit":"","sBuyerCity":"Shortville","sUnitT1_Color1":"Magnolia","iUnitP_Year":2023,"iCB1":0,"iCB2":0,"sVINTrade10":"M","iCB3":0,"iCB4":0,"sVINTrade12":"1","sBuyerInsAgent":"Ins Agent","sUnitT1_Trim":"Trade Submodel","sVINTrade11":"N","iCB5":0,"sVINTrade14":"9","iCB6":0,"sVINTrade13":"0","sStateProvince":"SK","sOdometerTrade5":"6","sOdometerTrade4":"6","sOdometerTrade3":"5","sOdometerTrade2":"5","sOdometerTrade6":"6","dDate1":null,"sBuyerInsPolicyNum":"pn 3353","sOdometerTrade1":"","sLifeX":"X","sDepositTypeCheque":"X","sTax1Number":"GST1","sCompanyDBA":"Acme Widgits DBA","sBankName":"Bank of Montreal","nFinanceRate":5.123,"sDealNumber":"1428","sToS_03Label":"DOC. FEE","sSalespersonFLNames":"TERRY KILSHAW","sVIN14":"2","iUnitT1_Year":2018,"dDate2":null,"sToS_02Label":"EXTENDED WARRANTY","sVIN13":"7","dDate3":null,"sVIN12":"0","sVIN11":"C","sCompanyName":"Acme Widgits","sToS_08Label":"","sUnitT1_Make":"Trade Make","sVIN17":"6","sVIN16":"5","sVIN15":"2","sBuyerPhone1":"250-223-3334","sBusDealCityProvPostal":"Kelowna, BC, V3T 24U","nToS_18_Subtotal_2":189793.91000000003,"sVIN10":"C","sBuyerPhone2":"","sVINTrade16":"8","sVINTrade15":"1","sVINTrade17":"6","sUnitP_Make":"Ferrari","sOdometer1":"1","sDisX":"","sDescribe13":"","sVIN8":"A","sVIN9":"5","sDescribe14":"","sDescribe15":"","sPostCode":"V3U 5U8","sDescribe16":"","sVIN4":"F","nToS_02":400,"sVIN5":"R","sVIN6":"7","sVIN7":"Z","sBusDealPhoneFax":"Phone: 1-250-707-0622 Fax: 1-222-333-4444","sVIN1":"S","sVIN2":"C","sVIN3":"B","sToS_15Label":"Other Fees & Taxes","sOdometer5":"5","sOdometer4":"4","nToS_28_TotalBalanceDue":123725.76,"sOdometer3":"3","nToS_08":null,"nToS_07":null,"sOdometer2":"2","nToS_06":1486.21,"sBuyerDLNumber":"DLN333","nToS_05":300,"nToS_09_SubTotal_1":88689.43000000001,"nToS_04":200,"sOdometer6":"6","nToS_03":22.22}, CALCULATIONS: {}]] COLUMS: id,formnumber,fk_companyid,fieldsjson,getChangedData,getDataSource,getException,revertChanges,isEditing,save,getPKs,isNew,hasChangedData,rollbackChanges,isRelatedFoundSetLoaded,getFoundset,deleteRecord,,destroyed:false]>, formName = _20005_Generic$UCDA_UsedBOS_2015, elementName = <no name>, timestamp = 2024-03-15 12:01:25.475,modifiers = 0,x =1112,y = 17,data = null)
at C:\Users\terry.QUANTECH\git_202006\qfi\qprint\forms\_20005_Generic$UCDA_UsedBOS_2015.js:1398 (onAction$PrintForm)
Any idea what is wrong here?
thanks,
Terry