IS

Hello!

In ARIS 7.2.5 there is ability to create sub dialogs for Dialogs object. Custom created dialogs and sub dialogs work properly. But standard ARIS dialogs (Dialogs.MsgBox() for example) are not work as sub dialogs. There is help for method [DialogObject].onClose() in which  there is text "Calling sub dialogs or message boxes is not supported in this function".     

In other methods, such as [DialogObject].button_pressed() , there is no such text in help. It looks like MsgBox must works in it, but it doesn't. Next operators in button_pressed are executed, so Dialogs.MsgBox is just skipped, not appears.

Same thing with Dialogs.BrowsArisItems() and Dialogs.InputBox().

Do anybody knows how to call Dialogs.MsgBox() as sub dialog from DialogObject? Or is it bug?

Thx!

by Torsten Haase
Posted on Mon, 01/27/2014 - 16:20

Hi,

inside a dialog, sub-dialogs are created using the current dialog object (their parent), not from the global Dialogs object:

See help: UserDialog



DialogElement getDialogElement ( String sDialogElementId )



Returns the dialog element specified by its string ID (independent from the dialog page).



DialogPage getPage ( int p_nPage )



returns the specified dialog page or null if the page with the given index does not exist



int getPageCount ( )



returns the number of dialog pages.



String getTitle ( )



returns the dialog title



void setActiveWizardPages ( int[] activePages )



Defines the list of visible wizard pages. If not called or if called with an empty array, all pages are active.



void setBrowseArisItems ( String sDialogId, String sTitle, String sDescription, String sServerName, String sDatabaseName, int itemKind, int[] itemTypes )



Called inside a report dialog function to create an ARIS Explorer dialog which is displayed after the dialog function has finished. The selection is restricted to the actual database.



void setBrowseFiles ( String sDialogId, String sDefName, String sDefExt, String sDefDir, String sTitle, int Options )



Called inside a report dialog function to create a file selection dialog which is displayed after the dialog function has finished.



void setBrowseFolders ( String sDialogId, String sTitle, String sDefPath, int Options )



Called inside a report dialog function to create a directory selection dialog which is displayed after the dialog function has finished.



void setMsgBox ( String sDialogId, String sMessage, int nType, String sTitle )



Called inside a report dialog function to create an information dialog which is displayed after the dialog function has finished.



void setSubDialog ( String sDialogId, Object dialogObject, int nDialogType, String sMultiPageDialogTitle )



Called inside a report dialog function to create a sub dialog which is displayed after the dialog function has finished.

BR, Torsten

0
by Ilya Seletkov Author
Posted on Tue, 01/28/2014 - 05:34

A OK. I've found. Thanks!

0
by Albina Schupak
Posted on Mon, 03/07/2016 - 07:05

In reply to by thaase

Hi Torsten,

I just was looking for some option to run the dialog in it's own thread or something like that. It looks like no such a option to have the minus "-" button together with "x" in upper right corner of a dialog. Am I right?

Thanks.

0
by Ilya Seletkov Author
Posted on Tue, 02/11/2014 - 08:46

Thanks, Torsten!

I tested this example and it works fine.

Little off top question.

I wrote 3-page dialog with using "dialog.isInValidState()" and "dialog.setActiveWizardPages()" functionality. The second page can be deactivated. My problem is then second page is active, third page's "isInValidState()" works properly. But then second page is not active, third page's "isInValidState()" doesn't depend on user activity on third page. It looks like in some functionality pageNumber is calculated for all pages in dialog, and for active pages only in other functionality.

I've added "this.dialog.setMsgBox(...pageNumber...)" call in "this.dialog.isInValidState()" method and it shows "2" in both cases.

Do you know what this problem may be in?

0
by Ilya Seletkov Author
Posted on Tue, 02/11/2014 - 09:44

There is 3-pages test dialog with problem in validation of 3 page's state.

File attachments
0

Featured achievement

Genius
You like to help others solve their problems by answering questions.
Recent Unlocks
  • KF
  • KH
  • RG
  • Profile picture for user Vee_ARIS
  • Profile picture for user smarty
  • 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