Component S_011ADDSUBITM

LANSA

Component S_011ADDSUBITM
The parameters to the Java Script functions SetKey and ShowEmpDet have to change. They are used each time you click on a Section in the menu on the left-hand side.

SetKey must receive the key field values that will allow the browselist to be built. Currently, the fields #DEPTMENT and #SECTION are merged as the parameters because they are the required keys to access PSLMST1 and retrieve all employees belonging to the department and section selected.

You should merge in the field names according to your own files.

In this component, ShowEmpDet must be passed blanks. Normally it would receive a valid employee number (see component S_011RBSE). However, whenever they click on a section, any Employee details being displayed must be blanked out. Passing a blank value means that the FETCH to the Employee file will fail details will disappear.