LANSA for the WEB Component S_171CALI
<!-- This is the component for the icon image next to the Date field. -->
<!-- Clicking on it invokes the Java Script function createCalendar, present. -->
<!-- in the S_171ACALENDAR component (merged in the HTML of SET171C). -->
<!-- createCalendar in S_171ACALENDAR receives 6 parameters:-->
<!-- Width of calendar window in pixels, in this case 160 -->
<!-- Height of calendar window in pixels, in this case 170 -->
<!-- position of calendar window from top (y) in pixels, in this case 260-->
<!-- position of calendar window from left (x) in pixels, in this case 550-->
<!-- format of the date to return 4 -->
<!-- '__DATE -<RDML MERGE="&ROWNUM" FORMAT="4"> D' = -->
<!-- field name receiving the date back from the calendar. -->
<!-- This is the complete NAME= that a LANSA field adopts when it is in a -->
<!-- browselist (you can verify it by running any web function with a browselist and -->
<!-- viewing the source of the page). The actual LANSA field name in this case is DATE. -->
<!-- If you were to use your own name, replace DATE with your fieldname and padd to 10 -->
<!-- characters without counting the double underscore. The 11th character -->
<!-- should be the hyphen (-). For example, if your field was called -->
<!-- MYDATE: '__MYDATE -<RDML MERGE="&ROWNUM" FORMAT="4"> D' = -->
<A HREF="javascript:createCalendar(160,170,260,550,4, '__DATE -<RDML MERGE="&ROWNUM" FORMAT="4"> D')">
<IMG ALT="Click here for calendar prompt" BORDER=0 SRC="<RDML MERGE="*LW3SETCALICON">"></A>
<!-- This is the component for the icon image next to the Date field. -->
<!-- Clicking on it invokes the Java Script function createCalendar, present. -->
<!-- in the S_171ACALENDAR component (merged in the HTML of SET171C). -->
<!-- createCalendar in S_171ACALENDAR receives 6 parameters:-->
<!-- Width of calendar window in pixels, in this case 160 -->
<!-- Height of calendar window in pixels, in this case 170 -->
<!-- position of calendar window from top (y) in pixels, in this case 260-->
<!-- position of calendar window from left (x) in pixels, in this case 550-->
<!-- format of the date to return 4 -->
<!-- '__DATE -<RDML MERGE="&ROWNUM" FORMAT="4"> D' = -->
<!-- field name receiving the date back from the calendar. -->
<!-- This is the complete NAME= that a LANSA field adopts when it is in a -->
<!-- browselist (you can verify it by running any web function with a browselist and -->
<!-- viewing the source of the page). The actual LANSA field name in this case is DATE. -->
<!-- If you were to use your own name, replace DATE with your fieldname and padd to 10 -->
<!-- characters without counting the double underscore. The 11th character -->
<!-- should be the hyphen (-). For example, if your field was called -->
<!-- MYDATE: '__MYDATE -<RDML MERGE="&ROWNUM" FORMAT="4"> D' = -->
<A HREF="javascript:createCalendar(160,170,260,550,4, '__DATE -<RDML MERGE="&ROWNUM" FORMAT="4"> D')">
<IMG ALT="Click here for calendar prompt" BORDER=0 SRC="<RDML MERGE="*LW3SETCALICON">"></A>