select
(distributor_code+ '-' +master_dealer_code+ '-' +state_code+ '-' +dealer_code) as agent_code,
agent_type, company,contact_person, status, created_date as date,
(CASE
WHEN contact_mobile_no IS NOT NULL THEN contact_mobile_no
WHEN contact_mobile_no IS NULL and contact_office_no IS NOT NULL THEN contact_office_no
ELSE NULL
END) as contact_no
from sdms_agent
where agent_type ='{?AgentType}' and status ='{?Status}'
order by (distributor_code+ '-' +master_dealer_code+ '-' +state_code+ '-' +dealer_code)
En fait, je veux définir deux paramètres dans le rapport de cristal. où agent_type (principal, répartiteur, concessionnaire principal, concessionnaire) & status (active, unsigned, terminate, suspend).Comment attribuer 2 PARAMETER différents dans le rapport de cristal?
En fait, j'obtiens le paramètre. Mais quand je choisis l'agent_type ou l'état, je ne peux que choisir et visualiser un par un sur le rapport. Exemple: Pour agent_type, je choisis Distributeur, statut que je choisis Actif. Il va sûrement sortir avec le bon rapport pour cela. Mais disons que je veux maintenant voir le distributeur avec tout le statut. Mais ça ne marche pas, même si j'ai essayé de mettre '% e%'. Il ne peut vraiment pas sortir avec le résultat. Je veux une liste qui contient des distributeurs avec un statut différent, ou bien un autre type d'agent avec un statut, ou tout afficher dans le rapport.