Table Of Contents
 

UDI Usage

Author : Peter Coppinger Email : peter@digital-crew.com

UDI Usage Syntax

UDI is invoked using the following syntax:

<cf_dccom component="udi" ...UDI Attributes here... >

         Interface Fields Section Here

</cf_dccom>

Interface Fields Section

Each of the fields you want to use in the interface should be in the Interface Definition section and should be in the following format:

<cf_dccom field="fieldname" type="interfacetype" extra options here></cf_dccom>

The Key Field(s)

Additionally each interface needs a key field in the following format:

<cf_dccom field="fieldname" type="key"></cf_dccom>

This should be the autonumber (or 'identity' field for Microsoft SQL Server users) field of your table.

NOTE: UDI also supports compond keys, text keys and GUID keys.

Example

<cf_dccom component="udi" datasource="datasource" username="username" password="password" table="users">
<cf_dccom field="userId" type="key"></cf_dccom>
<cf_dccom field="userfirstname" type="text" display="First Name"></cf_dccom>
    <cf_dccom field="userlastname" type="text" display="Last Name"></cf_dccom>
    <cf_dccom field="useremail" type="text" display="Email Address"></cf_dccom>
</cf_dccom>

Additionally UDI can be started in wizard mode saving your from manually programming the interface. You should only have to manually program the interface when the interface get invloved or you need some extra options the wizard can no longer provide.

Code Wizard Option

When you use the wizard option, the code is programmed for you. You can still manually modify the code and use the interface later.

Tips

  1. You can put <cfif>... statements arounds lines of the interface to show different options to different users.
  2. Don't user the wizard anymore to edit the form if you have custom coldfusion code within the interface fields section