short version to get the PreviousValue which can only be get via the MboValueAdapter
pstatus= mbo.getMboValue("status").getPreviousValue().asString()
Example a script to get previous status and current status to display message.
pstatus= mbo.getMboValue("status").getPreviousValue().asString()
if mbo.getString("status") == 'COMP' and pstatus == 'WASSET':
if mbo.getInt("item.rotating") == 1:
warngroup = "assrecmsg"
warnkey = "assrecmsg"
Thanks
pstatus= mbo.getMboValue("status").getPreviousValue().asString()
Example a script to get previous status and current status to display message.
pstatus= mbo.getMboValue("status").getPreviousValue().asString()
if mbo.getString("status") == 'COMP' and pstatus == 'WASSET':
if mbo.getInt("item.rotating") == 1:
warngroup = "assrecmsg"
warnkey = "assrecmsg"
Thanks
Nice Article.
ReplyDeleteThis can also be done with implicit variable as below:
var_initial, var_previous