FR [ 2143266 ] Multi-line table column headers

This commit is contained in:
phib 2008-10-02 23:33:59 +00:00
parent b87f0002ae
commit 0f1bf88326
6 changed files with 266 additions and 145 deletions

View File

@ -184,6 +184,19 @@ public interface I_AD_PrintTableFormat
*/
public int getHdrLine_PrintColor_ID();
/** Column name Hdr_PrintFont_ID */
public static final String COLUMNNAME_Hdr_PrintFont_ID = "Hdr_PrintFont_ID";
/** Set Header Row Font.
* Header row Font
*/
public void setHdr_PrintFont_ID (int Hdr_PrintFont_ID);
/** Get Header Row Font.
* Header row Font
*/
public int getHdr_PrintFont_ID();
/** Column name HdrStroke */
public static final String COLUMNNAME_HdrStroke = "HdrStroke";
@ -236,19 +249,6 @@ public interface I_AD_PrintTableFormat
*/
public int getHdrTextFG_PrintColor_ID();
/** Column name Hdr_PrintFont_ID */
public static final String COLUMNNAME_Hdr_PrintFont_ID = "Hdr_PrintFont_ID";
/** Set Header Row Font.
* Header row Font
*/
public void setHdr_PrintFont_ID (int Hdr_PrintFont_ID);
/** Get Header Row Font.
* Header row Font
*/
public int getHdr_PrintFont_ID();
/** Column name HeaderCenter */
public static final String COLUMNNAME_HeaderCenter = "HeaderCenter";
@ -327,6 +327,19 @@ public interface I_AD_PrintTableFormat
*/
public boolean isDefault();
/** Column name IsMultiLineHeader */
public static final String COLUMNNAME_IsMultiLineHeader = "IsMultiLineHeader";
/** Set Multi Line Header.
* Print column headers on mutliple lines if necessary.
*/
public void setIsMultiLineHeader (boolean IsMultiLineHeader);
/** Get Multi Line Header.
* Print column headers on mutliple lines if necessary.
*/
public boolean isMultiLineHeader();
/** Column name IsPaintBoundaryLines */
public static final String COLUMNNAME_IsPaintBoundaryLines = "IsPaintBoundaryLines";
@ -340,19 +353,6 @@ public interface I_AD_PrintTableFormat
*/
public boolean isPaintBoundaryLines();
/** Column name IsPaintHLines */
public static final String COLUMNNAME_IsPaintHLines = "IsPaintHLines";
/** Set Paint Horizontal Lines.
* Paint horizontal lines
*/
public void setIsPaintHLines (boolean IsPaintHLines);
/** Get Paint Horizontal Lines.
* Paint horizontal lines
*/
public boolean isPaintHLines();
/** Column name IsPaintHeaderLines */
public static final String COLUMNNAME_IsPaintHeaderLines = "IsPaintHeaderLines";
@ -366,6 +366,19 @@ public interface I_AD_PrintTableFormat
*/
public boolean isPaintHeaderLines();
/** Column name IsPaintHLines */
public static final String COLUMNNAME_IsPaintHLines = "IsPaintHLines";
/** Set Paint Horizontal Lines.
* Paint horizontal lines
*/
public void setIsPaintHLines (boolean IsPaintHLines);
/** Get Paint Horizontal Lines.
* Paint horizontal lines
*/
public boolean isPaintHLines();
/** Column name IsPaintVLines */
public static final String COLUMNNAME_IsPaintVLines = "IsPaintVLines";
@ -392,6 +405,19 @@ public interface I_AD_PrintTableFormat
*/
public boolean isPrintFunctionSymbols();
/** Column name Line_PrintColor_ID */
public static final String COLUMNNAME_Line_PrintColor_ID = "Line_PrintColor_ID";
/** Set Line Color.
* Table line color
*/
public void setLine_PrintColor_ID (int Line_PrintColor_ID);
/** Get Line Color.
* Table line color
*/
public int getLine_PrintColor_ID();
/** Column name LineStroke */
public static final String COLUMNNAME_LineStroke = "LineStroke";
@ -418,19 +444,6 @@ public interface I_AD_PrintTableFormat
*/
public String getLineStrokeType();
/** Column name Line_PrintColor_ID */
public static final String COLUMNNAME_Line_PrintColor_ID = "Line_PrintColor_ID";
/** Set Line Color.
* Table line color
*/
public void setLine_PrintColor_ID (int Line_PrintColor_ID);
/** Get Line Color.
* Table line color
*/
public int getLine_PrintColor_ID();
/** Column name Name */
public static final String COLUMNNAME_Name = "Name";

