|
Table Of Contents
|
Path : Home » ColdFusion Products » Database Management » UDI - Universal Database Interface » Usage
UDI UsageUDI Usage SyntaxUDI is invoked using the following syntax: <cf_dccom component="udi" ...UDI Attributes here... > </cf_dccom> Interface Fields SectionEach 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. Example<cf_dccom component="udi" datasource="datasource" username="username" password="password" table="users"> 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 OptionWhen you use the wizard option, the code is programmed for you. You can still manually modify the code and use the interface later. Tips
|