from psdi.common.context import UIContext
wclause = UIContext.getCurrentContext().getWebClientSession().getCurrentApp().getResultsBean().getMboSet().getUserAndQbeWhere()
service.error("", wclause);
wclause = UIContext.getCurrentContext().getWebClientSession().getCurrentApp().getResultsBean().getMboSet().getUserAndQbeWhere()
service.error("", wclause);
Original post here:
ReplyDelete"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
Simplified to:
ReplyDeletefrom psdi.common.context import UIContext
wclause = service.webclientsession().getCurrentApp().getResultsBean().getMboSet().getUserAndQbeWhere()