View File

@ -44,10 +44,12 @@ public class X_AD_PrintTableFormat extends PO implements I_AD_PrintTableFormat,
{
setAD_PrintTableFormat_ID (0);
setIsDefault (false);
setIsMultiLineHeader (false);
// N
setIsPaintBoundaryLines (false);
setIsPaintHLines (false);
setIsPaintHeaderLines (true);
// Y
setIsPaintHLines (false);
setIsPaintVLines (false);
setIsPrintFunctionSymbols (false);
setName (null);
@ -311,6 +313,31 @@ public class X_AD_PrintTableFormat extends PO implements I_AD_PrintTableFormat,
return ii.intValue();
}
/** Hdr_PrintFont_ID AD_Reference_ID=267 */
public static final int HDR_PRINTFONT_ID_AD_Reference_ID=267;
/** Set Header Row Font.
@param Hdr_PrintFont_ID
Header row Font
*/
public void setHdr_PrintFont_ID (int Hdr_PrintFont_ID)
{
if (Hdr_PrintFont_ID < 1)
set_Value (COLUMNNAME_Hdr_PrintFont_ID, null);
else
set_Value (COLUMNNAME_Hdr_PrintFont_ID, Integer.valueOf(Hdr_PrintFont_ID));
}
/** Get Header Row Font.
@return Header row Font
*/
public int getHdr_PrintFont_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_Hdr_PrintFont_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set Header Stroke.
@param HdrStroke
Width of the Header Line Stroke
@ -409,31 +436,6 @@ public class X_AD_PrintTableFormat extends PO implements I_AD_PrintTableFormat,
return ii.intValue();
}
/** Hdr_PrintFont_ID AD_Reference_ID=267 */
public static final int HDR_PRINTFONT_ID_AD_Reference_ID=267;
/** Set Header Row Font.
@param Hdr_PrintFont_ID
Header row Font
*/
public void setHdr_PrintFont_ID (int Hdr_PrintFont_ID)
{
if (Hdr_PrintFont_ID < 1)
set_Value (COLUMNNAME_Hdr_PrintFont_ID, null);
else
set_Value (COLUMNNAME_Hdr_PrintFont_ID, Integer.valueOf(Hdr_PrintFont_ID));
}
/** Get Header Row Font.
@return Header row Font
*/
public int getHdr_PrintFont_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_Hdr_PrintFont_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set Header Center.
@param HeaderCenter
Content of the center portion of the header.
@ -550,6 +552,30 @@ public class X_AD_PrintTableFormat extends PO implements I_AD_PrintTableFormat,
return false;
}
/** Set Multi Line Header.
@param IsMultiLineHeader
Print column headers on mutliple lines if necessary.
*/
public void setIsMultiLineHeader (boolean IsMultiLineHeader)
{
set_Value (COLUMNNAME_IsMultiLineHeader, Boolean.valueOf(IsMultiLineHeader));
}
/** Get Multi Line Header.
@return Print column headers on mutliple lines if necessary.
*/
public boolean isMultiLineHeader ()
{
Object oo = get_Value(COLUMNNAME_IsMultiLineHeader);
if (oo != null)
{
if (oo instanceof Boolean)
return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
/** Set Paint Boundary Lines.
@param IsPaintBoundaryLines
Paint table boundary lines
@ -574,30 +600,6 @@ public class X_AD_PrintTableFormat extends PO implements I_AD_PrintTableFormat,
return false;
}
/** Set Paint Horizontal Lines.
@param IsPaintHLines
Paint horizontal lines
*/
public void setIsPaintHLines (boolean IsPaintHLines)
{
set_Value (COLUMNNAME_IsPaintHLines, Boolean.valueOf(IsPaintHLines));
}
/** Get Paint Horizontal Lines.
@return Paint horizontal lines
*/
public boolean isPaintHLines ()
{
Object oo = get_Value(COLUMNNAME_IsPaintHLines);
if (oo != null)
{
if (oo instanceof Boolean)
return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
/** Set Paint Header Lines.
@param IsPaintHeaderLines
Paint Lines over/under the Header Line
@ -622,6 +624,30 @@ public class X_AD_PrintTableFormat extends PO implements I_AD_PrintTableFormat,
return false;
}
/** Set Paint Horizontal Lines.
@param IsPaintHLines
Paint horizontal lines
*/
public void setIsPaintHLines (boolean IsPaintHLines)
{
set_Value (COLUMNNAME_IsPaintHLines, Boolean.valueOf(IsPaintHLines));
}
/** Get Paint Horizontal Lines.
@return Paint horizontal lines
*/
public boolean isPaintHLines ()
{
Object oo = get_Value(COLUMNNAME_IsPaintHLines);
if (oo != null)
{
if (oo instanceof Boolean)
return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
/** Set Paint Vertical Lines.
@param IsPaintVLines
Paint vertical lines
@ -670,6 +696,31 @@ public class X_AD_PrintTableFormat extends PO implements I_AD_PrintTableFormat,
return false;
}
/** Line_PrintColor_ID AD_Reference_ID=266 */
public static final int LINE_PRINTCOLOR_ID_AD_Reference_ID=266;
/** Set Line Color.
@param Line_PrintColor_ID
Table line color
*/
public void setLine_PrintColor_ID (int Line_PrintColor_ID)
{
if (Line_PrintColor_ID < 1)
set_Value (COLUMNNAME_Line_PrintColor_ID, null);
else
set_Value (COLUMNNAME_Line_PrintColor_ID, Integer.valueOf(Line_PrintColor_ID));
}
/** Get Line Color.
@return Table line color
*/
public int getLine_PrintColor_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_Line_PrintColor_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set Line Stroke.
@param LineStroke
Width of the Line Stroke
@ -718,31 +769,6 @@ public class X_AD_PrintTableFormat extends PO implements I_AD_PrintTableFormat,
return (String)get_Value(COLUMNNAME_LineStrokeType);
}
/** Line_PrintColor_ID AD_Reference_ID=266 */
public static final int LINE_PRINTCOLOR_ID_AD_Reference_ID=266;
/** Set Line Color.
@param Line_PrintColor_ID
Table line color
*/
public void setLine_PrintColor_ID (int Line_PrintColor_ID)
{
if (Line_PrintColor_ID < 1)
set_Value (COLUMNNAME_Line_PrintColor_ID, null);
else
set_Value (COLUMNNAME_Line_PrintColor_ID, Integer.valueOf(Line_PrintColor_ID));
}
/** Get Line Color.
@return Table line color
*/
public int getLine_PrintColor_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_Line_PrintColor_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set Name.
@param Name
Alphanumeric identifier of the entity

View File

@ -1482,7 +1482,7 @@ public class LayoutEngine implements Pageable, Printable, Doc
HashMap<Point,Color> rowColBackground = new HashMap<Point,Color>();
rowColBackground.put(new Point(TableElement.HEADER_ROW,TableElement.ALL), tf.getHeaderBG_Color());
// Sizes
boolean multiLineHeader = false;
boolean multiLineHeader = tf.isMultiLineHeader();
int pageNoStart = m_pageNo;
int repeatedColumns = 1;
Rectangle firstPage = new Rectangle(m_content);
@ -1686,7 +1686,7 @@ public class LayoutEngine implements Pageable, Printable, Doc
dataElement = pde.getValue();
else
dataElement = pde.getValueDisplay(format.getLanguage());
}
}
else
log.log(Level.SEVERE, "Element not PrintDataElement " + obj.getClass());
// System.out.println(" row=" + row + ",col=" + col + " - " + item.getAD_Column_ID() + " => " + dataElement);

View File

@ -469,8 +469,8 @@ public class TableElement extends PrintElement
height = lineHeight;
break;
}
else if (m_columnMaxHeight[dataCol] == 0
|| (height + lineHeight) <= m_columnMaxHeight[dataCol])
else /*if (m_columnMaxHeight[dataCol] == 0
|| (height + lineHeight) <= m_columnMaxHeight[dataCol])*/
height += lineHeight;
}
} // for all header lines
@ -1256,6 +1256,9 @@ public class TableElement extends PrintElement
(int)(colWidth-m_tFormat.getVLineStroke().floatValue()),
(int)(rowHeight-(4*m_tFormat.getLineStroke().floatValue())));
}
int tempCurY = curY;
curX += H_GAP; // upper left gap
curY += V_GAP;
// Header
@ -1285,40 +1288,38 @@ public class TableElement extends PrintElement
if (iter.getEndIndex() != measurer.getPosition())
fastDraw = false;
float lineHeight = layout.getAscent() + layout.getDescent() + layout.getLeading();
if (m_columnMaxHeight[col] <= 0 // -1 = FirstLineOnly
|| (usedHeight + lineHeight) <= m_columnMaxHeight[col])
if (alignment.equals(MPrintFormatItem.FIELDALIGNMENTTYPE_Block))
{
if (alignment.equals(MPrintFormatItem.FIELDALIGNMENTTYPE_Block))
{
layout = layout.getJustifiedLayout(netWidth + 2);
fastDraw = false;
}
curY += layout.getAscent();
float penX = curX;
if (alignment.equals(MPrintFormatItem.FIELDALIGNMENTTYPE_Center))
penX += (netWidth-layout.getAdvance())/2;
else if ((alignment.equals(MPrintFormatItem.FIELDALIGNMENTTYPE_TrailingRight) && layout.isLeftToRight())
|| (alignment.equals(MPrintFormatItem.FIELDALIGNMENTTYPE_LeadingLeft) && !layout.isLeftToRight()))
penX += netWidth-layout.getAdvance();
//
if (fastDraw)
{ // Bug - set Font/Color explicitly
g2D.setFont(getFont(HEADER_ROW, col));
g2D.setColor(getColor(HEADER_ROW, col));
g2D.drawString(iter, penX, curY);
}
else
layout.draw(g2D, penX, curY); // -> text
curY += layout.getDescent() + layout.getLeading();
usedHeight += lineHeight;
layout = layout.getJustifiedLayout(netWidth + 2);
fastDraw = false;
}
if (!m_multiLineHeader) // one line only
curY += layout.getAscent();
float penX = curX;
if (alignment.equals(MPrintFormatItem.FIELDALIGNMENTTYPE_Center))
penX += (netWidth-layout.getAdvance())/2;
else if ((alignment.equals(MPrintFormatItem.FIELDALIGNMENTTYPE_TrailingRight) && layout.isLeftToRight())
|| (alignment.equals(MPrintFormatItem.FIELDALIGNMENTTYPE_LeadingLeft) && !layout.isLeftToRight()))
penX += netWidth-layout.getAdvance();
//
if (fastDraw)
{ // Bug - set Font/Color explicitly
g2D.setFont(getFont(HEADER_ROW, col));
g2D.setColor(getColor(HEADER_ROW, col));
g2D.drawString(iter, penX, curY);
}
else
layout.draw(g2D, penX, curY); // -> text
curY += layout.getDescent() + layout.getLeading();
usedHeight += layout.getAscent() + layout.getDescent();
if ( !m_multiLineHeader ) // one line only
break;
}
}
curX += netWidth + H_GAP;
curY += V_GAP;
curY = tempCurY + (int)(rowHeight-(4*m_tFormat.getLineStroke().floatValue()));
// Y end line
g2D.setPaint(m_tFormat.getVLine_Color());
g2D.setStroke(m_tFormat.getVLine_Stroke());

