How to access the Maximo list where clause programmatically

后端 未结 2 912
一整个雨季
一整个雨季 2021-01-19 04:50

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

相关标签:
2条回答
  • 2021-01-19 05:33

    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.

    0 讨论(0)
  • 2021-01-19 05:36

    In Maximo 7.6.1.1/Jython, we can use the getWebClientSession() method:

    wclause = service.webclientsession().getCurrentApp().getResultsBean().getMboSet().getUserAndQbeWhere() 
    
    service.error("The WHERE clause is : ", wclause);
    
    • At the time that this was written, the getWebClientSession() method wasn't included in the docs (because the docs were for version 7609).

    • Credit goes to AndreasBr on DeveloperWorks for finding the original answer: Sending "dialogok" from Automationscript | get WebClientSession in Jython.

    0 讨论(0)
提交回复
热议问题