Maximo:更新相关表时,使用脚本来更新工作订单 [英] Maximo: Use script to update work order when a related table is updated

查看:117
本文介绍了Maximo:更新相关表时,使用脚本来更新工作订单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Maximo 7.6.1.1中有一个自动化脚本,用于更新WORKORDER表中的自定义字段.

I have an automation script in Maximo 7.6.1.1 that updates custom fields in the WORKORDER table.

当用户编辑LatitudeYLongitudeX字段(在WOSERVICEADDRESS表中)时,我想执行自动化脚本.

I want to execute the automation script when the LatitudeY and LongitudeX fields (in the WOSERVICEADDRESS table) are edited by users.

我需要哪种启动点?

推荐答案

您可以在latitudeY字段上创建一个属性操作启动点,在longitudeX字段上创建另一个操作.每当修改每个字段时,它们都会触发,因此,在更改latitudeY字段时,它将触发一次;如果更改了longitudeX字段,则将再次触发,如果再次更改了longitudeX字段,则将依此类推.保存数据之前也是这样,因此用户可以选择取消更改,但脚本仍会被触发.

You can create an attribute action launch point on the latitudeY field and another on the longitudeX field. These will trigger whenever each field is modified, so it will fire once when the latitudeY field was changed, again if the longitudeX field is changed, again if the longitudeX field is changed again, and so on. This is also all before the data is saved, so the user may choose to cancel their changes, but the scripts will still have fired.

您还可以为WOSERVICEADDRESS创建保存时"对象启动点(如果实际上是通过地图进行更新的话).这将在保存对象中的任何数据时运行,因此您必须进行额外的检查,以查看这些字段中的任何一个是否已更改,然后然后执行您的逻辑,但是至少它将运行一次并且仅当用户承诺其更改时.

You could also make an "on save" object launch point for WOSERVICEADDRESS (if that's what is actually being updated via the map). This will run any time data in the object is saved, so you would have to do the extra checks of seeing if either of those fields have changed and then do your logic, but at least it would run once and only if the user commits to their changes.

这篇关于Maximo:更新相关表时,使用脚本来更新工作订单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