In Maximo v7.6 we couldn't find an obvious way to have an automations script fire from a lookup dialog spawned from an initial dialog. During our upgrade to MAS v9 I see this new system property that made me think it was now possible.
mxe.script.allowbeanscript
Information seems limited on how to properly execute any implementation when you active this property.
Is anyone using this property and converted java classes to automation scripts in a similar use case as mine?
Our current setup includes the user opening an application and using a more action to open a dialog to capture user input. One of the attributes on this dialog has a lookup dialog. It allows the user to select multiple classifications. The class we created takes the selected values, concatenates them and returns them to the parent/source field on the initial dialog.
<dialog datasrc="SC_INSPWO" id="INSPWOREQ" label="Add Inspection Workorder Request" mboname="SC_INSPWOREQ" whereclause="1=2">
...
<textbox dataattribute="SC_ASSETCLASSSTRUCTURE" id="SC_ASSETCLASS_SELECT" lookup="sc_assetclassificationlookup"/>
...
</dialog>
Lookup dialog:
<dialog beanclass="soco.webclient.beans.common.SC_MultiSelectLookupBean" id="lookup_sc_assetclassificationlookup" label="Select Classifications" mboname="classstructure" orderby="CLASSIFICATIONID" whereclause="classstructureid in (select classstructureid from CLASSUSEWITH where objectname='ASSET')">
<table id="sc_assetclassification_table" label="Classification" selectmode="multiple">
<tablebody displayrowsperpage="15" filterable="true" id="sc_assetclassification_table_tablebody" inputmode="readonly">
<tablecol filterable="false" id="sc_assetclassification_table_tablebody_1" mxevent="toggleselectrow" sortable="false" type="event"/>
<tablecol dataattribute="classificationid" id="sc_assetclassification_table_tablebody_2"/>
<tablecol dataattribute="description" id="sc_assetclassification_table_tablebody_3"/>
</tablebody>
</table>
<buttongroup id="sc_assetclassification_2">
<pushbutton default="true" id="sc_assetclassification_2_1" label="Select Classification" mxevent="dialogok"/>
<pushbutton id="sc_assetclassification_2_2" label="Cancel" mxevent="dialogcancel"/>
</buttongroup>
</dialog>
#MaximoApplicationSuite------------------------------
Matthew Dudley
Southern Company Services
------------------------------