maximo

Maximo scripting cannot load second MboSet

只愿长相守 提交于 2019-12-08 11:46:27
问题 I've a script with an object launchpoint on INVOICELINE. For the mbo I want to get all INVOICELINES with the same PONUM as the current MBO (since they could be in other then the current mbo's invoice) In the script I find the PO like so: (to test for status) from psdi.server import MXServer from psdi.mbo import Mbo from psdi.mbo import MboConstants from psdi.security import UserInfo from psdi.server import MXServer myMXServer = MXServer.getMXServer() userInfo = mbo.getThisMboSet().getUserInfo

Jython: Parse JSON object to get value (object has array)

久未见 提交于 2019-12-08 11:19:14
问题 I have JavaScript that parses a JSON object (object has array) and returns the value from the ZONE field. var obj = JSON.parse(json_text); parsed_val = obj.features[0].attributes.ZONE I would like to convert the JavaScript code to Jython . This is what I've tried: from com.ibm.json.java import JSONObject obj = JSONObject.parse(json_text) parsed_val = obj.get('features.attributes.ZONE'); The Jython compiles, but it doesn't return a valid value (it returns None ). I think this is because I

Automation Script: If FieldA = 1, then set FieldB to 'one'

前提是你 提交于 2019-12-02 18:29:51
问题 I'm trying to break down this problem into manageable parts: Maximo spatial query. I think the first step is to create an automation script that does this: Takes a value from a field Does something with it Returns a value to a different field For example: Create a new work order Manually enter the WONUM as 1 Save The action of saving automatically triggers an automation script The script checks to see if the WONUM = 1 If true, then the DESCRIPTION is populated with the word one How can I do

Automation Script: If FieldA = 1, then set FieldB to 'one'

我与影子孤独终老i 提交于 2019-12-02 07:56:35
I'm trying to break down this problem into manageable parts: Maximo spatial query . I think the first step is to create an automation script that does this: Takes a value from a field Does something with it Returns a value to a different field For example: Create a new work order Manually enter the WONUM as 1 Save The action of saving automatically triggers an automation script The script checks to see if the WONUM = 1 If true, then the DESCRIPTION is populated with the word one How can I do this? ( Maximo 7.6.1.1 ) Swaroop Use the below code to set the DESCRIPTION to one when WONUM is set to

Maximo field length of table not matching

对着背影说爱祢 提交于 2019-12-02 07:30:54
The cmd log of configDB.dat says "The row length of the table exceeded a limit of ...." Is this the reason for my maxiomo server not starting up? How can I address this issue? (screenshot of log attached below) Yes, this is the reason Maximo won't start. You need to shorten the requested width of the LOCATIONS table. If you have a backup, you should restore to it and use the UI to re-make your changes but make sure the sum of the lengths of the persistent attributes is less than 32677. If you don't have a backup, then you'll have to use SQL to figure out which attributes you want to shorten

Take value from FieldA, send to db function, return value to FieldB

浪子不回头ぞ 提交于 2019-12-01 11:53:59
I have a work order in Maximo. The work order application has custom fields: FieldA = 'Hello' FieldB I want to take the value from FieldA and pass it to a function in the Oracle database: CREATE OR REPLACE function hello_world(var1 in varchar2) return varchar2 is hw varchar2(15); begin if var1 = 'Hello' then hw := var1 || ', World!'; end if; return hw; end; / And I want FieldB to display the value that was returned by the function: FieldB = hello_world(FieldA) >>> Hello, World! How can I do this? (Version 7.6.1.1; desktop/classic) I would create an Automation Script with an Attribute Launch

Maximo/GIS spatial query

大憨熊 提交于 2019-11-28 07:12:01
问题 I have a work order (WO) in Maximo: The WO has Latitude(Y) and Longitude(X) coordinates in the Service Address tab. The WO has a custom zone field. And there is a spatial table (polygon layer) in a separate GIS database. I want to do spatial query to return an attribute from the polygon record that it intersects and use it to populate zone in the WO. How can I do this? (Maximo 7.6.1.1 including Maximo Spatial) 回答1: To do this live in Maximo using an automation script is possible or by writing