QuickStart DateTime

LANSA WAM

QuickStart - DateTime

For datetime fields that have datetime weblet as their the default visualization, you usually do not need to manually add it to your web page. Simply include your datetime fields in your web_map or in a list that is present in your web_map and they will be visualized using the datetime weblet. Similarly fields of type date and of type time will be visualized using the date (std_date) and time (std_time) weblets.

If you do need to add the datetime weblet to your page manually, simply drag the datetime field from the Fields tab onto your page. Alternatively, open the XSL for your webroutine in the LANSA Editor and follow these steps:

1.  Click on the Weblets tab, select Standard Field Visualization from the drop-down list near the top and locate the Datetime weblet.

2.  Drag the weblet onto your page in the Design view. Click on the weblet and then click on the Details tab.

3.  Set the name and value properties as required to associate the weblet with the required field in your webroutines web_map.

4.  You may also wish to set the size and date_mask properties as required.