maximo

JavaScript force an OnChange in Maximo

天大地大妈咪最大 提交于 2020-01-15 23:02:20
问题 I'm currently working on a Bookmarklet for Maximo, which is a Java EE application, and I need to populate a few input boxes. Generally when a use inputs data into the box they click a button that gives them a popup and they search for the value to be added to the script. Or they can type the name and hit tab/enter and it turns it to capital letters and does a few things in the background (not sure what it does exactly). I currently use Javascript: $('mx1354').value = "KHBRARR"; $('mx1354').ov

Populating a Maximo field using a db function: Why is this a bad practice?

若如初见. 提交于 2020-01-14 06:53:32
问题 In a separate SO question, I asked how to populate a Maximo field using a db function: Take value from FieldA, send to a db function, and return value to FieldB A Stack Overflow community member was kind enough to answer the question and provided this advice: And all that said, you should just use the automation script to do what you have the database function doing, if at all possible. To be more blunt, what you are wanting to do is not considered good practice. So, make sure to include in

Maximo JS automation script: “importPackage” is not defined

佐手、 提交于 2020-01-06 04:57:25
问题 I'm attempting to use a JS script from Maximo 76 Scripting Features (PDF download). importPackage(java.util) importPackage(Packages.psdi.server) var ctx = new HashMap(); ctx.put("url","http://localhost:7001/maximo/oslc/script/countryapi?_lid=wilson&_lpwd=wilson"); service.invokeScript("LIB_HTTPCLIENT",ctx); var jsonResp = ctx.get("response"); var countries = JSON.parse(jsonResp); When I execute the script I get this error: ReferenceError: "importPackage" is not defined in <eval> at line

Can Maximo formulas return null?

社会主义新天地 提交于 2020-01-05 04:13:09
问题 The bounty expires in 4 days . Answers to this question are eligible for a +50 reputation bounty. User1973 wants to draw more attention to this question. In Maximo 7.6.1.1: I have an attribute formula on a persistent field called WORKORDER.X . The field type is decimal, length is 18, and scale is 10. The formula is meant to do this: If WOSERVICEADDRESS.LONGITUDEX is not null, use it Else, if ASSET.X is not null, use it Else, if LOCATION.X is not null, use it This is the expression I've come

Jython: Open URL in browser (without importing Python libraries)

試著忘記壹切 提交于 2020-01-05 03:51:15
问题 Maximo 7.6.1.1: Using Jython, I want to open a URL in a browser (in Windows 10). I've found a Java example: import java.awt.Desktop; import java.net.URI; if (Desktop.isDesktopSupported() && Desktop.getDesktop().isSupported(Desktop.Action.BROWSE)) { Desktop.getDesktop().browse(new URI("http://www.example.com")); } And I've attempted to convert it to Jython: from java.awt import Desktop from java.net import URI desktop = Desktop.getDesktop() uri = URI("http://google.com/#q=wonum1%2Cwonum2

Describe relationship in maximo 7.5

陌路散爱 提交于 2020-01-02 09:57:32
问题 Describe relationship in maximo 7.5 with all detail including backend database process. Suppose I create a relationship in maximo 7.5 asset management between owner_group and person_group "owner_group=:person_group" then what is the actual meaning of this query. I am quite confused about it. Can you please explain what is the process in database? 回答1: Maximo "relationships" are simply the "where clause" snippet of an SQL statement. The "child object" that you define is the table that "where

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

早过忘川 提交于 2019-12-30 11:33:08
问题 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

Report parameter validation message with Birt

可紊 提交于 2019-12-23 20:24:01
问题 I'm creating a BIRT report using certain parameters. I have an int parameter (Number of months) which values can be from 1 to 12. I need to check if the value is bigger than 12. In such case it should show me a customized message and not an error like it is doing right now. Error: org.eclipse.birt.report.service.api.ReportServiceException: The validation for parameter "nummonths" fails. Current script: if (params["nummonths"].value > 12 ) { false; } else { true; } I create reports in BIRT to

Maximo field length of table not matching

别等时光非礼了梦想. 提交于 2019-12-20 06:00:12
问题 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) 回答1: 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.

Adding a new row to another table using java in Maximo

妖精的绣舞 提交于 2019-12-13 04:48:38
问题 I have two tables that I'm working with: KINCIDENT and ASSISTANT. The main one is KINCIDENT and the two are linked using an ID. I'm able to add a new row from the application but I want to do this using Java. I tried the following code but did not work: MboSetRemote assistSet = MXServer.getMXServer().getMboSet("ASSISTANT",userInfo); MboRemote newAssist = assistSet.add(); newAssist.setValue("LOCATION",x); newAssist.setValue("INCNUM",y); assistSet.save(); I checked to see if the row was added