Tuesday 18 February 2020

Uses of UIContext (bean) via automation Script | IBM Maximo

from psdi.common.context import UIContext

wclause = UIContext.getCurrentContext().getWebClientSession().getCurrentApp().getResultsBean().getMboSet().getUserAndQbeWhere()

service.error("", wclause);

2 comments:

  1. Original post here:

    "It works! Access the UI via an automation script (using getWebClientSession)"
    https://community.ibm.com/community/user/internetofthings/communities/community-home/digestviewer/viewthread?MessageKey=df60cf84-d3c6-4c89-84e3-2dcfd9642a9a&CommunityKey=3d7261ae-48f7-481d-b675-a40eb407e0fd&tab=digestviewer#bmdf60cf84-d3c6-4c89-84e3-2dcfd9642a9a

    ReplyDelete
  2. Simplified to:

    from psdi.common.context import UIContext
    wclause = service.webclientsession().getCurrentApp().getResultsBean().getMboSet().getUserAndQbeWhere()

    ReplyDelete