如何解决保存和取消 mxevent IBM Maximo
我有一个 texBox 字段,想在对话框中更改它的值。怎么做这个对话不保存我的价值和对话保存我的价值?
<dialog id="XOratingBRANDPOPUP" label="chancge value">
<textBox dataattribute="ratingBRAND" id="maintab_attr19" />
<buttongroup id="bookmarks_11">
<pushbutton default="true" id="bookmarks_3_1asd" label="Ok" mxevent="dialogok"/>
<pushbutton default="true" id="bookmarks_2_1asd" label="Cancel" mxevent="dialogcancel"/>
</buttongroup>
</dialog>
我尝试添加类
public class XoCarsAppBens extends AppBean {
public XoCarsAppBens() {
}
public int CUSTOMDIALOGCANCEL() throws remoteexception,mxexception {
MboRemote thisMbo = this.getMbo();
thisMbo.setValue("ratingBRAND",thisMbo.getDatabaseValue("ratingBRAND").toString());
this.clientSession.queueEvent(new WebClientEvent("dialogcancel",this.app.getCurrentPageId(),null,this.clientSession));
return EVENT_HANDLED;
}
}
但它不起作用
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。