Can Maximo formulas return null?

社会主义新天地 提交于 2020-01-05 04:13:09

问题


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 up with:

NVL(SERVICEADDRESS$LongitudeX, NVL(ASSET$X, NVL(LOCATION$X,0) ) )
                                                           ^
                                           I would prefer null, not 0

Question:

If all of the search-values end up being null, is there a way to return null, rather than 0?

I've tried using the word null, but I get an error:

BMXAA9399E - This formula is invalid because the following attribute or token is 
             invalid: null. Specify a valid attribute and try again.

I've also tried "", but that returns 0.

And using a field who's value is null also throws an error.

来源:https://stackoverflow.com/questions/59447159/can-maximo-formulas-return-null

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!