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

前端 未结 1 799
眼角桃花
眼角桃花 2021-01-16 10:35

I have a work order in Maximo. The work order application has custom fields:

FieldA = \'Hello\'

FieldB

I w

相关标签:
1条回答
  • 2021-01-16 10:55

    I would create an Automation Script with an Attribute Launch Point on FieldA. The script will have to use a reference to the database manager and the user's connection key to connect directly to the database, and then use some standard java.sql calls to create a statement, execute it, and extract the results. Then it would put the results in FieldB.

    To do all that, it will help to have the Maximo business objects JavaDocs and the Java 8 JavaDocs on hand, on top of the Automation Scripting help available from within Maximo.

    If you need someone to do that coding for you, I suggest hiring a consultant. :-)

    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 your script's comments your justification for not following good practice.

    0 讨论(0)
提交回复
热议问题