HK

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

by Robert Goldenbaum
Badge for 'Question Solver' achievement
Posted on Thu, 10/15/2015 - 08:25

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

 

 

0

Featured achievement

Rookie
Say hello to the ARIS Community! Personalize your community experience by following forums or tags, liking a post or uploading a profile picture.
Recent Unlocks
  • Profile picture for user frankweise
  • Profile picture for user Henrik Buckler
  • Profile picture for user UffeK
  • SS
  • MZ
  • PacMan

Leaderboard

|
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon icon-lock