Web Component S_011ADDSUBITM: Add Submenu Item

LANSA

Web Component S_011ADDSUBITM: Add Submenu Item

<!-- Add submenu item.-->
<!-- Clicking on a submenu will cause: -->
<!-- 1) JAVA SCRIPT function SetKey in SET011C is invoked passing it the Department and -->
<!-- Section selected. At the same time, the frame emplis will be refreshed causing -->
<!-- SET011C to be executed. As a result, a browselist with the Employees of the -->
<!-- selected Department and Section will be displayed. -->
<!-- 2) JAVA SCRIPT function ShowEmpDet in SET011D is invoked passing blanks. At the same -->
<!-- time, the frame empdet will be refreshed causing SET011D to -->
<!-- be executed. Normally, ShowEmpDet is invoked when an employee in the browselist -->
<!-- is selected and receives a valid employee number (see component S_011RBSE). -->
<!-- In this case however, it is passed blanks so that the RDML will not find an employee with-->
<!-- such key and set the ONCONDITION flag FIRS_TIME so that effectively that frame will be -->
<!-- blanked out. This must happen each time a different department/section is selected so that ->
<!-- any employee details that might be displaying disappear. -->
<!-- IMPORTANT: THE CODE BELOW MUST REMAIN IN ONE LINE!! -->

m<RDML MERGE="S_011MNUM">.addItem("<A HREF='Javascript:parent.emplis.SetKey(&quot;<RDML MERGE="DEPTMENT">&quot;,&quot;<RDML MERGE="SECTION">&quot;),parent.empdet.ShowEmpDet(&quot; &quot;)'><RDML MERGE="S_011MDES"></A>", "<RDML MERGE="S_011MCOL">");