Hello Charles,
I managed to get the data what I need in Oid String . My problem got resolved . Thank you so much for your help.
I have extended the NmObject to my custom Bean created a URL encoded Json Object and setting that as Oid. In the Json object I have input all the needed data. Below is the code I used. I got the values in formprocessor using getNmOidSelected().
public class customBean extends NmObject {
String partNumber;
String partName;
String partState;
String locationName;
String clientNumber;
String plantNumber;
boolean nonSelectableRow;
public customBean () {
}
public customBean (WTPart selectedPart, WTPart selectedDownStreamSystem, boolean updateFlag,String traType)
{
updateNmOid(selectedPart, selectedDownStreamSystem, updateFlag,traType);
}
private void updateNmOid(WTPart selectedPart, WTPart selectedDownStreamSystem,String traType)
{
NmSimpleOid simpleOid = new NmSimpleOid();
JSONObject joNmOid = new JSONObject();
try {
joNmOid.put("selectedPartOid", selectedPart.getPersistInfo().getObjectIdentifier().toString());
joNmOid.put("selectedDssOid", selectedDownStreamSystem.getPersistInfo().getObjectIdentifier().toString());
joNmOid.put("updateFlag", updateFlag);
joNmOid.put("transferType", traType);
String encodedBeanKey = Base64.encodeBase64URLSafeString(joNmOid.toString().getBytes());
simpleOid.setInternalName(encodedBeanKey);
} catch (JSONException ex) {
ex.printStackTrace();
}
setOid(simpleOid);
}
}