View File

@ -0,0 +1,41 @@
-- 2/10/2008 11:02:34
-- Financial reporting improvements
INSERT INTO AD_Element (AD_Org_ID,AD_Client_ID,AD_Element_ID,ColumnName,Created,CreatedBy,Description,EntityType,Help,IsActive,Name,PO_Name,PrintName,Updated,UpdatedBy) VALUES (0,0,53690,'IsMultiLineHeader',TO_DATE('2008-10-02 11:00:41','YYYY-MM-DD HH24:MI:SS'),100,'Print column headers on mutliple lines if necessary.','D','If selected, column header text will wrap onto the next line -- otherwise the text will be truncated.','Y','Multi Line Header',NULL,'Multi Line Header',TO_DATE('2008-10-02 11:00:41','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2/10/2008 11:02:34
-- Financial reporting improvements
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53690 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID)
;
-- 2/10/2008 11:03:39
-- Financial reporting improvements
INSERT INTO AD_Column (AD_Org_ID,AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,0,56358,53690,20,523,'IsMultiLineHeader',TO_DATE('2008-10-02 11:03:36','YYYY-MM-DD HH24:MI:SS'),100,'Y','Print column headers on mutliple lines if necessary.','D',1,'If selected, column header text will wrap onto the next line -- otherwise the text will be truncated.','Y','Y','N','N','N','N','N','Y','N','N','N','N','Y','Multi Line Header',0,TO_DATE('2008-10-02 11:03:36','YYYY-MM-DD HH24:MI:SS'),100,1)
;
-- 2/10/2008 11:03:39
-- Financial reporting improvements
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56358 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- 2/10/2008 11:04:17
-- Financial reporting improvements
UPDATE AD_Column SET DefaultValue='N',Updated=TO_DATE('2008-10-02 11:04:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=56358
;
-- 2/10/2008 11:04:23
-- 2/10/2008 11:05:08
-- Financial reporting improvements
ALTER TABLE AD_PrintTableFormat IsMultiLineHeader CHAR(1) DEFAULT 'N' CHECK (IsMultiLineHeader IN ('Y','N')) NOT NULL
;
-- 2/10/2008 11:23:44
-- Financial reporting improvements
INSERT INTO AD_Field (AD_Column_ID,AD_Org_ID,AD_Client_ID,AD_Field_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,SortNo,Updated,UpdatedBy) VALUES (56358,0,0,56377,435,TO_DATE('2008-10-02 11:23:40','YYYY-MM-DD HH24:MI:SS'),100,'Print column headers on mutliple lines if necessary.',14,'D','If selected, column header text will wrap onto the next line -- otherwise the text will be truncated.','Y','Y','Y','N','N','N','N','Y','Multi Line Header',95,0,TO_DATE('2008-10-02 11:23:40','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2/10/2008 11:23:44
-- Financial reporting improvements
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56377 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;

View File

@ -0,0 +1,40 @@
-- 2/10/2008 11:02:34
-- Financial reporting improvements
INSERT INTO AD_Element (AD_Org_ID,AD_Client_ID,AD_Element_ID,ColumnName,Created,CreatedBy,Description,EntityType,Help,IsActive,Name,PO_Name,PrintName,Updated,UpdatedBy) VALUES (0,0,53690,'IsMultiLineHeader',TO_TIMESTAMP('2008-10-02 11:00:41','YYYY-MM-DD HH24:MI:SS'),100,'Print column headers on mutliple lines if necessary.','D','If selected, column header text will wrap onto the next line -- otherwise the text will be truncated.','Y','Multi Line Header',NULL,'Multi Line Header',TO_TIMESTAMP('2008-10-02 11:00:41','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2/10/2008 11:02:34
-- Financial reporting improvements
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53690 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID)
;
-- 2/10/2008 11:03:39
-- Financial reporting improvements
INSERT INTO AD_Column (AD_Org_ID,AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,0,56358,53690,20,523,'IsMultiLineHeader',TO_TIMESTAMP('2008-10-02 11:03:36','YYYY-MM-DD HH24:MI:SS'),100,'Y','Print column headers on mutliple lines if necessary.','D',1,'If selected, column header text will wrap onto the next line -- otherwise the text will be truncated.','Y','Y','N','N','N','N','N','Y','N','N','N','N','Y','Multi Line Header',0,TO_TIMESTAMP('2008-10-02 11:03:36','YYYY-MM-DD HH24:MI:SS'),100,1)
;
-- 2/10/2008 11:03:39
-- Financial reporting improvements
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56358 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- 2/10/2008 11:04:17
-- Financial reporting improvements
UPDATE AD_Column SET DefaultValue='N',Updated=TO_TIMESTAMP('2008-10-02 11:04:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=56358
;
-- 2/10/2008 11:05:08
-- Financial reporting improvements
ALTER TABLE AD_PrintTableFormat ADD COLUMN IsMultiLineHeader CHAR(1) DEFAULT 'N' CHECK (IsMultiLineHeader IN ('Y','N')) NOT NULL
;
-- 2/10/2008 11:23:44
-- Financial reporting improvements
INSERT INTO AD_Field (AD_Column_ID,AD_Org_ID,AD_Client_ID,AD_Field_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,SortNo,Updated,UpdatedBy) VALUES (56358,0,0,56377,435,TO_TIMESTAMP('2008-10-02 11:23:40','YYYY-MM-DD HH24:MI:SS'),100,'Print column headers on mutliple lines if necessary.',14,'D','If selected, column header text will wrap onto the next line -- otherwise the text will be truncated.','Y','Y','Y','N','N','N','N','Y','Multi Line Header',95,0,TO_TIMESTAMP('2008-10-02 11:23:40','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2/10/2008 11:23:44
-- Financial reporting improvements
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56377 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;