WAM105 - Create Your Own Weblet
1. Create a new weblet. From the File menu select New / Weblet in the Visual LANSA Editor.
a. In Name and Description, replace iii with your initials.
b. Select Custom Weblets as the Weblet Group.
c. Press Create to create your weblet and the Custom Weblets group. Type in a group name of Custom Weblets if this does not exist. The weblet will open in the Design view.
The XSL Source for your weblet should currently look like the following:
2. Select the Weblet Template tab and use the Details tab to enter a name of iii_toolbar_menuitem. Replace iii with your initials.
3. Save your changes.
4. You will now add the skeleton HTML code for the anchor tag, inside the
<xsl:template ...>…</xsl:template>, as follows:
Copy the following code <a href="jav...... code and paste it immediately following the lines:
Code should be copied from WAM Tutorials in the Visual LANSA online guide.
The new code is highlighted in red.
<!-- Give your template an appropriate name and type in your XSL here -->
<a href="j.././index.htm" target="_blank" <img alt="Tooltip" src="/images/icons/normal/16/folder_16.png" />
In later steps you will complete this outline for the anchor tag code.
4. Click the Save button on the editor Toolbar to save your changes.