Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: I added text to Walkthrough: Super Powers #3 to make it clearer and more consistent with UUID steps

...

Code Block
titleExample Array Property
<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>

...

  1. Open the ./packages/types/superHero.cfc component for editing.
  2. 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." />
    
  3. 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.
  4. 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
  5. Reload the COAPI Metadata
  6. 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
titleExample UUID Property
<cfproperty

	name="sidekickid" type="uuid" hint="Super hero sidekick."
	ftSeq="11" ftFieldset="Related Content" ftWizardStep="Relationships" ftLabel="Sidekick"
	ftType="uuid" ftJoin="superHero" />

...

  1. Open the ./packages/types/superHero.cfc component for editing.
  2. 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" />
    
  3. Go to the webtop COAPI admin area. You should see a single conflict for the Super Hero component.
    • Deploy the sidekickid UUID property.
  4. 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.

...