You will now add data into your new entity. Build the db module first:
Create a comma-separated values file called status.csv
in the data
folder:
Add the following contents to it:
ID,TEXT
I, In process
A, Approved
R, Rejected
Save the file.
Now you need to add a new file to indicate how that file loads your new table. Create a file called load.hdbtabledata
Add the following contents to it:
{
"format_version": 1,
"imports": [
{
"target_table": "PO.APPROVAL_STATUS",
"source_data": {
"data_type": "CSV",
"file_name": "status.csv",
"has_header": true
},
"import_settings": {
"import_columns": [
"ID",
"TEXT"
]
}
}
]
}
Save:
Build the module.
Save and build the db
module. Wait until the build finished to answer the following question.