fix bugs after Grammarly checking in initialData.md

parent 9e0971d1
......@@ -110,7 +110,7 @@ folderID = conn.lookup('ubm_navshortcut', 'ID', {expression: 'code', condition:
## Adding a shortcut.
To the folder Departments add the shortcut Departments
To the Departments folder add the shortcut Departments
To do this in `010_create_navshortcuts.js` file between the lines
```javascript
folderID = conn.insert({
......@@ -156,7 +156,7 @@ lastID = conn.lookup('ubm_navshortcut', 'ID', {expression: 'code', condition: '
Independently create the `SubDepartments` menu in the Departments folder and the `Request List` shortcut.
The full code listing of `010_create_navshortcuts.js` file is find [here](https://git-pub.intecracy.com/unitybase/samples/blob/master/courses/cityPortal-v4/models/requests/_initialData/010_create_navshortcuts.js)
The full code listing of `010_create_navshortcuts.js` file is found [here](https://git-pub.intecracy.com/unitybase/samples/blob/master/courses/cityPortal-v4/models/requests/_initialData/010_create_navshortcuts.js)
To run the script, run the command in the root of project
`ubcli initialize -u admin -p admin -host http://localhost:888 -m RequestList`
......@@ -218,17 +218,17 @@ The following message should appear in the console:
If you see the following message
![fill_depart_console_error](img/initialData/fill_depart_console_error.PNG)
This means that the departments with such names was created earlier. You can
* delete the departments list manually in the admin panel
This means that the departments with such names were created earlier. You can
* delete the department`s list manually in the admin panel
* do not update anything if the list already exists
## Using Enum in a models.
## Using Enum in models.
Enumerated types are described in entity ubm_enum and are intended for storing variants of state-values of different data.
Enumerated types are described in entity ubm_enum and are intended for storing variants of state values of different data.
Ubm_enum have the next fields
"eGroup" - "Group of enumeration",
"Code" - "Value code",
......@@ -290,7 +290,7 @@ The error message means that the department list is already full. In order for t
Add the support of the Ukrainian language to the project interface.
First you need to translate the menu items - the name of the desktop and shortcuts.
First, you need to translate the menu items - the name of the desktop and shortcuts.
Create in `\models\requests\_initialData\` the folder `locale`
Inside create the `uk^010_req_navshortcuts.js`
......@@ -371,7 +371,7 @@ Similarly, create the files `req_reqList.meta.uk` and `req_subDepart.meta.uk`
To support the Ukrainian languagein the project, add culture "uk" in the connection section of the configuration file - to the attribute supportLang.
To support the Ukrainian language in the project, add culture "uk" in the connection section of the configuration file - to the attribute supportLang.
```javascript
......
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