YD

Hello Community,

I would like to build a dialog box which enables the user to choose file to read. The function I use is "Dialogs.BrowseForFile". The dialog box should allow the user to choose from multiple data types, e.g. .xls and xlsx. At the moment, with this function I can only show one option of this data type as shown below.

I would like to ask is there a possible way to add more data type to the filter? Or is there any other function which enables this multiple filter ?

Thanks in advance!

by Kay Fischbach
Posted on Thu, 07/25/2019 - 11:54

I assume you're using the Dialogs.getFilePath(...) method?

You can specify which file types are supposed to be available in that drop down menu with the second parameter of that method.

Example for xls and xlsx:

Dialogs.getFilePath("", "*.xls!!Worksheet Files|*.xls|Worksheet Files new|*.xlsx|", "", "Select a file", 0);

The second parameter is a string, and it follows the following syntax

  1. First describe the filter that is initially supposed to be active, in this case it's the "*.xls" part at the beginning of the string
  2. Then add two exclamation marks "!!"

Now do all the following steps for each selectable list entry (append the following to the same string you started already)

  1. Give you closable option a descriptor. In this example it's "Worksheet Files"
  2. Add a vertical bar "|"
  3. Describe the filter in the filter format Aris expects (Asterisk-dot-file-extension), in this case it's "*.xls"
  4. Add a vertical bar "|" (this is very important, even the last list entry you define you have to end with a vertical bar)

 

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