Monday, December 22, 2008

6.x tip for the day : URL and HTML Support

In 6.x the text fields now support both URLs and HTML code. The following describes how to set them up.

 

Activating URL Support

You can enable URLs (hyperlinks) to be rendered properly in text box controls, so that users may click on live hyperlinks to access a particular resource.

The following types of URL schemes are supported:

HTTP ( http://example.com/ or https://example.com )

FTP ( ftp://example.com )

mailto: ( mailto:admin@example.com )

Local Files ( file:///C:/notes.txt )

Windows network path, or UNC ( \\ QA-Server1\Backups )

 

Note: It is important to note that URL Support is activated at the control level

(within the Description text box, for example), and not at the field level. A field

must be associated with a control to enable URL support for that field.

In the following example, URL support is activated for the

Incident.Symptom field (in this case, “Description”) on the Incident form.

 

To activate URL Support:

1. Launch the Administrator. Navigate to a Business Object for which you will activate URL support. For example “Incident”.

2. Right-click on the text box for which you will add URL support (in this case, “Description”). In the context menu, choose Properties. The Control Properties screen appears.

3. Select the Behavior tab and activate the URL Support check box. Click the Close button to apply this change.

4. If there are other perspectives, for which URL support should be activated, repeat steps 2 and 3 for the text box "Description" in all other perspectives.

5. Commit the changes in the Administrator.

 

Activating HTML Support

To enable display and editing of HTML stored in a business object, use the property settings for the text field containing the HTML. This option is available in the Properties panel for the control.

 

1. Launch the Administrator and open the definition set containing the desired business object.

2. Navigate to a business object for which you will activate an HTML control, for example: “Email.”

3. Right-click on the text box for which you will add HTML support.

4. In the context menu, choose Properties. The Control Properties dialog appears

5. Select the Behavior tab and click the Html Support check box.

6. Click Close to apply this change.

Merry Xmas!

Merry Xmas to all who read this blog! Hope you have a great 2009!

P.S. I'm aiming to update this a little more regularly in 2009!

Thursday, December 18, 2008