To Execute this Example

LANSA

To Execute this Example
Select a Date from a CalendarThe Things that Make Up this ExampleBefore You Execute Web Functions

Open a browser session.
In the address entry field of the browser type:

http://nnn.nnn.nnn.nnn:xx/CGI-BIN/LANSAWEB?PROCFUN+set_171+set171a+ppp
where


nnn.nnn.nnn.nnnis the IP address of the web server you are connecting to
xxis the port number where your web server has been configured to run. If your web server uses the default port 80, this parameter is not required.
ppp is the partition identifier of the partition where you imported the material


Click on any of the two Select Date buttons.

Select a date by clicking on a day.



Notes and suggestions

You can return dates in any format of your choice. The formats are described at the top of the Calendar’s Java Script code. The format is a parameter that is passed to the Calendar when clicking on the Select Date button. To change the format, locate this line of HTML in SET171A:
<TD><A HREF="JavaScript:createCalendar(160,170,443,351,4,'SDDMMYY')"><IMG SRC="<RDML MERGE="*LW3SETCALENDAR">" BORDER=0></A></TD>

Look carefully at the parameters passed to CreateCalendar: (160,170,443,351,4,'SDDMMYY').
160is the width of calendar window in pixels
170 is the height of calendar window in pixels
443 is the position of calendar window from the top in pixels
351 is the position of calendar window from left in pixels
4 is the format of the date to return
SDDMMYY is the field name prefixed with the field type S(signed). If alpha it would be prefixed with an A