Step 3. Edit Process Level _SCRIPT

In this step, you will edit your iiiPROC03_SCRIPT. You will add a new JavaScript function which will be used to store the Department and Section values (using iiiPROC03_HIDDEN) before the next function is called using the HandleEvent script shipped with LANSA.

1.  Using the Web Function Editor, open iiiPROC03_SCRIPT. 

2.  Add the following lines to an appropriate part of the page (where iii is your course assigned ID):

function HandleEventDeptSect(Proc,Func,Dept,Sect)

{

    document.LANSA.AiiiDEPTWK.value=Dept;

    document.LANSA.AiiiSECTWK.value=Sect;

    HandleEvent(Proc,Func);

}

 

4.  Save your document.