blob: 2b2da8cf01c6ec16d236b1d49a07977f3c6d832d [file] [log] [blame]
<html lang="en-us">
<head>
<title>Creating a Complex Type</title>
</head>
<h1 class="title topictitle1">Creating a Complex Type</h1>
<div class="body taskbody"><p class="shortdesc">Creating a Complex Type</p>
<div class="section context" id="loioc31d3ad78d7244fbb1071e7721d72ea7__context_N10015_N10012_N10001"><div class="tasklabel"><h2 class="sectiontitle tasklabel">Context</h2></div>
<p class="p">To create a complex type in the OData Model Editor proceed as follows </p>
</div><div class="tasklabel"><h2 class="sectiontitle tasklabel">Procedure</h2></div><ol class="ol steps" id="loioc31d3ad78d7244fbb1071e7721d72ea7__steps_j5b_gpv_sp"><li class="li step stepexpand" id="loioc31d3ad78d7244fbb1071e7721d72ea7__step_N10021_N1001E_N10012_N10001"><span class="ph cmd">Select <strong class="ph b">Complex Type</strong> under <strong class="ph b">Objects</strong> in the palette, press and hold
down the left mouse button, drag the object onto the OData Model Editor.</span><div class="note note" id="loioc31d3ad78d7244fbb1071e7721d72ea7__note_N10038_N10030_N10021_N1001E_N10012_N10001"><span class="notetitle">Note</span> The new complex type will
be created with a unique default name.</div>
<p class="p">The context pad of the
complex type OData Model Element has three menus: </p>
<ul class="ul" id="loioc31d3ad78d7244fbb1071e7721d72ea7__ul_pcl_sy1_yj"><li class="li"><span class="ph pname">Add Property </span> - Choose <img src="CT1.png" alt="" style="width:30px;height:30px"/> to add a new property to the Complex Type </li>
<li class="li"><span class="ph pname">Add Complex Property </span>- Choose <img src="CT2.png" alt="" style="width:30px;height:30px"/> to add a new Complex property </li>
</ul>
See <a class="xref" href="Working in the OData Model Editor.html" title="Working in the OData Model Editor">Working in the OData Model Editor</a> for more
information of working with the OData Model Elements.<div class="note note" id="loioc31d3ad78d7244fbb1071e7721d72ea7__note_N10079_N10030_N10021_N1001E_N10012_N10001"><span class="notetitle">Note</span> The OData Model Element
also comes with a context menu Alternatively, the context menu can be used
to add preferred property.</div>
</li>
<li class="li step stepexpand" id="loioc31d3ad78d7244fbb1071e7721d72ea7__step_N10080_N1001E_N10012_N10001"><span class="ph cmd">Select the added property and navigate to the Properties view and configure the
newly added properties. </span><div class="itemgroup stepxmp">In the Properties view, choose the drop-down in the <span class="ph pname">Type</span>
field and select a type to be assigned for new property. </div></li>
<li class="li step stepexpand" id="loioc31d3ad78d7244fbb1071e7721d72ea7__step_N10099_N1001E_N10012_N10001"><span class="ph cmd">Save the Odata Model Editor.</span></li>
</ol>
</div>
<div class="related-links">
<div class="relinfo"><div class="relinfotitle ">Related Information</div>
<div><a class="link" href="Working with the OData Model Element.html" title="Understanding the OData model element.">Working with the OData Model Element</a></div>
</div>
</div></div></div>
</body>
</html>