Focal Point
[SOLVED] OCCURS and specifying the occurrence

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

November 17, 2020, 12:05 PM
jif26
[SOLVED] OCCURS and specifying the occurrence
Hi there, I have a MASTER with an OCCURS segment.

I just want to print the first occurrence. I see how to define it no problem, just don't know how to reference it.

Basically I want to do something like this:
TABLE FILE
PRINT A(1)
END

This message has been edited. Last edited by: FP Mod Chuck,
November 17, 2020, 12:50 PM
Danny-SRL
You can add a logical field to your OCCURS segment with ACTUAL=ORDER and then issue
IF ORDER EQ 1


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

November 17, 2020, 01:05 PM
jif26
Thanks. So this IF just prints out the first occurrence of the field.

This doesn't interfere with the row selection criteria I assume?


WF 7.6.4
November 18, 2020, 03:18 PM
Danny-SRL
The first record.


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF