Focal Point
Left and Right Columns

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

December 14, 2005, 01:17 PM
john drews
Left and Right Columns
I'm trying to figure out a way to organize two tables. Currently the layout looks like this (Fictional data used as an example).

Left Column_______Right Column
Boxa______________Project b
Project c_________Box d
Project m_________Box u
Box u_____________Project j
Box m_____________Project u

What I would like is for the Boxes to show up in one Column and the Projects in the other.

This is hypothetical, since I'm dealing with very senstitive info... but if someone could give a response based on the sample data I think I could manage to figure it out.
Any ideas?

This message has been edited. Last edited by: john drews,
December 14, 2005, 01:19 PM
john drews
Sorry, the formatting came apart there...
Hopefully this is easier to read. Sample data below.

Table A

Left Column_______Right Column
Boxa______________Project b
Project c_________Box d
Project m_________Box u
Box u_____________Project j
Box m_____________Project u


7.7.02 on Windows
December 14, 2005, 01:45 PM
susannah
John, if you have 2 tables, and you want to place them side by side, piece o' cake. Here's the basic idea; and the result is emailable via caster as well.
TABLE FILE CAR
do something
ON TABLE HOLD AS MYTAB1 FORMAT HTMTABLE
END
TABLE FILE CAR
do something else
ON TABLE HOLD AS MYTAB2 FORMAT HTMTABLE
END
-RUN
-HTMLFORM BEGIN
<TABLE>
<TR>
<TD>
!IBI.FIL.MYTAB1;
</td>
<TD>
!IBI.FIL.MYTAB2;
</td>
</TR></TABLE>

-HTMLFORM END
good point tony makes below; lets go ahead and follow the rules and be xml-ready

This message has been edited. Last edited by: susannah,




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
December 14, 2005, 03:37 PM
Tony A
Don't forget the
</TD>
tags as well to close the
<TD>
!!



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 
December 21, 2005, 04:44 PM
john drews
I found out the trick...

Used this sample code and it worked

DEFINE FILE X
LEFT_COL/A25 = IF LEFT_COL CONTAINS 'BOX' THEN LEFT_COL ELSE RIGHT_COL;
RIGHT_COL/A25 = IF RIGHT_COL CONTAINS 'PROJECT' THEN RIGHT_COL ELSE LEFT_COL;
END

TABLE FILE X
PRINT LEFT_COL RIGHT_COL
END


7.7.02 on Windows