Bonjourn
J'ai créé un état avec un ensemble de sous états. Le but étant de créer une liasse d'états pour pourvoir les imprimer d'un seul coup avec des paramètres en entrée.
Le problème est le rafraichissement de ces sous états.
Losque j'ouvre l'état principal, je constate que les sous états modifiés auparavant , n'affichent rien comme données, j'ai juste le format qui m'apparait.
Cause : la requête SQL du sous état a été modifiée ... crystal rajoute à la requête son dernier filtre et le compare avec les paramètres de l'état principal ( à savoir : Prono, Année, Periode et Langue) ...
ex: requête SQL avant modification du sous état
{CRY_SALES.Code_Etat} = "4007" and
{CRY_SALES.FiscalYear} = tonumber({?Annee}) and
{CRY_SALES.Code_Langue} = {?Langue} and
{CRY_SALES.ProductCategory} = "Ore" and
{CRY_SALES.FiscalMonth} <= tonumber({?Période}) and
{CRY_SALES.Scenario} in ["PF", " RE"] and
not ({CRY_SALES.ProductFamily} in ["BIOG", "FUME", "SLAG"]) and
{CRY_SALES.InitInvoicedNb} = 0
requête SQL après ouverture et rafraichissement de l'état principal :
{CRY_SALES.Code_Etat} = "4007" and
{CRY_SALES.FiscalYear} = tonumber({?Annee}) and
{CRY_SALES.Code_Langue} = {?Langue} and
{CRY_SALES.ProductCategory} = "Ore" and
{CRY_SALES.FiscalMonth} <= tonumber({?Période}) and
{CRY_SALES.Scenario} in ["PF", " RE"] and
not ({CRY_SALES.ProductFamily} in ["BIOG", "FUME", "SLAG"]) and
({CRY_SALES.Code_Etat} = {?Période}) and
({CRY_SALES.Code_Etat} = {?Annee}) and
({CRY_SALES.Code_Etat} = {?Prono}) and
({CRY_SALES.Code_Etat} = {?Langue}) and
{CRY_SALES.InitInvoicedNb} = 0
Quelqu'un a-t-il eu ce genre de problème ????
Merci !!
Partager