change the creating department's items in initialData.md

parent b66920b2
......@@ -202,14 +202,25 @@ module.exports = function(session){
csvLoader = require('@unitybase/base').dataLoader,
conn = session.connection;
console.info('\t\tDepartments (req_depart)');
console.info('\t\tFill Departments field (req_depart)');
csvLoader.loadSimpleCSVData(conn, __dirname + '/req_depart.csv', 'req_depart', 'name;postAddr;phoneNum'.split(';'), [0,1,2], 1);
};
```
Run the script with the command `ubcli initialize`. For not to execute the previous file `010_create_navshortcuts.js`, you must put a _ at the beginning of its name.
To run the script, run the command in the root of project
`ubcli initialize -u admin -p admin -host http://localhost:888 -m RequestList`
The following message should appear in the console:
![creating_shortcut_console](img/initialData/fill_depart_console.PNG)
If you see the following message
![desktop_exist_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
* execute the file `init.cmd` that will reinitialize the entire project.In this case, all the shortcuts, roles and users previously created in the admin panel are deleted. Forms, reports and charts remain in the folder as files.
<a name = 'enum'></a>
......
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