Dan
The suggestion made earlier should fix the issue but from your enquiry
try to attached your routine at the point of where you want the multi
value field to be display. And you must make sure you first of ALL
pass the record identification to "O.DATA" first right from your
enquiry where the routine is attached.
I asumed where you attached your routine carry along the record.Id.
INSERT I_ENQUIRY.COMMON
***NOTE Y.REC.ID is the record.id that you are bringing from your enquiry ****
Y.REC.ID = O.DATA
**** Then Read the table where the multi value field is coming from ****
VM.COUNT=DCOUNT(O.DATA,@VM)
This should fix the display issue.
Regards
Sege
--
Olapade R.S
2, Akinfemi Salvage Str
Fagba Bus Stop, Iju RD, Lagos
Tel No:234-1-(0)8033087434/8051144422
In enquiry, column 2, O.DATA = 1M]3M]6M]12M , delimiter by VM marker.
In the CONVERSION field of ENQUIRY, i wrote a routine as below :-
MV.FLD = O.DATA
VM.COUNT=DCOUNT(MV.FLD,VM)
My enquiry output will be :-
EUR | 1M
1M
1M
1M
I also tried to pass in the record ID and read and then do a count, it
produce the same result.
In ENQUIRY, column 2, S/M indicator is set as M.
Have I missed out any step ?
Thanks for clarifying.
--
Thank you and Regards,
Foong Yee
Tel No:234-1-(0)8033087434/8051144422
But I still don't know why my routine does not display as how it should be.
Example, my nofile enquiry will passed out all the relevant records,
in a string format like EUR*1M]3M]6M]12M
Then in enquiry designer, Column 1 = ID, i will use FIELD to split the
value using "*" Delimiter and for Column 2, i split as FIELD "*",2,1
under CONVERSION field. I also append the conversion of multi value as
:-
** In MV.FLD variable, the value is 1M]3M]6M]12M **
MV.FLD = O.DATA
VM.COUNT=DCOUNT(MV.FLD,VM)
FOR M = 1 TO VM.COUNT
IF YSTR THEN
YSTR := VM : MV.FLD<1,M>
END ELSE
YSTR = MV.FLD<1,M>
END
NEXT M
O.DATA = YSTR
But my enquiry output will displayed as below, which is wrong :-
CHF 1M 3M 6M 12M
1M 3M 6M 12M
1M 3M 6M 12M
1M 3M 6M 12M
I need the enquiry to display as :-
CHF 1M
3M
6M
12M
In enquiry designer i already set as below :-
14. 2 FIELD.NAME..... REST.PERIOD
15. 2. 1 OPERATION... 0
16. 2 COLUMN......... 18
17. 2 LENGTH.MASK.... 50L
18. 2. 1 CONVERSION.. F *,2,1
18. 2. 2 CONVERSION.. @ E.CONV.MV.FLDS
35. 2 SINGLE.MULTI... M
Please advice.
Thank you.
Thanks to everyone's help and contribution !
Cheers !