Update all lines in Inventory Usage application from header level.
for instance in this example we are using a GL Debit account field on header level, and when we enter values in it; it will be copied into all lines.
To do this we will run a simple automation script using jython:
Attribute Launch Point:
Script: GLDEBIT_INVUSAGE
Langauge: jython
Launch Point:
Object: INVUSE
Attribute: CUXGLDEBIT
Event: Validate
Script Code:
for instance in this example we are using a GL Debit account field on header level, and when we enter values in it; it will be copied into all lines.
To do this we will run a simple automation script using jython:
Attribute Launch Point:
Script: GLDEBIT_INVUSAGE
Langauge: jython
Launch Point:
Object: INVUSE
Attribute: CUXGLDEBIT
Event: Validate
Script Code:
lineSet= mbo.getMboSet('INVUSELINE')
line= lineSet.moveFirst()
while (line):
line.setValue("GLDEBITACCT",mbo.getString("CUXGLDEBIT"))
line = lineSet.moveNext()
No comments:
Post a Comment