Hello.
Using CR10 on Oracle 8.
I have a parameter, allowing multi discrete string values, which are freetype.
These values are work orders, which are stored in the DB as 8 char, zero padded strings (eg. '00000001', NOT '1').
Now, I can't make my users ensure they pad the entries to 8 chars. As such, I have the following code in the Record Selection:
What I notice though, is that this does NOT then exist in the SQL query CR passes on & ALL of the Work Orders are returned & then filtered.
Does anyone know a way to make the SQL incorporate this selection?
I can't use a Sub Report, seeing as the next section of my reports needs to use Sub Reports itself, and seeing as how they can't be nested, that causes something of an issue.
All thoughts/suggestions gratefully accepted & tested.
Using CR10 on Oracle 8.
I have a parameter, allowing multi discrete string values, which are freetype.
These values are work orders, which are stored in the DB as 8 char, zero padded strings (eg. '00000001', NOT '1').
Now, I can't make my users ensure they pad the entries to 8 chars. As such, I have the following code in the Record Selection:
Code:
(
NumberVar intNumElements := Count({?Work Order});
NumberVar intCount;
StringVar Array strWO;
ReDim strWO[intNumElements];
For intCount := 1 to intNumElements Step 1 Do
strWO[intCount] := Right('00000000' + {?Work Order}[intCount], 8);
{MSF620.WORK_ORDER} = strWO
)
What I notice though, is that this does NOT then exist in the SQL query CR passes on & ALL of the Work Orders are returned & then filtered.
Does anyone know a way to make the SQL incorporate this selection?
I can't use a Sub Report, seeing as the next section of my reports needs to use Sub Reports itself, and seeing as how they can't be nested, that causes something of an issue.
All thoughts/suggestions gratefully accepted & tested.