Show/Hide Toolbars

To create an XML file for a custom block, you need to know the following information:

Basic HTML tags and structure and XML requirements.

The following custom field and category information if you want to include custom fields in the block:

oField name—Field names uniquely identify the fields within a category. You can locate them on the Custom Fields tab of the object definition for the block.

oThe full tree position of the category for the custom field—The full tree position of a category is a combination of tree positions assigned to the category and all of its parent categories, starting with the root category and separated by underscores.

For example, if category B with partial tree position BBBB is created under category A with partial tree position AAAA in the Account object definition, the full tree position of category B is ACCT_AAAA_BBBB.

Wizard parameter names if you are creating the block for a wizard and want to include parameters. The name of a wizard parameter uniquely identifies the parameter within a wizard. You can locate parameter names on the Page Components tab of the wizard page. Define parameters for the page that includes the new block.

Tip: To avoid duplicating parameters on the same page, select the Display in blocks only check-box for the parameters that you include in your blocks.

The appropriate block tags and formatting.

The tc:useClass tag with the name of the Java class file and an alias in the id= field to refer to the Java class.

Note: When creating an XML file, you should not hard code background and foreground colors or font type and size. Also minimize the use of JavaScript.