How To Create A Custom Dialog Box In Maximo

Dialog boxes are the pop up windows in Maximo. All dialog boxes in Maximo has its own functionality. It is possible to create your own custom built Dialog box and give its functionality by writing a custom bean class.

Ok, in the Bean Class Sample In Maximo section, I've posted about implementing a bean class. This class was about the dialog box which I am going to tell you today.

I mostly use the fields which are going to be used in dialog as non-persistent fields. Non-persistent fields are the fields which are not created as columns in database but Maximo can see them as columns but nothing are stored in the database.In Database Configuration you can add new row for attributes as non-persistent fields.

Let's start with step 1. First you have to add a signature option in Application Designer. You can use this signature option in both toolbar or select action menu or as a button on screen. Go To Select Action -> Add/Modify Signature Options
and add a new row.

As i said before, you need to make this dialog for the user visible somewhere on the screen such as Select Action Menu, Toolbar or as a button. Sigoption you created is important in Select Action Menu or Toolbar. You have to add this sigoption to the Select action menu or toolbar like that.

But I just added a button into the application to handle this. In the button properties, you should give the id of the dialog that you will create. Don't forget we are going to create our dialog manually. Just be patient. In this example, I will give the ID as customdialog. So the button properties event will be customdialog.

Ok now it's time to create our own custom dialog. Unfortunately, in Maximo, there is no GUI way to do this. We have to export the screen XML, manually edit the file and then re-import it.

From the App Designer screen, click the export XML button
. The XML file will be opened in your web browser. Just go to File -> Save As and save the file into your local file system. Now edit the XML file with your Wordpad or Notepad editor. Dialogs are defined between DIALOG tags. Do a search for a dialog word. There is going to be more than one dialog tags. Just pick one which is simple or short. Copy everything between the open and close DIALOG tags. Then go to the end of the document and paste it just before the tag. If you tried to save and load it, you would get an error about a duplicate ID. Don't forget to change the ID's through tags. It's important. For instance, this is my dialog which is custom.

It looks like that

Now save your changes and go back into the App designer in Maximo. Use the import XML button to import your new screen. The main error you would get will be that one of the ID tags is not unique. Change its value and re-import.

We are now ready to customize our dialog using Application Designer. Go to Application Designer, find your application, press the Edit Dialogs button on toolbar. Then you will see all the dialogs that your application uses. Find your custom made dialog by using filter option and click the dialog box. It will pop up your dialog.

Mainly it is empty when you first create it. Then using the pallette customize it like i did.

If you attach your dialog to Select Action Menu or Toolbar, the last step for you (and most often forgotten) is to enable security for your new dialog box. By default, when you add a new signature option, it is disabled for all. To change this, GoTo->Security->Security Group. Then edit any group that will need access to this dialog box. Then click on the Applications tab. Now find your application and in the bottom half of the screen, enable your dialog box.

Now we're done. The next step will be the bean class step which will be attached to your dialog. I told about this subject in Bean Class Sample In Maximo section.


Post a Comment