...
Code Block | ||
---|---|---|
| ||
<cfcomponent ..>
...
<cfproperty
name="aPowers" type="array" hint="Array of superhuman powers."
ftSeq="12" ftFieldset="Related Content" ftWizardStep="Relationships" ftLabel="Powers"
ftType="array" ftJoin="superPower" />
...
</cfcomponent>
|
...
- Open the ./packages/types/superHero.cfc component for editing.
- Add the following property
Code Block <cfproperty ftSeq="12" ftFieldset="Related Content" ftWizardStep="Relationships" name="aPowers" type="array" ftLabel="Powers" ftJoin="superPower" hint="Array of superhuman powers." />
- Go to the webtop COAPI admin area and deploy your new property. You should see a single conflict for the Super Hero component.
- Deploy the superPower array property.
- If you have a tool for browsing the database schema, now would be a good time to take a look at the underlying array table
- many to many relationship (bridging table)
- ParentID, Data, Seq, Typename
- Reload the COAPI Metadata
- Go to the Super Hero administration screen, and associate super powers from the library picker that should now be available in the edit handler.
...
Code Block | ||
---|---|---|
| ||
<cfproperty
name="sidekickid" type="uuid" hint="Super hero sidekick."
ftSeq="11" ftFieldset="Related Content" ftWizardStep="Relationships" ftLabel="Sidekick"
ftType="uuid" ftJoin="superHero" />
|
...
- Open the ./packages/types/superHero.cfc component for editing.
- Add a UUID property for sidekickid
Code Block <cfproperty name="sidekickid" type="uuid" hint="Super hero sidekick." ftSeq="11" ftFieldset="Related Content" ftWizardStep="Relationships" ftLabel="Sidekick" ftType="uuid" ftJoin="superHero" />
- Go to the webtop COAPI admin area. You should see a single conflict for the Super Hero component.
- Deploy the sidekickid UUID property.
- Go to the Super Hero administration screen, and associate a side-kick from the library picker that should now be available in the edit handler.
...