How to access the Maximo list where clause programmatically

后端 未结 2 935
一整个雨季
一整个雨季 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: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.

提交回复
热议问题