In the WOTRACK app of Maximo, I need to find some way to programmatically access the where clause of the current window query. It\'s clear this exists somewhere in Maximo, s
Maximo has a number of different where clause sources (app restrictions, object restrictions, relationships, QBE (Query By Example) filters, site restrictions, and more). With an Automation Script (Python or JavaScript), you should be able to snag what you're looking for from mbo.getThisMboSet().getUserWhere()
or .getUserAndQbeWhere()
or .getWhere()
. As a commenter pointed out, .getCompleteWhere()
may also be helpful.
You can find the JavaDocs on those psdi.mbo.MboSet methods, or find other "where clause getting" methods, here.