View Filter

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
MatteoAllix
User
Posts: 117

View Filter

Post by MatteoAllix »

Hello,

I created a custom view with this SQL:
SELECT
A.Codice AS "Sede",
COUNT (AP.DataChiamata) AS "Nr Chiamate Effettuate",
COUNT (AP.DataAppuntamento) AS "Appuntamenti",
COUNT (AP.RagioneSociale) AS "Sottoscrizioni",
COUNT (AP.NumeroRichieste) AS "Richieste Sottoscritte",
case when (COUNT(AP.RagioneSociale)>= (COUNT(AP.DataAppuntamento)30/100)) then (COUNT (AP.DataAppuntamento)35) else (COUNT (AP.DataAppuntamento)25) end as "Corrispettivo Appuntamenti",
COUNT (AP.NumeroRichieste)
75 AS "Corrispettivo Sottoscrizioni"
FROM Appuntamenti
AP INNER JOIN Ascom A ON A.IDAscom = AP.IDAscom
GROUP BY A.Codice

I should insert a filter for AP.DataAppuntamento, that is:

WHERE AP.DataAppuntamento BETWEEN DataDa AND DataA

How can I make the user choose the DataDa and DataA fields?


motfs
User
Posts: 258

Post by motfs »

Enable the option "Require search criteria" (click Table -> Require search criteria). Read Table Setup -> List -> Require search criteria in help file for more detail.


Post Reply