QueryType Property
The type of search to perform.
Syntax
objsearch.getQueryType([callback]) objsearch.setQueryType( queryType, [callback])
Possible Values
0 (qtNone), 1 (qtVendorSearch), 2 (qtEmployeeSearch), 3 (qtBillSearch), 4 (qtInvoiceSearch), 5 (qtCreditMemoSearch), 6 (qtVendorCreditSearch), 7 (qtSalesReceiptSearch), 8 (qtPurchaseOrderSearch), 9 (qtCheckSearch), 10 (qtCCCreditSearch), 11 (qtCCChargeSearch), 12 (qtCustomerSearch), 13 (qtEstimateSearch), 14 (qtSalesOrderSearch), 15 (qtTimeTrackingSearch), 16 (qtReceivePaymentSearch), 17 (qtJournalEntrySearch), 18 (qtItemSearch), 19 (qtAccountSearch), 20 (qtDepositSearch), 21 (qtInventoryAdjustmentSearch), 22 (qtPriceLevelSearch), 23 (qtClass), 24 (qtCustomerType), 25 (qtJobType), 26 (qtPaymentMethod), 27 (qtPayrollItemWage), 28 (qtSalesTaxCode), 29 (qtShipMethod), 30 (qtSalesRep), 31 (qtVendorType), 32 (qtBillToPayQuery), 33 (qtItemAssembliesCanBuildQuery), 34 (qtListDeletedQuery), 35 (qtPreferencesQuery), 36 (qtReceivePaymentToDepositQuery), 37 (qtSalesTaxPaymentCheckQuery), 38 (qtTxnDeletedQuery), 39 (qtItemReceiptQuery), 40 (qtBillPaymentCheckQuery), 41 (qtBillPaymentChargeQuery), 42 (qtStatementChargeQuery), 43 (qtMileageQuery), 100 (qtOtherTransactionSearch), 101 (qtOtherListSearch)
Default Value
0
Callback
The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).
The callback for the getQueryType([callback]) method is defined as:
function(err, data){ }
'err' is the error that occurred. If there was no error, then 'err' is 'null'.
'data' is the value returned by the method.
The callback for the setQueryType([callback]) method is defined as:
function(err){ }
'err' is the error that occurred. If there was no error, then 'err' is 'null'.
'err' has 2 properties which hold detailed information:
err.code err.message
Remarks
The type of search to perform.
The following values are permitted:
qtNone | 0 |
qtVendorSearch | 1 |
qtEmployeeSearch | 2 |
qtBillSearch | 3 |
qtInvoiceSearch | 4 |
qtCreditMemoSearch | 5 |
qtVendorCreditSearch | 6 |
qtSalesReceiptSearch | 7 |
qtPurchaseOrderSearch | 8 |
qtCheckSearch | 9 |
qtCCCreditSearch | 10 |
qtCCChargeSearch | 11 |
qtCustomerSearch | 12 |
qtEstimateSearch | 13 |
qtSalesOrderSearch | 14 |
qtTimeTrackingSearch | 15 |
qtReceivePaymentSearch | 16 |
qtJournalEntrySearch | 17 |
qtItemSearch | 18 |
qtAccountSearch | 19 |
qtDepositSearch | 20 |
qtInventoryAdjustmentSearch | 21 |
qtPriceLevelSearch | 22 |
qtClass | 23 |
qtCustomerType | 24 |
qtJobType | 25 |
qtPaymentMethod | 26 |
qtPayrollItemWage | 27 |
qtSalesTaxCode | 28 |
qtShipMethod | 29 |
qtSalesRep | 30 |
qtVendorType | 31 |
qtBillToPayQuery | 32 |
qtItemAssembliesCanBuildQuery | 33 |
qtListDeletedQuery | 34 |
qtPreferencesQuery | 35 |
qtReceivePaymentToDepositQuery | 36 |
qtSalesTaxPaymentCheckQuery | 37 |
qtTxnDeletedQuery | 38 |
qtItemReceiptQuery | 39 |
qtBillPaymentCheckQuery | 40 |
qtBillPaymentChargeQuery | 41 |
qtOtherTransactionSearch | 100 |
qtOtherListSearch | 101 |
This property is required.
Data Type
Integer