Multiple Select in Maximo

Selecting single select items in maximo is piece of cake but configuring multiple select takes some customization to be implemented.

In this tutorial I will guide in creating Multiple select in Maximo.


I had a requirement to enable Multi-select in a lookup. The user should be able to select Multiple options from the list. All the selected option should be entered in a list as a comma separated list in a single text box.


  1. Add values in Libraries
    For our this custom multi select menu we need to add some code in Library and Lookup.
    Go to Application designer click on Select Action drop down. There select export System XML.CropperCapture[131]This will open the following dialog.
    In the dialog click the arrow against lookups and library. This will download lookups.xml and library.xmla. Lookup.xml
    We need to create a custom lookup for our requirement.  For this open lookups.xml
    Insert in the bottom of the file the following lines

    <table id="multicustomlookup" inputmode="readonly" selectmode="multiple">
     <tablebody displayrowsperpage="20" filterable="true" filterexpanded="true" id="multicustomlookup_">
     <tablecol dataattribute="value" id="multicustomlookup_value_multiple" labelcss="txtbold txtitalic" mxevent="selectrecord" mxevent_desc="Go To %1" sortable="true"/>
     <tablecol dataattribute="description" id="multicustomlookup_desc_multiple" sortable="true"/>

    Save the file

    b. Library.xml
    Open Library.xml. In this file search for this code snippet

    <dialog beanclass="psdi.webclient.system.beans.LookupBean" icon="img_lookup.gif" id="query_lookup" label="Select Value"> 
    <lookup id="querylookupcontrol"/> <buttongroup id="querylookup_3"> 
    <pushbutton default="true" id="querylookup_3_1" label="OK" mxevent="dialogok"/> 
    <pushbutton id="querylookup_3_2" label="Cancel" mxevent="dialogcancel"/> </buttongroup> 

    Replace it with the following code.
    [code language="xml"] <dialog beanclass="com.innovise.mobilink.maximo.webclient.MLMultiSelect" icon="img_lookup.gif" id="query_lookup" label="Select Value">
    <lookup id="querylookupcontrol"/>
    <buttongroup id="querylookup_3">
    <pushbutton default="true" id="querylookup_3_1" label="OK" mxevent="dialogok"/>
    <pushbutton id="querylookup_3_2" label="Cancel" mxevent="dialogcancel"/>
    Save the file and import both files (lookups.xml and library.xml) back in to maximo by using the import application definition in Maximo.

  2. Application DesignerIn application designer open the application you need to edit.
    Select the attribute you want to edit. Right click – Properties.
    In the lookup field insert “multicustomlookup” without quotes. Save the application.
  3. Java Code
    Create a new class file. Past the the following code in it.

     * Created by Rana Ahmed on 4/25/2016.
     * For Multi Selection in Domains
    import psdi.mbo.MboConstants;
    import psdi.mbo.MboRemote;
    import psdi.util.MXException;
    import psdi.webclient.system.beans.LookupBean;
    import psdi.webclient.system.controller.Utility;
    import java.rmi.RemoteException;
    import java.util.Iterator;
    import java.util.Vector;
    public class MLMultiSelectTest extends LookupBean {
        private static String comma = ", ";
        public void initialize() throws MXException, RemoteException {
            /* This is called to select the values when the dialog is initialized. It will loop through the comma seperated values and select them in the dialog.*/
            String fieldToSet = getParent().getReturnAttribute();
            MboRemote mbo =;
            String value = mbo.getString(fieldToSet);
            String values[] = value.trim().split("\\s*,\\s*");
            for (int i = 0; i < values.length; i++) {
                for (int j = 0; j < getMboSet().count(); j++) {
                    if (values[i].trim().equalsIgnoreCase(getMboSet().getMbo(j).getString("value").trim())) {
        public int execute() throws MXException, RemoteException {
            /*This selects the iterates the values and inserts them as a comma seperated list */
            boolean onListTab =;
            if (onListTab)
                return super.execute();
            String commaString = new String();
            String fieldToSet = getParent().getReturnAttribute();
            Vector<?> selectedRecords = getMboSet().getSelection();
            Iterator<?> selectionIterator = selectedRecords.iterator();
            while (selectionIterator.hasNext()) {
                MboRemote currentSelectedValue = (MboRemote);
                if (commaString.length() == 0)
                    commaString = currentSelectedValue.getString("VALUE");
                    commaString += comma + currentSelectedValue.getString("VALUE");
            //custom for Specific Fields
            //Use it if you want to process some custom rules.e.g. If a user selects a specific value, he cannot select any other value with it.
            //In my requirement if the user selects "Not Applicable" then he should not select any other value with it.
            if (fieldToSet.equalsIgnoreCase("MYCUSTOMFIELD") && commaString.contains("Not Applicable")) {
                if (!commaString.equalsIgnoreCase("Not Applicable")) {
                    String parms[] = new String[1];
                    parms[0] = "ABC";
                    Utility.showMessageBox(sessionContext.getCurrentEvent(), "myapp", "notapplicable", parms);
                    return 0;
            //End Custom Specific Rules
            MboRemote mbo =;
            mbo.setValue(fieldToSet, commaString, MboConstants.NOVALIDATION);
            return 1;

4. Deploy the code and restart Maximo
5. Check
Open you application and try selecting some multi select values. It should now paste them as comma seperated list.
Click again on lookup icon and it should display those comma separated values as selected values.

Thanks to this blog for much help


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this:
search previous next tag category expand menu location phone mail time cart zoom edit close