Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
beans;
import java.rmi.RemoteException;
import java.util.Vector;
import psdi.mbo.MboConstants;
import psdi.mbo.MboRemote;
import psdi.mbo.MboSetRemote;
import psdi.util.MXException;
import psdi.util.logging.FixedLoggers;
import psdi.util.logging.MXLogger;
import psdi.webclient.beans.extsystem.MultiSelectBean;
import psdi.webclient.system.beans.AppBean;
import psdi.webclient.system.beans.DataBean;
import psdi.webclient.system.controller.WebClientEvent;
/**
* This method is used to initialize the mboSet
*
* @throws MXException
* the MAXIMO exception
* @throws RemoteException
* the remote exception
*/
logger.info("Entermethod : linkAssetstoJP()");
String jpNum = app.getAppBean().getString("JPNUM");
String owner = app.getAppBean().getMboName();
MboRemote jpRec = app.getAppBean().getMbo();
logger.info("owner: " + owner + " JpNUM :"+ jpRec.getString("JPNUM"));
// to get data from table, use DataBean and table id from xml
DataBean selectsAssetsToLink =
this.app.getDataBean("selectsAssetsToLinklogger.info("retrievedctsAssetsToLink
is...."+ selectsAssetsToLink.getSelection().size());
if (!selectsAssetsToLink.isEmpty() && selectsAssetsToLink != null) {
selectedResources = selectsAssetsToLink.getSelection();
int selRecCount = selectedResources.size();
logger.info("selectedcount : " + selRecCount + " JpNum :"+ jpNum);
// Relation B/W JP and JPAssetsPLink
MboSetRemote jpAssetLink = jpRec.getMboSet("JPASSETSPLINK");
}
//logger.info("Saverecords added");
jpAssetLink.save();
jpAssetLink.close();
this.app.getDataBean("assets_jpassets_table").reloadTablethis.this.app.getDataBean(
"assets_jpassets_table").refreshTablethis.this.app.getDataBean("assets_jpassets_tab
le").getMboSet().resetloglogger.info("Exitmethod : linkAssetstoJP()");
}
}
}
<!--
===================================================================================
====================================================================-->
<dialog beanclass="cust.webclient.system.beans.LinkRFQLineAwardedBean"
id="COAWARFQ" label="Copy Awarded RFQ Lines to Contract">
<table id="LinkRFQLineAwarded_table" label="RFQ" selectmode="multiple">
<tablebody displayrowsperpage="10" filterable="true"
id="LinkRFQLineAwarded_table_tablebody">
<tablecol dataattribute="RFQNUM"
id="LinkRFQLineAwarded_col_RFQNUM" mxevent="selectrecord" sortable="false"
type="link"/>
<tablecol dataattribute="VENDOR"
id="LinkRFQLineAwarded_col_VENDOR"/>
<tablecol dataattribute="ITEMNUM"
id="LinkRFQLineAwarded_col_ITEMNUM"/>
<tablecol dataattribute="DESCRIPTION"
id="LinkRFQLineAwarded_col_DESCRIPTION"/>
<tablecol dataattribute="ORDERQTY"
id="LinkRFQLineAwarded_col_ORDERQTY"/>
<tablecol dataattribute="UNITCOST"
id="LinkRFQLineAwarded_col_UNITCOST"/>
</tablebody>
</table>
<buttongroup id="LinkRFQLineAwarded_button">
<pushbutton default="true" id="LinkRFQLineAwarded_button_ok"
label="OK" mxevent="dialogok"/>
<pushbutton id="LinkRFQLineAwarded_button_cancel" label="Cancel"
mxevent="dialogcancel"/>
</buttongroup>
</dialog>
<!--
===================================================================================
====================================================================-->
https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-
0000-0000-0000-000014146855