on 09-26-2023 6:38 AM
Hello Experts,
What's the issue with below CAPM - Query, i am not getting the count of records.
var sparePartInvoiceCount = await SELECT.one.from ('COM_ABC_INVOICE').columns('count(*) as TotalCount').where({INV_TYPE:'Spare Part Invoice'})I just checked your statement against a table I have and it works fine. You probably have to provide more details to determine why the result is empty...
One idea though. If you have a namespace in the data model called com.abc and Invoice is your entity name. Try changing your string in the from clause to 'com.abc.Invoice' the conversion to _ is done in the framework.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
75 | |
10 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.