选项卡页面上桌子上的数据过滤问题

选项卡页面上桌子上的数据过滤要在初始化时就加载,一般写在AppBean里或者通过界面帮定关系来显示,在AppBean里主要是通过initializeApp()方法来实现。[@more@]

比如:

公共空initializeApp()抛出MXException RemoteException异常{

MXSession MXSession;
MXSession=getMXSession ();
如果(MXSession==null)返回;

字符串initWhere=白永嘈?鞍踩薄?
如果(initWhere !=null) {
setAppWhere (initWhere);
重置();
如果(resultsBean !=null) {
resultsBean.setAppWhere (initWhere);
resultsBean.reset ();
}
如果(quickFindRemote !=null) {
quickFindRemote.setAppWhere (initWhere);
quickFindRemote.reset ();
}
}
super.initializeApp ();
}

公共int插入()抛出MXException RemoteException {
int房车=super.INSERT ();
OPManagerDeskMbo mbo=(OPManagerDeskMbo) getMbo ();
如果(mbo==null | |”“.equals (mbo)) {
把新MXApplicationException(“”,“取得的记录为空”);
}
mbo。setValue(“子类型”,“安全”);
返回房车;
}

选项卡页面上桌子上的数据过滤问题