Field Level Class
For example you want to make a SerialNum field in Asset Screen mandatory based on some requirement we need to modify in your specific class
getMboValue("SERIALNUM").SetRequired(true);
Automation Script
Similarly below script can be used to make a field required using Automation script.
from psdi.util.logging import MXLogger
from psdi.util.logging import MXLoggerFactory
from psdi.mbo import MboConstants
logger = MXLoggerFactory.getLogger("maximo.script");
logger.debug("==================== MandatoryAUTOSCRIPT START =====================")
mbo.setFieldFlag("SERIALNUM",MboConstants.REQUIRED, True)
logger.debug("==================== MandatoryAUTOSCRIPT END=====================")
For example you want to make a SerialNum field in Asset Screen mandatory based on some requirement we need to modify in your specific class
getMboValue("SERIALNUM").SetRequired(true);
Automation Script
Similarly below script can be used to make a field required using Automation script.
from psdi.util.logging import MXLogger
from psdi.util.logging import MXLoggerFactory
from psdi.mbo import MboConstants
logger = MXLoggerFactory.getLogger("maximo.script");
logger.debug("==================== MandatoryAUTOSCRIPT START =====================")
mbo.setFieldFlag("SERIALNUM",MboConstants.REQUIRED, True)
logger.debug("==================== MandatoryAUTOSCRIPT END=====================")
No comments:
Post a Comment