Focal Point
Duplication of Records

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/6871010831

November 23, 2005, 05:26 PM
TryFocus
Duplication of Records
Hi guys,
Iam kind of novice in focus code. Confused
Situation: -
HOLD <--
Field1 || Field2 || Field3
1 || A || john
1 || B || Mary
2 || C || Lisa
2 || D || Lori
2 || E || Sophy
3 || F || Kate

What I want is
SOME_HOLD1 <--
Field1 || Field2 || Field3
1 || A || john
2 || C || Lisa
3 || F || Kate
SOME_HOLD2 <--
Field1 || Field2 || Field3
1 || B || Mary
2 || D || Lori

I know one way of doing this with
Table file HOLD1
LIST Field2
bY Field1
End
I would appreciate some more efficient way attaching this problem
Thanks in Advance


Prod: WF 7.6.10 windows. -- MRE/Dashboard/Self Service/ReportCaster - Windows XP
November 23, 2005, 07:48 PM
Stan
Since noone else is biting, I'll ask if you can clarify this question a bit more. I'm not sure I understand what you are trying to do.
November 24, 2005, 03:39 AM
Tony A
Would I be correct in thinking that you want the first occurence in hold file 1, the second in hold file 2 .. etc.?

If so you can use basically what you have -
TABLE FILE CAR
LIST CAR
BY COUNTRY
ON TABLE HOLD AS MYDATA
END

TABLE FILE MYDATA
PRINT *
IF LIST EQ 1
END

TABLE FILE MYDATA
PRINT *
IF LIST EQ 2
END




In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
November 25, 2005, 10:59 AM
TryFocus
Tony A -
U r Perfect.
Actually I have a hold file of Huge Size.
Like

TABLE FILE CAR
LIST CAR
BY COUNTRY
ON TABLE HOLD AS MYDATA
END

List for CAR'S can go up to 40 and
Country's can go up to 20.

So Generating 40 Hold files dynamically and presenting all these 40 hold files in EXL2K wouldn't it be a Problem...?

I Wanted to know is there any better approach rather than this..?

Thanks in Advance


Prod: WF 7.6.10 windows. -- MRE/Dashboard/Self Service/ReportCaster - Windows XP