Hi Pradeep,
I created a simple python script to concatenate a job plan description on to a work order description (pm record description) at PM wogen. It is an object launch point auto script on the work order object. It could easily be an attribute launch point.
The two variable and binding respectively:
- jpdesc
- Variable Type: IN
- Binding Type: Attribute
- Binding Value: JOBPLAN.DESCRIPTION
- wodesc
- Variable Type: INOUT
- Binding Type: Attribute
- Binding Value: DESCRIPTION
Script: wodesc = str(wodesc) + '--' + str(jpdesc)
------------------------------
Bill Steudler
The Pennsylvania State University
------------------------------
Original Message:
Sent: 04-26-2021 10:45
From: Pradeep Rout
Subject: Is there a way to concatenate two attributes through Automation scripting
Is there a way to concatenate two attributes through Automation scripting ?
I am trying with below approach ->
Script with attribute launch point.
OBJECT -->INVVENDOR
Attribute --> MODELNUM (idea is when modelnum gets changed this will combine model and catelog andsave in description field)
from psdi.mbo import MboConstants
modelNum = mbo.getString("MODELNUM")
catelogNum = mbo.getString("CATALOGCODE")
DESCRIPTION = modelNum + catelogNum
mbo.setValue("DESCRIPTION" ,DESCRIPTION, MboConstants.NOACCESSCHECK)
Please let me know if i am doint this incorrectly
#Customizations
------------------------------
Pradeep Rout
TCSL
------------------------------