Commit f4f68edd authored by Melikhov Arsenii's avatar Melikhov Arsenii

Update useMany.md

parent 9559f939
......@@ -4,17 +4,16 @@
[SELECT to the Many attribute](#select-to-the-many-attribute)
<a name="endmenu"></a>
The attributes of MANY datatype have some specificity. Consider an example that demonstrates the use of this type of data attribute.
Let the request on the portal contain information about the region of the city to which it refers.
One request can relate to several regions of the city, so you need to give the user a multiple choice.
Imagine that we want to add to request information about the region of the city to which that request related for.
Since one request can relate to several regions of the city, we need to have the ability of multiple choice.
For this, we need the `MANY` datatype.
Let's look at how to use it.
## Creating Many datatype attribute
Create the entity of the city regions - `req_cityRegion.meta`
First, create the entity that represents the city region - `req_cityRegion.meta` with code below.
```javascript
{
"caption": "City region",
"description": "city region",
......@@ -38,9 +37,7 @@ Create the entity of the city regions - `req_cityRegion.meta`
}
```
In entity req_reqList (`req_reqList.meta`) will create an attribute of the datatype many that is associated with the entity req_cityRegion
Then, in the entity req_reqList( `req_reqList.meta` ) add an attribute of the datatype `MANY` that is associated with the entity req_cityRegion:
```javascript
{
"name":"regionList",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment