Update initialData.md

parent 8bb5e5bb
......@@ -17,7 +17,7 @@ Using JavaScript, create a Desktop and a menu for CityPortal
![rezult_view](img/initialData/rezult_view.png)
Create a folder `_initialData` in `models\requests`
Inside create the file `010_create_navshortcuts.js` with the encoding UTF-8
Inside create the file `010_create_navshortcuts.js` with the encoding UTF-8 (Shift + F8 in the FAR Manager).
<a name = 'desktop'></a>
......@@ -65,7 +65,7 @@ module.exports = function (session) {
## Create a folder for a submenu
Create a folder Departments on your desktop City Requests.
Create a folder Departments on your City Requests desktop.
To do this in `010_create_navshortcuts.js` file
Add the following code to `module.exports = function (session)` below the desktop creating
......@@ -128,7 +128,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 found [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 could be 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`
......@@ -207,7 +207,7 @@ Ubm_enum have the next fields
"sortOrder": is used for ordering enum in combobox. Default = 100 .
Add in the entity `req_reqList.meta` the attribute status.
Add a "status" attribute to the `req_reqList.meta` entity.
```javascript
......@@ -222,7 +222,7 @@ Add in the entity `req_reqList.meta` the attribute status.
For updating the models database, execute the command
`ubcli generateDDL -u admin -p admin -host http://localhost:888 -autorun`
Create the file `\models\requests\_initialData\ubm_enum-req.csv` with enum of statuses, which will using in requests list.
Create the file `\models\requests\_initialData\ubm_enum-req.csv` with enum of statuses that will be used in requests list.
```
......@@ -281,6 +281,7 @@ Inside create the `uk^010_req_navshortcuts.js`
[+ Warning! The encoding of the file must be UTF-8 (Shift + F8 in the FAR Manager) +]
Note that encoding of all files that use cyrillic script must be UTF-8.
Reference to method specification
......
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