Commit 4cbd63a1 authored by Melikhov Arsenii's avatar Melikhov Arsenii

Update initialData.md;

-add full path to urls
parent 78dd3be1
......@@ -59,7 +59,7 @@ module.exports = session => {
## Create a folder for a submenu
Create a folder Departments on your City Requests desktop.
In `010_create_navshortcuts.js` file add the following code below the desktop creating (before last parenthesis)
In `010_create_navshortcuts.js` file add the following code in the exports section, below the desktop creating (before the last parenthesis).
```javascript
let folderID = connection.lookup('ubm_navshortcut', 'ID', {
......@@ -91,7 +91,7 @@ if (!folderID) {
## Adding a shortcut.
To the Departments folder add the shortcut Departments
To the Departments folder add the shortcut Departments
To do this in `010_create_navshortcuts.js` file below the folder creating
add the following code
......@@ -123,7 +123,7 @@ if (!lastID) {
Independently create the `SubDepartments` menu in the Departments folder and the `Request List` shortcut.
The full code listing of `010_create_navshortcuts.js` file could be found [here](courses/cityPortal-v5/models/requests/_initialData/010_create_navshortcuts.js)
The full code listing of `010_create_navshortcuts.js` file could be found [here](https://git-pub.intecracy.com/unitybase/samples/-/blob/master/courses/cityPortal-v5/models/requests/_initialData/010_create_navshortcuts.js).
To run the script, run the command in the root of project:
```shell
......@@ -143,7 +143,7 @@ The following message should appear in the console:
Let's say we have a dataset of departments of the city with their addresses and phones. In order to avoid entering this information manually, you can import it to the Departments table during the initialization.
To do this, you need a .csv file that will have fields similar to the req_depart entity attributes.
Create the `\models\requests\_initialData\req_depart.csv` file with following code
Create the `\models\requests\_initialData\req_depart.csv` file with following code:
```text
......@@ -155,7 +155,7 @@ Specification of methods used:
<https://unitybase.info/api/serverNew/module-dataLoader.html>
Create the javascript-file `\models\requests\_initialData\020_fill_departments.js` with following code.
Create the javascript-file `\models\requests\_initialData\020_fill_departments.js` with following code:
```javascript
const path = require('path')
......
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