Hello again guys,
I'm trying to do something like this:
I'm not really sure how to start.
Edit:
I thought of a way of doing so by just removing the borders, however than I encountered a different problem - I never tried to define the style while changing the border properties, and the problem is that my Help menu doesn't work properly.
Some functions, including DefineF, do not appear on the left side (even after I found them in the menu, or clicked F1 while standing on the function's name in the script).
Is there some online help library?
Please advice me on that matter as well if someone could.
Thank you in advance,
Herman
Robert Goldenbaum on
Hello Herman,
you can do it like this:
var colWidthList = new java.util.ArrayList();
// output table header
colWidthList.add(10);
colWidthList.add(24);
colWidthList.add(13);
colWidthList.add(53);
g_oOutFile.BeginTable(100, colWidthList, Constants.C_WHITE, RGB(217,217,217), Constants.FMT_LEFT | Constants.FMT_ITALIC, 0)
g_oOutFile.TableRow();
g_oOutFile.TableCell("Version", 2, 1, "Arial", 10, Constants.C_BLACK, RGB(217,217,217), 0, Constants.FMT_CENTER | Constants.FMT_BOLD | Constants.FMT_VCENTER, 0);
g_oOutFile.TableCell("", 1, 2, "Arial", 10, Constants.C_BLACK, RGB(217,217,217), 0, Constants.FMT_CENTER | Constants.FMT_BOLD, 0);
g_oOutFile.OutputF("Created, Changed", "TableHeaderCenter");
g_oOutFile.TableCell("Remark", 2, 1, "Arial", 10, Constants.C_BLACK, RGB(217,217,217), 0, Constants.FMT_CENTER | Constants.FMT_BOLD | Constants.FMT_VCENTER, 0);
g_oOutFile.TableRow();
g_oOutFile.TableCell("Name", 1, 1, "Arial", 10, Constants.C_BLACK, RGB(217,217,217), 0, Constants.FMT_CENTER, 0);
g_oOutFile.TableCell("Date", 1, 1, "Arial", 10, Constants.C_BLACK, RGB(217,217,217), 0, Constants.FMT_CENTER, 0);
// output the details
sValue = oDomainModel.Attribute(g_tGeneral.lAttrNum_ChangeHistory, g_nLoc[0]).getValue();
asChangeHistory = sValue.split(String.fromCharCode(13));
for (i = 0; i < asChangeHistory.length; i++){
sValue = asChangeHistory[i];
asDetailHistory = sValue.split("|");
g_oOutFile.TableRow();
g_oOutFile.TableCellF(asDetailHistory[0].replace(String.fromCharCode(10), ""), 1, 1, "TableRowCenter");
g_oOutFile.TableCellF(asDetailHistory[1], 1, 1, "TableRowCenter");
g_oOutFile.TableCellF(asDetailHistory[2], 1, 1, "TableRowCenter");
g_oOutFile.TableCellF(asDetailHistory[3], 1, 1, "TableRowLeft");
}
// end table and output the table number
g_oOutFile.EndTable("", 100, "Arial", 1, Constants.C_BLACK, Constants.C_BLACK, 0, Constants.FMT_LEFT | Constants.FMT_ITALIC, 0);
g_oOutFile.OutputLnF("", "Small_1Pt");
g_oOutFile.OutputLnF("Table " + g_lTableCount + ": " + "Change history", "Standard");
g_lTableCount = g_lTableCount +1;
g_oOutFile.OutputLnF("", "Standard");
The two number in the line "g_oOutFile.TableCell("Version", 2, 1, ..." define how many cells are to be used for the string.
BR Robert