Thursday, August 15, 2013

Customizing your Lawson Process Flow

Have you ever wanted to create custom JavaScript functions for your Lawson Process flow?  Have you ever been afraid of modifying the pflow.js file in your IPA?  Well, here is a little info that I think you will find very useful.
 
Believe it or not, it's actually possible to create your own custom-made or user-made JavaScript library called "pflow_user.js."  You create this file in the same folder as the pflow.js file that is delivered with the install.  The Process Flow designer will treat your custom file exactly like (and in parallel with) the functions in the pflow.js file.  Your custom functions will also appear in the assign node "Functions" drop down list.  However, you must be careful to ensure that your file is formatted exactly like the provided pflow.js file for this to work.
 
Another great benefit of creating your own library is that if you create a JavaScript function with the same name as a default function, your new function will override or extend the existing function.  This is an incredibly powerful feature, as it allows you to extend valuable existing functions without having to create them entirely from scratch and while preserving the original for backup purposes.
 
This will work on both the Pflow Classic 9.0.1 version and the IPA (Landmark) 9.2.x versions.  It may even work on earlier versions.  This should be easy enough to check.
 
I hope this has been of some benefit to you.  Have a great week!
 

No comments:

Post a Comment