I would like to know how to perform looping using automation script on a non-persistent object using automation script in maximo. The script is written on the non-persistent object triggered during Initialize . This non-persistent object is mapped to a dialog in work order tracking application and should bring a list of records. There is no error however when the dialog is opened it brings only 1 record. Below is the python script,
npSet=mbo.getOwner().getMboSet("CXDEMO")
if(npSet.count()>0):
for i in range(0,npSet.count()):
np = npSet.getMbo(i)
mbo.setValue("WONUM",mbo.getOwner().getString("WONUM"))
mbo.setValue("SITEID",mbo.getOwner().getString("SITEID"))
mbo.setValue("CONTRACTNUM",np.getString("CONTRACTNUM"))
mbo.setValue("VENDOR",np.getString("VENDOR"))