Hi,
I have the following case in a Data Source condition:
SOURCE_REF1 IS NOT NULL
AND
CASE WHEN TO_CHAR(SYSDATE, 'D') = 1 AND
TRUNC(PLANNED_SHIP_DATE) > TRUNC(SYSDATE)-100
AND TRUNC(PLANNED_SHIP_DATE) < TRUNC(SYSDATE)+2
THEN
1
WHEN TO_CHAR(SYSDATE, 'D') = 2 AND
TRUNC(PLANNED_SHIP_DATE) > TRUNC(SYSDATE)-100
AND TRUNC(PLANNED_SHIP_DATE) < TRUNC(SYSDATE)+2
THEN
1
WHEN TO_CHAR(SYSDATE, 'D') = 3 AND
TRUNC(PLANNED_SHIP_DATE) > TRUNC(SYSDATE)-100
AND TRUNC(PLANNED_SHIP_DATE) < TRUNC(SYSDATE)+2
THEN
1
WHEN TO_CHAR(SYSDATE, 'D') = 4 AND
TRUNC(PLANNED_SHIP_DATE) > TRUNC(SYSDATE)-100
AND TRUNC(PLANNED_SHIP_DATE) < TRUNC(SYSDATE)+2
THEN
1
WHEN TO_CHAR(SYSDATE, 'D') = 5 AND
TRUNC(PLANNED_SHIP_DATE) > TRUNC(SYSDATE)-100
AND TRUNC(PLANNED_SHIP_DATE) < TRUNC(SYSDATE)+4
THEN
1
WHEN TO_CHAR(SYSDATE, 'D') = 6 AND
TRUNC(PLANNED_SHIP_DATE) > TRUNC(SYSDATE)-100
AND TRUNC(PLANNED_SHIP_DATE) < TRUNC(SYSDATE)+3
THEN
1
WHEN TO_CHAR(SYSDATE, 'D') = 7 AND
TRUNC(PLANNED_SHIP_DATE) > TRUNC(SYSDATE)-100
AND TRUNC(PLANNED_SHIP_DATE) < TRUNC(SYSDATE)+2
THEN
1
ELSE 2
END = 1
AND ROUTE_ID = 'PRJ'
AND NOT(STATE IN ('Cancelled','Closed'))
The issue being it will generate the correct data a user logged in to their profile only on certain pc’s.
I think there is a problem with the case statement in the ‘Condition’ but need to be sure.
I have deleted the 2.0 folder and cleared AppCache in Command Prompt but still no joy.
Any advise would be gratefully received.
Regards,
Ben