Profile picture for user jordanjt95

Hi everyone !

I've made some research to figure out how to create a Dialog for reports. I found a tutorial on the ariscommunity website from Volker Eckardt.

However, some details are still unclear to me and I'll appreciate some help.

The part I didn't understand was the following : 

function userdlg ()
{
  // Variable for the user dialog definition
  var userdialog = Dialogs.createNewDialogTemplate(0, 0, 440, 100, sScriptName);

  // define the layout
  userdialog.Text(60, 40, 400, 15, getString("DLG_MAIN_MESSAGE"));
  userdialog.CheckBox(60,60, 250, 15, getString("DLG_SHOW_NOT_MAINTAINED_ATTRIBUTES"), "DLG_SHOW_NOT_MAINTAINED_ATTR");
  userdialog.CheckBox(60,80, 300, 15, getString("DLG_USE_FIXED_OUTPUT_FILENAME"), "DLG_USE_FIXED_OUTPUT_FILENAME");
  userdialog.Text(60, 150, 400, 15, getString("DLG_HINT_OUTPUT_FONT_SIZE"));
  userdialog.ComboBox(60,170, 150, 15, aOutputFontSizeList, "DLG_OUTPUT_FONT_SIZE");

}

Now my misunderstanding goes as follows.

 

For example : 

  userdialog.Text(60, 40, 400, 15, getString("DLG_MAIN_MESSAGE"));

If I got this right, the underlined line should get a string that is stored under the name "DLG_MAIN_MESSAGE". So for example , getString("DLG_MAIN_MESSAGE"  will return a string such as "please , select one or more options"  or something like that and will display it in the dialog.

If so, then my main question is, where is the string "please , select one or more options"  stored under the string "DLG_MAIN_MESSAGE" ? 

The same goes for all the other lines.

I uploaded the full code (from the tutorial I found).

I will really appreciate some help on this.

 

Thank you !

by Bruce Wood
Posted on Thu, 07/22/2021 - 00:32

The Short answer is: These variables are entries in a string table.

The longer explanation is:

Your code snippet appears to be from Part 6 of Werner's Scripting series, here: https://www.ariscommunity.com/users/volker-eckardt/2010-05-12-aris-scripting-tutorial-part-5-more-object-options-and-cu…

The explanation about how to create, manipulate and use entries in a string table are contained in Part 5 of the series, here: https://www.ariscommunity.com/users/volker-eckardt/2010-05-10-aris-scripting-tutorial-part-5-object-attributes-all-outp…

Werner's entire series on scripting is, IMHO, worth a read.

Hope this helps.

0
by Jordan Tangy
Badge for 'Question Solver' achievement
Author
Posted on Thu, 07/22/2021 - 09:53

In reply to by bwoodaz

Hi Bruce, thank you for your answer.

Indeed, the code snippets are from Volker's tutorial, I already looked at the tutorial part 6 but not part 5 where he explains about String tables. I thought that tutorial 5 and 6 are two different tutorials , but apparently , each one is based on the previous tutorial. I gave a look thanks to you and it makes more sense now :)

Thank you !

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

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